@@ -88,17 +88,15 @@ module TransitionSpec = {
8888 overshootClamping: bool ,
8989 };
9090 [@ bs . obj ]
91- external spring :
92- (~animation : [@ bs . string ] [ | ` spring ] , ~config : springConfig ) => t ;
91+ external spring : (~animation : [ | ` spring ] , ~config : springConfig ) => t ;
9392
9493 type timingConfig = {
9594 duration: int ,
9695 easing: ReactNative . Easing . t ,
9796 };
9897
9998 [@ bs . obj ]
100- external timing :
101- (~animation : [@ bs . string ] [ | ` timing ] , ~config : timingConfig ) => t ;
99+ external timing : (~animation : [ | ` timing ] , ~config : timingConfig ) => t ;
102100};
103101
104102type transitionSpec = {
@@ -219,14 +217,14 @@ module Make = (M: {type params;}) => {
219217 ~cardOverlay : unit => React . element =?,
220218 ~cardStyle : ReactNative . Style . t =?,
221219 ~animationEnabled : bool =?,
222- ~animationTypeForReplace : [@ bs . string ] [ | ` push | ` pop ] =?,
220+ ~animationTypeForReplace : [ | ` push | ` pop ] =?,
223221 ~gestureEnabled : bool =?,
224222 ~gestureResponseDistance : gestureResponseDistance =?,
225223 ~gestureVelocityImpact : float =?,
226224 // StackHeaderOptions
227225 ~headerShown : bool =?,
228226 ~headerTitle : HeaderTitle . t =?,
229- ~headerTitleAlign : [@ bs . string ] [ | ` left | ` center ] =?,
227+ ~headerTitleAlign : [ | ` left | ` center ] =?,
230228 ~headerTitleStyle : ReactNative . Style . t =?,
231229 ~headerTitleContainerStyle : ReactNative . Style . t =?,
232230 ~headerTintColor : ReactNative . Color . t =?,
@@ -247,7 +245,7 @@ module Make = (M: {type params;}) => {
247245 ~headerStyle : ReactNative . Style . t =?,
248246 ~headerTransparent : bool =?,
249247 // TransitionPreset
250- ~gestureDirection : [@ bs . string ] [ | ` horizontal | ` vertical ] =?,
248+ ~gestureDirection : [ | ` horizontal | ` vertical ] =?,
251249 ~transitionSpec : transitionSpec =?,
252250 ~cardStyleInterpolator : stackCardStyleInterpolator =?,
253251 ~headerStyleInterpolator : stackHeaderStyleInterpolator =?,
@@ -338,8 +336,8 @@ module Make = (M: {type params;}) => {
338336 (
339337 ~initialRouteName : string =?,
340338 ~screenOptions : optionsCallback =?,
341- ~mode : [@ bs . string ] [ | ` card | ` modal ] =?,
342- ~headerMode : [@ bs . string ] [ | ` float | ` screen | ` none ] =?,
339+ ~mode : [ | ` card | ` modal ] =?,
340+ ~headerMode : [ | ` float | ` screen | ` none ] =?,
343341 ~keyboardHandlingEnabled : bool =?,
344342 ~children : React . element ,
345343 ~key : string =?,
0 commit comments