@@ -88,17 +88,15 @@ module TransitionSpec = {
|
88 | 88 | overshootClamping: bool,
|
89 | 89 | };
|
90 | 90 | [@bs.obj]
|
91 |
| -external spring: |
92 |
| -(~animation: [@bs.string] [ | `spring], ~config: springConfig) => t; |
| 91 | +external spring: (~animation: [ | `spring], ~config: springConfig) => t; |
93 | 92 |
|
94 | 93 | type timingConfig = {
|
95 | 94 | duration: int,
|
96 | 95 | easing: ReactNative.Easing.t,
|
97 | 96 | };
|
98 | 97 |
|
99 | 98 | [@bs.obj]
|
100 |
| -external timing: |
101 |
| -(~animation: [@bs.string] [ | `timing], ~config: timingConfig) => t; |
| 99 | +external timing: (~animation: [ | `timing], ~config: timingConfig) => t; |
102 | 100 | };
|
103 | 101 |
|
104 | 102 | type transitionSpec = {
|
@@ -219,14 +217,14 @@ module Make = (M: {type params;}) => {
|
219 | 217 | ~cardOverlay: unit => React.element=?,
|
220 | 218 | ~cardStyle: ReactNative.Style.t=?,
|
221 | 219 | ~animationEnabled: bool=?,
|
222 |
| -~animationTypeForReplace: [@bs.string] [ | `push | `pop]=?, |
| 220 | +~animationTypeForReplace: [ | `push | `pop]=?, |
223 | 221 | ~gestureEnabled: bool=?,
|
224 | 222 | ~gestureResponseDistance: gestureResponseDistance=?,
|
225 | 223 | ~gestureVelocityImpact: float=?,
|
226 | 224 | // StackHeaderOptions
|
227 | 225 | ~headerShown: bool=?,
|
228 | 226 | ~headerTitle: HeaderTitle.t=?,
|
229 |
| -~headerTitleAlign: [@bs.string] [ | `left | `center]=?, |
| 227 | +~headerTitleAlign: [ | `left | `center]=?, |
230 | 228 | ~headerTitleStyle: ReactNative.Style.t=?,
|
231 | 229 | ~headerTitleContainerStyle: ReactNative.Style.t=?,
|
232 | 230 | ~headerTintColor: ReactNative.Color.t=?,
|
@@ -247,7 +245,7 @@ module Make = (M: {type params;}) => {
|
247 | 245 | ~headerStyle: ReactNative.Style.t=?,
|
248 | 246 | ~headerTransparent: bool=?,
|
249 | 247 | // TransitionPreset
|
250 |
| -~gestureDirection: [@bs.string] [ | `horizontal | `vertical]=?, |
| 248 | +~gestureDirection: [ | `horizontal | `vertical]=?, |
251 | 249 | ~transitionSpec: transitionSpec=?,
|
252 | 250 | ~cardStyleInterpolator: stackCardStyleInterpolator=?,
|
253 | 251 | ~headerStyleInterpolator: stackHeaderStyleInterpolator=?,
|
@@ -338,8 +336,8 @@ module Make = (M: {type params;}) => {
|
338 | 336 | (
|
339 | 337 | ~initialRouteName: string=?,
|
340 | 338 | ~screenOptions: optionsCallback=?,
|
341 |
| -~mode: [@bs.string] [ | `card | `modal]=?, |
342 |
| -~headerMode: [@bs.string] [ | `float | `screen | `none]=?, |
| 339 | +~mode: [ | `card | `modal]=?, |
| 340 | +~headerMode: [ | `float | `screen | `none]=?, |
343 | 341 | ~keyboardHandlingEnabled: bool=?,
|
344 | 342 | ~children: React.element,
|
345 | 343 | ~key: string=?,
|
|
0 commit comments