File tree Expand file tree Collapse file tree 5 files changed +33
-16
lines changed
Expand file tree Collapse file tree 5 files changed +33
-16
lines changed Original file line number Diff line number Diff line change @@ -33,6 +33,10 @@ export { app as default } from "./src/App.bs.js";
3333
3434## ` ./src/App.re `
3535
36+ 👀 In place of the rudimentary example below, you can directly grab the
37+ [ App.re] ( https://raw.githubusercontent.com/reasonml-community/reason-react-native/master/reason-react-native-template/template/src/App.re )
38+ of our template, which will match React Native default _ Hello World_ !
39+
3640``` reason
3741open ReactNative;
3842
Original file line number Diff line number Diff line change @@ -66,10 +66,10 @@ have to do anything. The plugin will detect `bs-platform` & will handle the
6666compilation/watching process for you.
6767
6868In case you are facing something weird, you can always trigger a cleanup by
69- doing ` Cmd + Shift + P ` and look for ` Restart Reason Language Server ` .
69+ doing ` Cmd/Ctrl + Shift + P ` and look for ` Restart Reason Language Server ` .
7070
7171⛑ _ Even if you decide to use Vscode or a smiliar IDE to ease your day to day
72- development workflow, you should have a look to CLI workflow so you how it
72+ development workflow, you should have a look to CLI workflow so you know how it
7373works._
7474
7575### Compile ReasonML files via CLI
Original file line number Diff line number Diff line change @@ -89,6 +89,7 @@ let sections = [
8989 ("Introduction" , "docs/" ),
9090 ("Installation" , "docs/install/" ),
9191 ("Usage" , "docs/usage/" ),
92+ // ("Style", api ++ "docs/style/"),
9293 ("Example" , "docs/example/" ),
9394 ("Cheatsheet" , "docs/cheatsheet/" ),
9495 ("Migration from bs-react-native" , "docs/migration/jsx3/" ),
Original file line number Diff line number Diff line change @@ -45,7 +45,15 @@ let styles =
4545 ~color= Consts . Colors . light,
4646 () ,
4747 ),
48- "search" : viewStyle() ,
48+ "search" : viewStyle(~justifyContent= ` center , () ),
49+ "searchInputWrapper" :
50+ viewStyle(
51+ ~flexDirection= ` row ,
52+ ~backgroundColor= "#fff" ,
53+ ~borderRadius= 6 .,
54+ ~alignItems= ` center ,
55+ () ,
56+ ),
4957 "links" :
5058 viewStyle(
5159 ~flexGrow= 1 .,
@@ -140,19 +148,22 @@ let make = (~currentLocation) => {
140148 })
141149 -> React . array}
142150 </SpacedView >
143- <SpacedView style= styles##search vertical= XS horizontal= XS >
144- <input
145- id= "SearchInput"
146- placeholder= "Search"
147- style= {ReactDOMRe . Style . make(
148- ~fontSize= "15px" ,
149- ~width= "120px" ,
150- ~borderRadius= "20px" ,
151- ~border= "0" ,
152- ~padding= "10px 20px" ,
153- () ,
154- )}
155- />
151+ <SpacedView vertical= XS horizontal= XS style= styles##search>
152+ <SpacedView
153+ vertical= XXS horizontal= XS style= styles##searchInputWrapper>
154+ <input
155+ id= "SearchInput"
156+ placeholder= "Search..."
157+ style= {ReactDOMRe . Style . make(
158+ ~fontSize= "16px" ,
159+ ~width= "120px" ,
160+ ~border= "0" ,
161+ () ,
162+ )}
163+ />
164+ <Spacer size= XS />
165+ <SVGSearch fill= Predefined . Colors . dark width= "18" height= "18" />
166+ </SpacedView >
156167 </SpacedView >
157168 <SpacedView style= styles##icons vertical= XS horizontal= XS >
158169 {Consts . socialLinks
You can’t perform that action at this time.
0 commit comments