@@ -294,17 +294,17 @@ module Transform = {
294294 skewY
295295 ) => {
296296 let opt_values = [
297- ("perspective" , encoder(perspective)),
298- ("rotate" , rotationEncoder(rotate)),
299- ("rotateX" , rotationEncoder(rotateX)),
300- ("rotateY" , rotationEncoder(rotateY)),
301- ("rotateZ" , rotationEncoder(rotateZ)),
302- ("scaleX" , encoder(scaleX)),
303- ("scaleY" , encoder(scaleY)),
304- ("translateX" , encoder(translateX)),
305- ("translateY" , encoder(translateY)),
306- ("skewX" , encoder(skewX)),
307- ("skewY" , encoder(skewY))
297+ ("perspective" , [ @ bs ] encoder(perspective) ),
298+ ("rotate" , [ @ bs ] rotationEncoder(rotate)),
299+ ("rotateX" , [ @ bs ] rotationEncoder(rotateX)),
300+ ("rotateY" , [ @ bs ] rotationEncoder(rotateY)),
301+ ("rotateZ" , [ @ bs ] rotationEncoder(rotateZ)),
302+ ("scaleX" , [ @ bs ] encoder(scaleX)),
303+ ("scaleY" , [ @ bs ] encoder(scaleY)),
304+ ("translateX" , [ @ bs ] encoder(translateX)),
305+ ("translateY" , [ @ bs ] encoder(translateY)),
306+ ("skewX" , [ @ bs ] encoder(skewX)),
307+ ("skewY" , [ @ bs ] encoder(skewY))
308308 ] ;
309309 let values =
310310 List . fold_right(
@@ -336,8 +336,8 @@ module Transform = {
336336 ()
337337 ) =>
338338 create_(
339- (value) => UtilsRN . option_map(Encode . float, value),
340- (value) => UtilsRN . option_map(Encode . string, value),
339+ [ @ bs ] (value) => UtilsRN . option_map(Encode . float, value) ,
340+ [ @ bs ] (value) => UtilsRN . option_map(Encode . string, value),
341341 perspective,
342342 rotate,
343343 rotateX,
@@ -366,8 +366,8 @@ module Transform = {
366366 ()
367367 ) =>
368368 create_(
369- (value) => UtilsRN . option_map(Encode . animatedValue, value),
370- (value) => UtilsRN . option_map(Encode . animatedValue, value),
369+ [ @ bs ] (value) => UtilsRN . option_map(Encode . animatedValue, value),
370+ [ @ bs ] (value) => UtilsRN . option_map(Encode . animatedValue, value),
371371 perspective,
372372 rotate,
373373 rotateX,
@@ -396,8 +396,8 @@ module Transform = {
396396 ()
397397 ) =>
398398 create_(
399- (value) => UtilsRN . option_map(Encode . interpolatedValue, value),
400- (value) => UtilsRN . option_map(Encode . interpolatedValue, value),
399+ [ @ bs ] (value) => UtilsRN . option_map(Encode . interpolatedValue, value),
400+ [ @ bs ] (value) => UtilsRN . option_map(Encode . interpolatedValue, value),
401401 perspective,
402402 rotate,
403403 rotateX,
0 commit comments