Skip to content

Commit 9293ac1

Browse files
committed
Update example to avoid deprecation warnings
1 parent 5686438 commit 9293ac1

1 file changed

Lines changed: 8 additions & 7 deletions

File tree

‎bs-react-native-example/src/pages/ViewExample.re‎

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ module ZIndexExample = {
106106
{ReasonReact.string("Tap to flip sorting order")}
107107
</Text>
108108
<View
109-
style={concat([
109+
style={fromList([
110110
styles##zIndex,
111111
style([
112112
marginTop(Pt(0.)),
@@ -117,7 +117,7 @@ module ZIndexExample = {
117117
<Text> {ReasonReact.string(zIndexStr(0))} </Text>
118118
</View>
119119
<View
120-
style={concat([
120+
style={fromList([
121121
styles##zIndex,
122122
style([
123123
marginLeft(Pt(50.)),
@@ -128,7 +128,7 @@ module ZIndexExample = {
128128
<Text> {ReasonReact.string(zIndexStr(1))} </Text>
129129
</View>
130130
<View
131-
style={concat([
131+
style={fromList([
132132
styles##zIndex,
133133
style([
134134
marginLeft(Pt(100.)),
@@ -139,7 +139,7 @@ module ZIndexExample = {
139139
<Text> {ReasonReact.string(zIndexStr(2))} </Text>
140140
</View>
141141
<View
142-
style={concat([
142+
style={fromList([
143143
styles##zIndex,
144144
style([
145145
marginLeft(Pt(150.)),
@@ -204,18 +204,19 @@ let examples: array(Example.t) =
204204
borderColor(String("#bb0000")),
205205
borderWidth(1.),
206206
])}>
207-
<View style={concat([styles##box, style([padding(Pt(5.))])])}>
207+
<View
208+
style={fromList([styles##box, style([padding(Pt(5.))])])}>
208209
<Text style={style([fontSize(Float(11.))])}>
209210
{ReasonReact.string("5px padding")}
210211
</Text>
211212
</View>
212-
<View style={concat([styles##box, style([margin(Pt(5.))])])}>
213+
<View style={fromList([styles##box, style([margin(Pt(5.))])])}>
213214
<Text style={style([fontSize(Float(11.))])}>
214215
{ReasonReact.string("5px margin")}
215216
</Text>
216217
</View>
217218
<View
218-
style={concat([
219+
style={fromList([
219220
styles##box,
220221
style([
221222
margin(Pt(5.)),

0 commit comments

Comments
 (0)