File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ yarn add bs-platform reason-react bs-react-native
4646open BsReactNative;
4747
4848let app = () =>
49- <View style=Style.(style([flex(1.), justifyContent(`center ), alignItems(`center )]))>
49+ <View style=Style.(style([flex(1.), justifyContent(Center ), alignItems(Center )]))>
5050 <Text value="Reason is awesome!" />
5151 </View>;
5252```
@@ -96,20 +96,20 @@ open BsReactNative;
9696<View
9797 style=(
9898 Style.style([
99- Style.flexDirection(`column ),
99+ Style.flexDirection(Column ),
100100 Style.backgroundColor("#6698FF"),
101- Style.marginTop(5 )
101+ Style.marginTop(Pt(5) )
102102 ])
103103 )
104104/>;
105105
106106/* inline styles with a local open */
107- <View style=Style.(style([flexDirection(`column ), backgroundColor("#6698FF"), marginTop(5 )])) />;
107+ <View style=Style.(style([flexDirection(Column ), backgroundColor("#6698FF"), marginTop(Pt(5) )])) />;
108108
109109/* StyleSheets with a local open */
110110let styles =
111111 StyleSheet.create(
112- Style.({"wrapper": style([flexDirection(`column ), backgroundColor("#6698FF"), marginTop(5 )])})
112+ Style.({"wrapper": style([flexDirection(Column ), backgroundColor("#6698FF"), marginTop(Pt(5) )])})
113113 );
114114
115115<View style=styles##wrapper />;
You can’t perform that action at this time.
0 commit comments