File tree Expand file tree Collapse file tree
bs-react-native-next/src/apis Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -49,13 +49,6 @@ var ValueXY = /* module */[
4949 /* Timing */ Timing$1
5050] ;
5151
52- function loop ( $staropt$star , animation , param ) {
53- var iterations = $staropt$star !== undefined ? $staropt$star : - 1 ;
54- return ReactNative . Animated . loop ( animation , {
55- iterations : iterations
56- } ) ;
57- }
58-
5952function timing ( prim , prim$1 ) {
6053 return ReactNative . Animated . timing ( prim , prim$1 ) ;
6154}
@@ -89,7 +82,6 @@ exports.Interpolation = Interpolation;
8982exports . ValueOperations = ValueOperations ;
9083exports . Value = Value ;
9184exports . ValueXY = ValueXY ;
92- exports . loop = loop ;
9385exports . timing = timing ;
9486exports . spring = spring ;
9587exports . decay = decay ;
Original file line number Diff line number Diff line change @@ -243,11 +243,15 @@ external parallel:
243243[@bs.module "react-native"] [@bs.scope "Animated"]
244244external stagger: (float, array(Animation.t)) => Animation.t = "";
245245
246+ type loopConfig;
247+
248+ [@bs.obj] external loopConfig: (~iterations: int) => loopConfig = "";
249+
246250[@bs.module "react-native"] [@bs.scope "Animated"]
247- external _loop: ( Animation.t, {. "iterations": int}) => Animation.t = "loop ";
251+ external loop: Animation.t => Animation.t = "";
248252
249- let loop = (~iterations=(-1), ~animation, ()) =>
250- _loop(animation, {"iterations": iterations}) ;
253+ [@bs.module "react-native"] [@bs.scope "Animated"]
254+ external loopWithConfig: (Animation.t, loopConfig) => Animation.t = "" ;
251255
252256type animatedEvent;
253257
Original file line number Diff line number Diff line change @@ -236,11 +236,15 @@ external parallel:
236236[@ bs . module "react-native" ] [@ bs . scope "Animated" ]
237237external stagger : (float , array (Animation . t )) => Animation . t = "" ;
238238
239+ type loopConfig ;
240+
241+ [@ bs . obj ] external loopConfig : (~iterations : int ) => loopConfig = "" ;
242+
239243[@ bs . module "react-native" ] [@ bs . scope "Animated" ]
240- external _loop : ( Animation . t , {. "iterations" : int }) => Animation . t = "loop " ;
244+ external loop : Animation . t => Animation . t = "" ;
241245
242- let loop = (~iterations = ( - 1 ) , ~animation , () ) =>
243- _loop(animation , { "iterations" : iterations}) ;
246+ [ @ bs . module "react-native" ] [ @ bs . scope "Animated" ]
247+ external loopWithConfig : ( Animation . t , loopConfig ) => Animation . t = "" ;
244248
245249type animatedEvent ;
246250
You can’t perform that action at this time.
0 commit comments