From 1fe202134e5dfde24a2b5ce84176214eb7f1c791 Mon Sep 17 00:00:00 2001 From: Jesse Katsumata Date: Mon, 20 Jan 2020 01:40:18 +0900 Subject: [PATCH] docs: add usage to README --- README.md | 23 ++++++++++++++++++++--- 1 file changed, 20 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index beee247..2dd2ee9 100644 --- a/README.md +++ b/README.md @@ -44,9 +44,26 @@ your `bsconfig.json`. Something like ## Usage -### Types - -#### `ReactNativeLinearGradient.t` +```re +open ReactNative + +module MyApp = { + let styles = Style.( + StyleSheet.create({ + "container": viewStyle(~flex=1., ()) + }) + ); + + [@react.component] + let make = () => { + + + "Hello world"->React.string + + + } +}; +``` ---