Skip to content

Commit b410633

Browse files
author
Bohdan Shulha
authored
Upgrade examples following to the SDK changes
1 parent 3f72852 commit b410633

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ yarn add bs-platform reason-react bs-react-native
4646
open BsReactNative;
4747
4848
let 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 */
110110
let 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 />;

0 commit comments

Comments
 (0)