@@ -28,15 +28,15 @@ switch (UIManager.setLayoutAnimationEnabledExperimental) {
2828 type ` layoutAnimationConfig ` .
2929
3030``` reason
31- configureNext( layoutAnimationConfig)
31+ configureNext: layoutAnimationConfig => unit
3232```
3333
3434- ` configureNextWithEndCallback ` is a convenience function, which allows
3535 specification of a callback function (of type ` unit => unit ` ) to be run after
3636 the animation, in addition to ` layoutAnimationConfig ` .
3737
3838``` reason
39- configureNextWithEndCallback(layoutAnimationConfig, callback)
39+ configureNextWithEndCallback: (layoutAnimationConfig, unit => unit) => unit
4040```
4141
4242## Types
@@ -52,7 +52,7 @@ layoutAnimationConfig:
5252 ~update: animationConfig=?,
5353 ~delete: animationConfig=?,
5454 unit
55- )
55+ ) => layoutAnimationConfig
5656```
5757
5858or by means of the helper function ` create `
@@ -70,7 +70,7 @@ create:
7070 | `keyboard
7171 ],
7272 ~property: [@bs.string] [ | `opacity | `scaleX | `scaleY | `scaleXY]
73- )
73+ ) => layoutAnimationConfig
7474```
7575
7676` animationConfig ` can in turn be created with the ` animationConfig ` constructor
@@ -93,7 +93,7 @@ animationConfig:
9393 =?,
9494 ~property: [@bs.string] [ | `opacity | `scaleX | `scaleY | `scaleXY]=?,
9595 unit
96- )
96+ ) => animationConfig
9797```
9898
9999## Presets
@@ -123,7 +123,7 @@ below, before state is returned.
123123``` reason
124124open ReactNative;
125125
126- let windowWidth = float_of_int( Dimensions.get(`window)##width) ;
126+ let windowWidth = Dimensions.get(`window)##width;
127127
128128type state = {register: bool};
129129
0 commit comments