@hanzogui/react-native-web-lite 3.0.5 → 4.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/AccessibilityInfo/index.cjs +77 -65
- package/dist/cjs/ActivityIndicator/__tests__/index-test.cjs +70 -49
- package/dist/cjs/ActivityIndicator/index.cjs +110 -108
- package/dist/cjs/Alert/index.cjs +12 -10
- package/dist/cjs/AppRegistry/AppContainer.cjs +50 -45
- package/dist/cjs/AppRegistry/__tests__/index-test.cjs +32 -18
- package/dist/cjs/AppRegistry/__tests__/index-test.node.cjs +47 -40
- package/dist/cjs/AppRegistry/index.cjs +38 -26
- package/dist/cjs/AppRegistry/renderApplication.cjs +44 -39
- package/dist/cjs/AppState/__tests__/index-test.cjs +13 -9
- package/dist/cjs/AppState/index.cjs +41 -25
- package/dist/cjs/Appearance/index.cjs +38 -27
- package/dist/cjs/BackHandler/index.cjs +12 -10
- package/dist/cjs/Clipboard/index.cjs +30 -17
- package/dist/cjs/DeviceEmitter.cjs +12 -10
- package/dist/cjs/DeviceInfo/index.cjs +21 -13
- package/dist/cjs/Dimensions/__tests__/index-test.cjs +29 -16
- package/dist/cjs/Dimensions/index.cjs +63 -33
- package/dist/cjs/FlatList.cjs +139 -95
- package/dist/cjs/I18nManager/index.cjs +19 -13
- package/dist/cjs/Image/index.cjs +209 -147
- package/dist/cjs/Image/types.cjs +7 -5
- package/dist/cjs/ImageBackground/__tests__/index-test.cjs +33 -29
- package/dist/cjs/ImageBackground/index.cjs +49 -47
- package/dist/cjs/InteractionManager/TaskQueue.cjs +49 -25
- package/dist/cjs/InteractionManager/index.cjs +115 -88
- package/dist/cjs/Keyboard/index.cjs +12 -10
- package/dist/cjs/KeyboardAvoidingView/index.cjs +30 -26
- package/dist/cjs/Libraries/Pressability/Pressability.cjs +12 -10
- package/dist/cjs/Libraries/Pressability/usePressability.cjs +12 -10
- package/dist/cjs/Linking/__tests__/index-test.cjs +31 -15
- package/dist/cjs/Linking/index.cjs +37 -23
- package/dist/cjs/LogBox/index.cjs +12 -10
- package/dist/cjs/Modal/ModalAnimation.cjs +141 -114
- package/dist/cjs/Modal/ModalContent.cjs +39 -29
- package/dist/cjs/Modal/ModalPortal.cjs +44 -33
- package/dist/cjs/Modal/index.cjs +12 -10
- package/dist/cjs/NativeModules/index.cjs +12 -10
- package/dist/cjs/PanResponder/index.cjs +24 -22
- package/dist/cjs/PixelRatio/index.cjs +12 -10
- package/dist/cjs/Pressable/index.cjs +128 -100
- package/dist/cjs/RefreshControl/index.cjs +14 -12
- package/dist/cjs/SafeAreaView/index.cjs +44 -37
- package/dist/cjs/ScrollView/ScrollViewBase.cjs +111 -84
- package/dist/cjs/ScrollView/index.cjs +255 -172
- package/dist/cjs/SectionList.cjs +26 -24
- package/dist/cjs/Share/index.cjs +25 -15
- package/dist/cjs/StatusBar/index.cjs +12 -10
- package/dist/cjs/Text/index.cjs +171 -144
- package/dist/cjs/Text/types.cjs +7 -5
- package/dist/cjs/TextInput/index.cjs +252 -141
- package/dist/cjs/TextInput/types.cjs +7 -5
- package/dist/cjs/TouchableNativeFeedback.cjs +12 -10
- package/dist/cjs/TouchableOpacity.cjs +91 -82
- package/dist/cjs/TouchableWithoutFeedback.cjs +73 -69
- package/dist/cjs/UnimplementedView.cjs +31 -26
- package/dist/cjs/Vibration/index.cjs +23 -19
- package/dist/cjs/View/index.cjs +106 -85
- package/dist/cjs/View/types.cjs +7 -5
- package/dist/cjs/VirtualizedList.cjs +26 -24
- package/dist/cjs/codegenNativeCommand.cjs +14 -11
- package/dist/cjs/codegenNativeComponent.cjs +14 -11
- package/dist/cjs/createElement/__tests__/index-test.cjs +162 -99
- package/dist/cjs/createElement/index.cjs +78 -68
- package/dist/cjs/createReactDOMStyle.cjs +12 -10
- package/dist/cjs/index.cjs +78 -76
- package/dist/cjs/modules/requestIdleCallback.cjs +28 -26
- package/dist/cjs/preprocess.cjs +12 -10
- package/dist/cjs/render/index.cjs +12 -10
- package/dist/cjs/styleTypes.cjs +7 -5
- package/dist/cjs/types.cjs +7 -5
- package/dist/cjs/useColorScheme/index.cjs +29 -26
- package/dist/cjs/useLocaleContext/index.cjs +12 -10
- package/dist/cjs/useWindowDimensions/index.cjs +35 -28
- package/dist/cjs/vendor/react-native/Animated/Animated.cjs +31 -29
- package/dist/cjs/vendor/react-native/Animated/AnimatedEvent.cjs +97 -45
- package/dist/cjs/vendor/react-native/Animated/AnimatedImplementation.cjs +545 -466
- package/dist/cjs/vendor/react-native/Animated/AnimatedMock.cjs +106 -99
- package/dist/cjs/vendor/react-native/Animated/Easing.cjs +27 -15
- package/dist/cjs/vendor/react-native/Animated/NativeAnimatedHelper.cjs +303 -215
- package/dist/cjs/vendor/react-native/Animated/NativeAnimatedModule.cjs +58 -56
- package/dist/cjs/vendor/react-native/Animated/NativeAnimatedTurboModule.cjs +55 -53
- package/dist/cjs/vendor/react-native/Animated/SpringConfig.cjs +22 -14
- package/dist/cjs/vendor/react-native/Animated/animations/Animation.cjs +22 -14
- package/dist/cjs/vendor/react-native/Animated/animations/DecayAnimation.cjs +45 -21
- package/dist/cjs/vendor/react-native/Animated/animations/SpringAnimation.cjs +116 -44
- package/dist/cjs/vendor/react-native/Animated/animations/TimingAnimation.cjs +77 -32
- package/dist/cjs/vendor/react-native/Animated/bezier.cjs +68 -27
- package/dist/cjs/vendor/react-native/Animated/components/AnimatedFlatList.cjs +33 -31
- package/dist/cjs/vendor/react-native/Animated/components/AnimatedImage.cjs +26 -13
- package/dist/cjs/vendor/react-native/Animated/components/AnimatedScrollView.cjs +33 -31
- package/dist/cjs/vendor/react-native/Animated/components/AnimatedSectionList.cjs +33 -31
- package/dist/cjs/vendor/react-native/Animated/components/AnimatedText.cjs +14 -12
- package/dist/cjs/vendor/react-native/Animated/components/AnimatedView.cjs +14 -12
- package/dist/cjs/vendor/react-native/Animated/createAnimatedComponent.cjs +40 -37
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedAddition.cjs +26 -17
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedColor.cjs +148 -65
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedDiffClamp.cjs +28 -18
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedDivision.cjs +42 -22
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedInterpolation.cjs +122 -47
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedModulo.cjs +21 -15
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedMultiplication.cjs +26 -17
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedNode.cjs +70 -27
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedProps.cjs +73 -32
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedStyle.cjs +60 -28
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedSubtraction.cjs +26 -17
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedTracking.cjs +36 -19
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedTransform.cjs +57 -32
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedValue.cjs +108 -39
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedValueXY.cjs +53 -30
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedWithChildren.cjs +44 -18
- package/dist/cjs/vendor/react-native/Animated/useAnimatedProps.cjs +63 -43
- package/dist/cjs/vendor/react-native/Batchinator/index.cjs +27 -15
- package/dist/cjs/vendor/react-native/EventEmitter/NativeEventEmitter.cjs +28 -16
- package/dist/cjs/vendor/react-native/EventEmitter/RCTDeviceEventEmitter.cjs +12 -10
- package/dist/cjs/vendor/react-native/FeatureFlags.cjs +18 -16
- package/dist/cjs/vendor/react-native/FillRateHelper/index.cjs +92 -42
- package/dist/cjs/vendor/react-native/FlatList/index.cjs +166 -105
- package/dist/cjs/vendor/react-native/JSEventLoopWatchdog/index.cjs +39 -24
- package/dist/cjs/vendor/react-native/LayoutAnimation/index.cjs +75 -71
- package/dist/cjs/vendor/react-native/PanResponder/index.cjs +181 -118
- package/dist/cjs/vendor/react-native/PooledClass/index.cjs +44 -30
- package/dist/cjs/vendor/react-native/ReactNative/ReactNativeFeatureFlags.cjs +17 -15
- package/dist/cjs/vendor/react-native/SectionList/index.cjs +63 -39
- package/dist/cjs/vendor/react-native/StaticContainer/index.cjs +25 -23
- package/dist/cjs/vendor/react-native/StaticRenderer/index.cjs +24 -22
- package/dist/cjs/vendor/react-native/TouchHistoryMath/index.cjs +48 -29
- package/dist/cjs/vendor/react-native/TurboModule/RCTExport.cjs +17 -15
- package/dist/cjs/vendor/react-native/TurboModule/TurboModuleRegistry.cjs +14 -11
- package/dist/cjs/vendor/react-native/Types/CoreEventTypes.cjs +127 -125
- package/dist/cjs/vendor/react-native/Utilities/Platform.cjs +12 -10
- package/dist/cjs/vendor/react-native/Utilities/clamp.cjs +19 -11
- package/dist/cjs/vendor/react-native/Utilities/setAndForwardRef.cjs +19 -12
- package/dist/cjs/vendor/react-native/Utilities/useMergeRefs.cjs +21 -11
- package/dist/cjs/vendor/react-native/Utilities/useRefEffect.cjs +19 -11
- package/dist/cjs/vendor/react-native/ViewabilityHelper/index.cjs +92 -51
- package/dist/cjs/vendor/react-native/ViewabilityHelper.cjs +91 -50
- package/dist/cjs/vendor/react-native/VirtualizeUtils/index.cjs +96 -58
- package/dist/cjs/vendor/react-native/VirtualizedList/CellRenderMask.cjs +75 -44
- package/dist/cjs/vendor/react-native/VirtualizedList/ChildListCollection.cjs +36 -17
- package/dist/cjs/vendor/react-native/VirtualizedList/StateSafePureComponent.cjs +51 -41
- package/dist/cjs/vendor/react-native/VirtualizedList/VirtualizedListCellRenderer.cjs +87 -78
- package/dist/cjs/vendor/react-native/VirtualizedList/VirtualizedListContext.cjs +36 -32
- package/dist/cjs/vendor/react-native/VirtualizedList/VirtualizedListProps.cjs +19 -17
- package/dist/cjs/vendor/react-native/VirtualizedList/index.cjs +147 -101
- package/dist/cjs/vendor/react-native/VirtualizedSectionList/index.cjs +93 -58
- package/dist/cjs/vendor/react-native/deepDiffer/index.cjs +49 -19
- package/dist/cjs/vendor/react-native/emitter/EventEmitter.cjs +12 -10
- package/dist/cjs/vendor/react-native/emitter/_EmitterSubscription.cjs +16 -11
- package/dist/cjs/vendor/react-native/emitter/_EventEmitter.cjs +31 -20
- package/dist/cjs/vendor/react-native/emitter/_EventSubscription.cjs +12 -10
- package/dist/cjs/vendor/react-native/emitter/_EventSubscriptionVendor.cjs +31 -17
- package/dist/cjs/vendor/react-native/infoLog/index.cjs +12 -10
- package/dist/cjs/vendor/react-native/useRefEffect.cjs +19 -11
- package/dist/cjs/vendor/react-native/vendor/emitter/EventEmitter.cjs +37 -22
- package/dist/cjs/without-animated.cjs +167 -150
- package/dist/esm/AccessibilityInfo/index.mjs +65 -55
- package/dist/esm/AccessibilityInfo/index.mjs.map +1 -1
- package/dist/esm/ActivityIndicator/__tests__/index-test.mjs +55 -36
- package/dist/esm/ActivityIndicator/__tests__/index-test.mjs.map +1 -1
- package/dist/esm/ActivityIndicator/index.mjs +82 -82
- package/dist/esm/ActivityIndicator/index.mjs.map +1 -1
- package/dist/esm/AppRegistry/AppContainer.mjs +22 -19
- package/dist/esm/AppRegistry/AppContainer.mjs.map +1 -1
- package/dist/esm/AppRegistry/__tests__/index-test.mjs +21 -9
- package/dist/esm/AppRegistry/__tests__/index-test.mjs.map +1 -1
- package/dist/esm/AppRegistry/__tests__/index-test.node.mjs +33 -28
- package/dist/esm/AppRegistry/__tests__/index-test.node.mjs.map +1 -1
- package/dist/esm/AppRegistry/index.mjs +23 -13
- package/dist/esm/AppRegistry/index.mjs.map +1 -1
- package/dist/esm/AppRegistry/renderApplication.mjs +27 -24
- package/dist/esm/AppRegistry/renderApplication.mjs.map +1 -1
- package/dist/esm/AppState/__tests__/index-test.mjs +4 -2
- package/dist/esm/AppState/__tests__/index-test.mjs.map +1 -1
- package/dist/esm/AppState/index.mjs +29 -15
- package/dist/esm/AppState/index.mjs.map +1 -1
- package/dist/esm/Appearance/index.mjs +26 -17
- package/dist/esm/Appearance/index.mjs.map +1 -1
- package/dist/esm/Clipboard/index.mjs +18 -7
- package/dist/esm/Clipboard/index.mjs.map +1 -1
- package/dist/esm/DeviceInfo/index.mjs +7 -1
- package/dist/esm/DeviceInfo/index.mjs.map +1 -1
- package/dist/esm/Dimensions/__tests__/index-test.mjs +20 -9
- package/dist/esm/Dimensions/__tests__/index-test.mjs.map +1 -1
- package/dist/esm/Dimensions/index.mjs +51 -23
- package/dist/esm/Dimensions/index.mjs.map +1 -1
- package/dist/esm/FlatList.mjs +107 -65
- package/dist/esm/FlatList.mjs.map +1 -1
- package/dist/esm/I18nManager/index.mjs +7 -3
- package/dist/esm/I18nManager/index.mjs.map +1 -1
- package/dist/esm/Image/index.mjs +178 -118
- package/dist/esm/Image/index.mjs.map +1 -1
- package/dist/esm/ImageBackground/__tests__/index-test.mjs +20 -18
- package/dist/esm/ImageBackground/__tests__/index-test.mjs.map +1 -1
- package/dist/esm/ImageBackground/index.mjs +32 -32
- package/dist/esm/ImageBackground/index.mjs.map +1 -1
- package/dist/esm/InteractionManager/TaskQueue.mjs +37 -15
- package/dist/esm/InteractionManager/TaskQueue.mjs.map +1 -1
- package/dist/esm/InteractionManager/index.mjs +87 -62
- package/dist/esm/InteractionManager/index.mjs.map +1 -1
- package/dist/esm/KeyboardAvoidingView/index.mjs +3 -1
- package/dist/esm/KeyboardAvoidingView/index.mjs.map +1 -1
- package/dist/esm/Linking/__tests__/index-test.mjs +22 -8
- package/dist/esm/Linking/__tests__/index-test.mjs.map +1 -1
- package/dist/esm/Linking/index.mjs +25 -13
- package/dist/esm/Linking/index.mjs.map +1 -1
- package/dist/esm/Modal/ModalAnimation.mjs +113 -88
- package/dist/esm/Modal/ModalAnimation.mjs.map +1 -1
- package/dist/esm/Modal/ModalContent.mjs +12 -4
- package/dist/esm/Modal/ModalContent.mjs.map +1 -1
- package/dist/esm/Modal/ModalPortal.mjs +17 -8
- package/dist/esm/Modal/ModalPortal.mjs.map +1 -1
- package/dist/esm/Pressable/index.mjs +97 -71
- package/dist/esm/Pressable/index.mjs.map +1 -1
- package/dist/esm/SafeAreaView/index.mjs +16 -11
- package/dist/esm/SafeAreaView/index.mjs.map +1 -1
- package/dist/esm/ScrollView/ScrollViewBase.mjs +83 -58
- package/dist/esm/ScrollView/ScrollViewBase.mjs.map +1 -1
- package/dist/esm/ScrollView/index.mjs +225 -144
- package/dist/esm/ScrollView/index.mjs.map +1 -1
- package/dist/esm/Share/index.mjs +13 -5
- package/dist/esm/Share/index.mjs.map +1 -1
- package/dist/esm/Text/index.mjs +143 -118
- package/dist/esm/Text/index.mjs.map +1 -1
- package/dist/esm/TextInput/index.mjs +224 -115
- package/dist/esm/TextInput/index.mjs.map +1 -1
- package/dist/esm/TouchableOpacity.mjs +62 -55
- package/dist/esm/TouchableOpacity.mjs.map +1 -1
- package/dist/esm/TouchableWithoutFeedback.mjs +46 -44
- package/dist/esm/TouchableWithoutFeedback.mjs.map +1 -1
- package/dist/esm/UnimplementedView.mjs +4 -1
- package/dist/esm/UnimplementedView.mjs.map +1 -1
- package/dist/esm/Vibration/index.mjs +11 -9
- package/dist/esm/Vibration/index.mjs.map +1 -1
- package/dist/esm/View/index.mjs +79 -60
- package/dist/esm/View/index.mjs.map +1 -1
- package/dist/esm/codegenNativeCommand.mjs +2 -1
- package/dist/esm/codegenNativeCommand.mjs.map +1 -1
- package/dist/esm/codegenNativeComponent.mjs +2 -1
- package/dist/esm/codegenNativeComponent.mjs.map +1 -1
- package/dist/esm/createElement/__tests__/index-test.mjs +150 -89
- package/dist/esm/createElement/__tests__/index-test.mjs.map +1 -1
- package/dist/esm/createElement/index.mjs +49 -41
- package/dist/esm/createElement/index.mjs.map +1 -1
- package/dist/esm/index.js +4 -4
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/index.mjs +4 -4
- package/dist/esm/index.mjs.map +1 -1
- package/dist/esm/modules/requestIdleCallback.mjs +16 -16
- package/dist/esm/modules/requestIdleCallback.mjs.map +1 -1
- package/dist/esm/useColorScheme/index.mjs +3 -2
- package/dist/esm/useColorScheme/index.mjs.map +1 -1
- package/dist/esm/useWindowDimensions/index.mjs +9 -4
- package/dist/esm/useWindowDimensions/index.mjs.map +1 -1
- package/dist/esm/vendor/react-native/Animated/Animated.mjs +10 -10
- package/dist/esm/vendor/react-native/Animated/Animated.mjs.map +1 -1
- package/dist/esm/vendor/react-native/Animated/AnimatedEvent.mjs +81 -31
- package/dist/esm/vendor/react-native/Animated/AnimatedEvent.mjs.map +1 -1
- package/dist/esm/vendor/react-native/Animated/AnimatedImplementation.mjs +519 -442
- package/dist/esm/vendor/react-native/Animated/AnimatedImplementation.mjs.map +1 -1
- package/dist/esm/vendor/react-native/Animated/AnimatedMock.mjs +86 -81
- package/dist/esm/vendor/react-native/Animated/AnimatedMock.mjs.map +1 -1
- package/dist/esm/vendor/react-native/Animated/Easing.mjs +15 -5
- package/dist/esm/vendor/react-native/Animated/Easing.mjs.map +1 -1
- package/dist/esm/vendor/react-native/Animated/NativeAnimatedHelper.mjs +284 -198
- package/dist/esm/vendor/react-native/Animated/NativeAnimatedHelper.mjs.map +1 -1
- package/dist/esm/vendor/react-native/Animated/NativeAnimatedModule.mjs +34 -34
- package/dist/esm/vendor/react-native/Animated/NativeAnimatedModule.mjs.map +1 -1
- package/dist/esm/vendor/react-native/Animated/NativeAnimatedTurboModule.mjs +31 -31
- package/dist/esm/vendor/react-native/Animated/NativeAnimatedTurboModule.mjs.map +1 -1
- package/dist/esm/vendor/react-native/Animated/SpringConfig.mjs +10 -4
- package/dist/esm/vendor/react-native/Animated/SpringConfig.mjs.map +1 -1
- package/dist/esm/vendor/react-native/Animated/animations/Animation.mjs +10 -4
- package/dist/esm/vendor/react-native/Animated/animations/Animation.mjs.map +1 -1
- package/dist/esm/vendor/react-native/Animated/animations/DecayAnimation.mjs +31 -9
- package/dist/esm/vendor/react-native/Animated/animations/DecayAnimation.mjs.map +1 -1
- package/dist/esm/vendor/react-native/Animated/animations/SpringAnimation.mjs +100 -30
- package/dist/esm/vendor/react-native/Animated/animations/SpringAnimation.mjs.map +1 -1
- package/dist/esm/vendor/react-native/Animated/animations/TimingAnimation.mjs +62 -19
- package/dist/esm/vendor/react-native/Animated/animations/TimingAnimation.mjs.map +1 -1
- package/dist/esm/vendor/react-native/Animated/bezier.mjs +56 -17
- package/dist/esm/vendor/react-native/Animated/bezier.mjs.map +1 -1
- package/dist/esm/vendor/react-native/Animated/components/AnimatedFlatList.mjs +5 -5
- package/dist/esm/vendor/react-native/Animated/components/AnimatedFlatList.mjs.map +1 -1
- package/dist/esm/vendor/react-native/Animated/components/AnimatedImage.mjs +1 -1
- package/dist/esm/vendor/react-native/Animated/components/AnimatedImage.mjs.map +1 -1
- package/dist/esm/vendor/react-native/Animated/components/AnimatedScrollView.mjs +5 -5
- package/dist/esm/vendor/react-native/Animated/components/AnimatedScrollView.mjs.map +1 -1
- package/dist/esm/vendor/react-native/Animated/components/AnimatedSectionList.mjs +5 -5
- package/dist/esm/vendor/react-native/Animated/components/AnimatedSectionList.mjs.map +1 -1
- package/dist/esm/vendor/react-native/Animated/createAnimatedComponent.mjs +12 -11
- package/dist/esm/vendor/react-native/Animated/createAnimatedComponent.mjs.map +1 -1
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedAddition.mjs +11 -4
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedAddition.mjs.map +1 -1
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedColor.mjs +132 -51
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedColor.mjs.map +1 -1
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedDiffClamp.mjs +14 -6
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedDiffClamp.mjs.map +1 -1
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedDivision.mjs +26 -8
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedDivision.mjs.map +1 -1
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedInterpolation.mjs +107 -34
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedInterpolation.mjs.map +1 -1
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedModulo.mjs +7 -3
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedModulo.mjs.map +1 -1
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedMultiplication.mjs +11 -4
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedMultiplication.mjs.map +1 -1
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedNode.mjs +56 -15
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedNode.mjs.map +1 -1
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedProps.mjs +56 -17
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedProps.mjs.map +1 -1
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedStyle.mjs +43 -13
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedStyle.mjs.map +1 -1
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedSubtraction.mjs +11 -4
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedSubtraction.mjs.map +1 -1
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedTracking.mjs +22 -7
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedTracking.mjs.map +1 -1
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedTransform.mjs +42 -19
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedTransform.mjs.map +1 -1
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedValue.mjs +92 -25
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedValue.mjs.map +1 -1
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedValueXY.mjs +38 -17
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedValueXY.mjs.map +1 -1
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedWithChildren.mjs +30 -6
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedWithChildren.mjs.map +1 -1
- package/dist/esm/vendor/react-native/Animated/useAnimatedProps.mjs +45 -27
- package/dist/esm/vendor/react-native/Animated/useAnimatedProps.mjs.map +1 -1
- package/dist/esm/vendor/react-native/Batchinator/index.mjs +15 -5
- package/dist/esm/vendor/react-native/Batchinator/index.mjs.map +1 -1
- package/dist/esm/vendor/react-native/EventEmitter/NativeEventEmitter.mjs +14 -4
- package/dist/esm/vendor/react-native/EventEmitter/NativeEventEmitter.mjs.map +1 -1
- package/dist/esm/vendor/react-native/FeatureFlags.mjs +6 -6
- package/dist/esm/vendor/react-native/FillRateHelper/index.mjs +80 -32
- package/dist/esm/vendor/react-native/FillRateHelper/index.mjs.map +1 -1
- package/dist/esm/vendor/react-native/FlatList/index.mjs +133 -74
- package/dist/esm/vendor/react-native/FlatList/index.mjs.map +1 -1
- package/dist/esm/vendor/react-native/JSEventLoopWatchdog/index.mjs +27 -14
- package/dist/esm/vendor/react-native/JSEventLoopWatchdog/index.mjs.map +1 -1
- package/dist/esm/vendor/react-native/LayoutAnimation/index.mjs +61 -59
- package/dist/esm/vendor/react-native/LayoutAnimation/index.mjs.map +1 -1
- package/dist/esm/vendor/react-native/PanResponder/index.mjs +155 -94
- package/dist/esm/vendor/react-native/PanResponder/index.mjs.map +1 -1
- package/dist/esm/vendor/react-native/PooledClass/index.mjs +32 -20
- package/dist/esm/vendor/react-native/PooledClass/index.mjs.map +1 -1
- package/dist/esm/vendor/react-native/ReactNative/ReactNativeFeatureFlags.mjs +5 -5
- package/dist/esm/vendor/react-native/SectionList/index.mjs +36 -14
- package/dist/esm/vendor/react-native/SectionList/index.mjs.map +1 -1
- package/dist/esm/vendor/react-native/StaticContainer/index.mjs +1 -1
- package/dist/esm/vendor/react-native/StaticContainer/index.mjs.map +1 -1
- package/dist/esm/vendor/react-native/TouchHistoryMath/index.mjs +36 -19
- package/dist/esm/vendor/react-native/TouchHistoryMath/index.mjs.map +1 -1
- package/dist/esm/vendor/react-native/TurboModule/RCTExport.mjs +5 -5
- package/dist/esm/vendor/react-native/TurboModule/RCTExport.mjs.map +1 -1
- package/dist/esm/vendor/react-native/TurboModule/TurboModuleRegistry.mjs +2 -1
- package/dist/esm/vendor/react-native/TurboModule/TurboModuleRegistry.mjs.map +1 -1
- package/dist/esm/vendor/react-native/Types/CoreEventTypes.mjs +115 -115
- package/dist/esm/vendor/react-native/Types/CoreEventTypes.mjs.map +1 -1
- package/dist/esm/vendor/react-native/Utilities/clamp.mjs +7 -1
- package/dist/esm/vendor/react-native/Utilities/clamp.mjs.map +1 -1
- package/dist/esm/vendor/react-native/Utilities/setAndForwardRef.mjs +7 -2
- package/dist/esm/vendor/react-native/Utilities/setAndForwardRef.mjs.map +1 -1
- package/dist/esm/vendor/react-native/Utilities/useMergeRefs.mjs +9 -1
- package/dist/esm/vendor/react-native/Utilities/useMergeRefs.mjs.map +1 -1
- package/dist/esm/vendor/react-native/Utilities/useRefEffect.mjs +7 -1
- package/dist/esm/vendor/react-native/Utilities/useRefEffect.mjs.map +1 -1
- package/dist/esm/vendor/react-native/ViewabilityHelper/index.mjs +80 -41
- package/dist/esm/vendor/react-native/ViewabilityHelper/index.mjs.map +1 -1
- package/dist/esm/vendor/react-native/ViewabilityHelper.mjs +79 -40
- package/dist/esm/vendor/react-native/ViewabilityHelper.mjs.map +1 -1
- package/dist/esm/vendor/react-native/VirtualizeUtils/index.mjs +84 -48
- package/dist/esm/vendor/react-native/VirtualizeUtils/index.mjs.map +1 -1
- package/dist/esm/vendor/react-native/VirtualizedList/CellRenderMask.mjs +63 -34
- package/dist/esm/vendor/react-native/VirtualizedList/CellRenderMask.mjs.map +1 -1
- package/dist/esm/vendor/react-native/VirtualizedList/ChildListCollection.mjs +24 -7
- package/dist/esm/vendor/react-native/VirtualizedList/ChildListCollection.mjs.map +1 -1
- package/dist/esm/vendor/react-native/VirtualizedList/StateSafePureComponent.mjs +25 -17
- package/dist/esm/vendor/react-native/VirtualizedList/StateSafePureComponent.mjs.map +1 -1
- package/dist/esm/vendor/react-native/VirtualizedList/VirtualizedListCellRenderer.mjs +58 -51
- package/dist/esm/vendor/react-native/VirtualizedList/VirtualizedListCellRenderer.mjs.map +1 -1
- package/dist/esm/vendor/react-native/VirtualizedList/VirtualizedListContext.mjs +9 -7
- package/dist/esm/vendor/react-native/VirtualizedList/VirtualizedListContext.mjs.map +1 -1
- package/dist/esm/vendor/react-native/VirtualizedList/VirtualizedListProps.mjs +7 -7
- package/dist/esm/vendor/react-native/VirtualizedList/index.mjs +124 -80
- package/dist/esm/vendor/react-native/VirtualizedList/index.mjs.map +1 -1
- package/dist/esm/vendor/react-native/VirtualizedSectionList/index.mjs +66 -33
- package/dist/esm/vendor/react-native/VirtualizedSectionList/index.mjs.map +1 -1
- package/dist/esm/vendor/react-native/deepDiffer/index.mjs +37 -9
- package/dist/esm/vendor/react-native/deepDiffer/index.mjs.map +1 -1
- package/dist/esm/vendor/react-native/emitter/_EmitterSubscription.mjs +4 -1
- package/dist/esm/vendor/react-native/emitter/_EmitterSubscription.mjs.map +1 -1
- package/dist/esm/vendor/react-native/emitter/_EventEmitter.mjs +16 -7
- package/dist/esm/vendor/react-native/emitter/_EventEmitter.mjs.map +1 -1
- package/dist/esm/vendor/react-native/emitter/_EventSubscriptionVendor.mjs +19 -7
- package/dist/esm/vendor/react-native/emitter/_EventSubscriptionVendor.mjs.map +1 -1
- package/dist/esm/vendor/react-native/useRefEffect.mjs +7 -1
- package/dist/esm/vendor/react-native/useRefEffect.mjs.map +1 -1
- package/dist/esm/vendor/react-native/vendor/emitter/EventEmitter.mjs +25 -12
- package/dist/esm/vendor/react-native/vendor/emitter/EventEmitter.mjs.map +1 -1
- package/dist/esm/without-animated.mjs +86 -71
- package/dist/esm/without-animated.mjs.map +1 -1
- package/package.json +7 -7
- package/src/vendor/react-native/Animated/AnimatedImplementation.js +7 -7
|
@@ -5,20 +5,22 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
|
5
5
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
6
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
7
|
var __export = (target, all) => {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
8
|
+
for (var name in all) __defProp(target, name, {
|
|
9
|
+
get: all[name],
|
|
10
|
+
enumerable: true
|
|
11
|
+
});
|
|
12
|
+
};
|
|
13
|
+
var __copyProps = (to, from, except, desc) => {
|
|
14
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
15
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
15
16
|
get: () => from[key],
|
|
16
17
|
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
17
18
|
});
|
|
18
|
-
|
|
19
|
-
|
|
19
|
+
}
|
|
20
|
+
return to;
|
|
21
|
+
};
|
|
20
22
|
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
21
|
-
value:
|
|
23
|
+
value: true
|
|
22
24
|
}), mod);
|
|
23
25
|
var AnimatedImplementation_exports = {};
|
|
24
26
|
__export(AnimatedImplementation_exports, {
|
|
@@ -27,482 +29,559 @@ __export(AnimatedImplementation_exports, {
|
|
|
27
29
|
default: () => AnimatedImplementation_default
|
|
28
30
|
});
|
|
29
31
|
module.exports = __toCommonJS(AnimatedImplementation_exports);
|
|
30
|
-
var import_AnimatedEvent = require("./AnimatedEvent.cjs")
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
import_Animation = require("./animations/Animation.cjs"),
|
|
48
|
-
import_AnimatedColor = require("./nodes/AnimatedColor.cjs");
|
|
32
|
+
var import_AnimatedEvent = require("./AnimatedEvent.cjs");
|
|
33
|
+
var import_DecayAnimation = require("./animations/DecayAnimation.cjs");
|
|
34
|
+
var import_SpringAnimation = require("./animations/SpringAnimation.cjs");
|
|
35
|
+
var import_TimingAnimation = require("./animations/TimingAnimation.cjs");
|
|
36
|
+
var import_AnimatedAddition = require("./nodes/AnimatedAddition.cjs");
|
|
37
|
+
var import_AnimatedDiffClamp = require("./nodes/AnimatedDiffClamp.cjs");
|
|
38
|
+
var import_AnimatedDivision = require("./nodes/AnimatedDivision.cjs");
|
|
39
|
+
var import_AnimatedInterpolation = require("./nodes/AnimatedInterpolation.cjs");
|
|
40
|
+
var import_AnimatedModulo = require("./nodes/AnimatedModulo.cjs");
|
|
41
|
+
var import_AnimatedMultiplication = require("./nodes/AnimatedMultiplication.cjs");
|
|
42
|
+
var import_AnimatedNode = require("./nodes/AnimatedNode.cjs");
|
|
43
|
+
var import_AnimatedSubtraction = require("./nodes/AnimatedSubtraction.cjs");
|
|
44
|
+
var import_AnimatedTracking = require("./nodes/AnimatedTracking.cjs");
|
|
45
|
+
var import_AnimatedValue = require("./nodes/AnimatedValue.cjs");
|
|
46
|
+
var import_AnimatedValueXY = require("./nodes/AnimatedValueXY.cjs");
|
|
47
|
+
var import_createAnimatedComponent = require("./createAnimatedComponent.cjs");
|
|
48
|
+
var import_AnimatedColor = require("./nodes/AnimatedColor.cjs");
|
|
49
49
|
const add = function (a, b) {
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
maybeVectorAnim = function (value, config, anim) {
|
|
73
|
-
if (value instanceof import_AnimatedValueXY.AnimatedValueXY) {
|
|
74
|
-
const configX = {
|
|
75
|
-
...config
|
|
76
|
-
},
|
|
77
|
-
configY = {
|
|
78
|
-
...config
|
|
79
|
-
};
|
|
80
|
-
for (const key in config) {
|
|
81
|
-
const {
|
|
82
|
-
x,
|
|
83
|
-
y
|
|
84
|
-
} = config[key];
|
|
85
|
-
x !== void 0 && y !== void 0 && (configX[key] = x, configY[key] = y);
|
|
86
|
-
}
|
|
87
|
-
const aX = anim(value.x, configX),
|
|
88
|
-
aY = anim(value.y, configY);
|
|
89
|
-
return parallel([aX, aY], {
|
|
90
|
-
stopTogether: !1
|
|
91
|
-
});
|
|
92
|
-
} else if (value instanceof import_AnimatedColor.AnimatedColor) {
|
|
93
|
-
const configR = {
|
|
94
|
-
...config
|
|
95
|
-
},
|
|
96
|
-
configG = {
|
|
97
|
-
...config
|
|
98
|
-
},
|
|
99
|
-
configB = {
|
|
100
|
-
...config
|
|
101
|
-
},
|
|
102
|
-
configA = {
|
|
103
|
-
...config
|
|
104
|
-
};
|
|
105
|
-
for (const key in config) {
|
|
106
|
-
const {
|
|
107
|
-
r,
|
|
108
|
-
g,
|
|
109
|
-
b,
|
|
110
|
-
a
|
|
111
|
-
} = config[key];
|
|
112
|
-
r !== void 0 && g !== void 0 && b !== void 0 && a !== void 0 && (configR[key] = r, configG[key] = g, configB[key] = b, configA[key] = a);
|
|
113
|
-
}
|
|
114
|
-
const aR = anim(value.r, configR),
|
|
115
|
-
aG = anim(value.g, configG),
|
|
116
|
-
aB = anim(value.b, configB),
|
|
117
|
-
aA = anim(value.a, configA);
|
|
118
|
-
return parallel([aR, aG, aB, aA], {
|
|
119
|
-
stopTogether: !1
|
|
120
|
-
});
|
|
121
|
-
}
|
|
122
|
-
return null;
|
|
123
|
-
},
|
|
124
|
-
spring = function (value, config) {
|
|
125
|
-
const start = function (animatedValue, configuration, callback) {
|
|
126
|
-
callback = _combineCallbacks(callback, configuration);
|
|
127
|
-
const singleValue = animatedValue,
|
|
128
|
-
singleConfig = configuration;
|
|
129
|
-
singleValue.stopTracking(), configuration.toValue instanceof import_AnimatedNode.AnimatedNode ? singleValue.track(new import_AnimatedTracking.AnimatedTracking(singleValue, configuration.toValue, import_SpringAnimation.SpringAnimation, singleConfig, callback)) : singleValue.animate(new import_SpringAnimation.SpringAnimation(singleConfig), callback);
|
|
50
|
+
return new import_AnimatedAddition.AnimatedAddition(a, b);
|
|
51
|
+
};
|
|
52
|
+
const subtract = function (a, b) {
|
|
53
|
+
return new import_AnimatedSubtraction.AnimatedSubtraction(a, b);
|
|
54
|
+
};
|
|
55
|
+
const divide = function (a, b) {
|
|
56
|
+
return new import_AnimatedDivision.AnimatedDivision(a, b);
|
|
57
|
+
};
|
|
58
|
+
const multiply = function (a, b) {
|
|
59
|
+
return new import_AnimatedMultiplication.AnimatedMultiplication(a, b);
|
|
60
|
+
};
|
|
61
|
+
const modulo = function (a, modulus) {
|
|
62
|
+
return new import_AnimatedModulo.AnimatedModulo(a, modulus);
|
|
63
|
+
};
|
|
64
|
+
const diffClamp = function (a, min, max) {
|
|
65
|
+
return new import_AnimatedDiffClamp.AnimatedDiffClamp(a, min, max);
|
|
66
|
+
};
|
|
67
|
+
const _combineCallbacks = function (callback, config) {
|
|
68
|
+
if (callback && config.onComplete) {
|
|
69
|
+
return (...args) => {
|
|
70
|
+
config.onComplete && config.onComplete(...args);
|
|
71
|
+
callback && callback(...args);
|
|
130
72
|
};
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
value.resetAnimation();
|
|
140
|
-
},
|
|
141
|
-
_startNativeLoop: function (iterations) {
|
|
142
|
-
const singleConfig = {
|
|
143
|
-
...config,
|
|
144
|
-
iterations
|
|
145
|
-
};
|
|
146
|
-
start(value, singleConfig);
|
|
147
|
-
},
|
|
148
|
-
_isUsingNativeDriver: function () {
|
|
149
|
-
return config.useNativeDriver || !1;
|
|
150
|
-
}
|
|
73
|
+
} else {
|
|
74
|
+
return callback || config.onComplete;
|
|
75
|
+
}
|
|
76
|
+
};
|
|
77
|
+
const maybeVectorAnim = function (value, config, anim) {
|
|
78
|
+
if (value instanceof import_AnimatedValueXY.AnimatedValueXY) {
|
|
79
|
+
const configX = {
|
|
80
|
+
...config
|
|
151
81
|
};
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
const start = function (animatedValue, configuration, callback) {
|
|
155
|
-
callback = _combineCallbacks(callback, configuration);
|
|
156
|
-
const singleValue = animatedValue,
|
|
157
|
-
singleConfig = configuration;
|
|
158
|
-
singleValue.stopTracking(), configuration.toValue instanceof import_AnimatedNode.AnimatedNode ? singleValue.track(new import_AnimatedTracking.AnimatedTracking(singleValue, configuration.toValue, import_TimingAnimation.TimingAnimation, singleConfig, callback)) : singleValue.animate(new import_TimingAnimation.TimingAnimation(singleConfig), callback);
|
|
82
|
+
const configY = {
|
|
83
|
+
...config
|
|
159
84
|
};
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
value.resetAnimation();
|
|
169
|
-
},
|
|
170
|
-
_startNativeLoop: function (iterations) {
|
|
171
|
-
const singleConfig = {
|
|
172
|
-
...config,
|
|
173
|
-
iterations
|
|
174
|
-
};
|
|
175
|
-
start(value, singleConfig);
|
|
176
|
-
},
|
|
177
|
-
_isUsingNativeDriver: function () {
|
|
178
|
-
return config.useNativeDriver || !1;
|
|
85
|
+
for (const key in config) {
|
|
86
|
+
const {
|
|
87
|
+
x,
|
|
88
|
+
y
|
|
89
|
+
} = config[key];
|
|
90
|
+
if (x !== void 0 && y !== void 0) {
|
|
91
|
+
configX[key] = x;
|
|
92
|
+
configY[key] = y;
|
|
179
93
|
}
|
|
94
|
+
}
|
|
95
|
+
const aX = anim(value.x, configX);
|
|
96
|
+
const aY = anim(value.y, configY);
|
|
97
|
+
return parallel([aX, aY], {
|
|
98
|
+
stopTogether: false
|
|
99
|
+
});
|
|
100
|
+
} else if (value instanceof import_AnimatedColor.AnimatedColor) {
|
|
101
|
+
const configR = {
|
|
102
|
+
...config
|
|
180
103
|
};
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
const start = function (animatedValue, configuration, callback) {
|
|
184
|
-
callback = _combineCallbacks(callback, configuration);
|
|
185
|
-
const singleValue = animatedValue,
|
|
186
|
-
singleConfig = configuration;
|
|
187
|
-
singleValue.stopTracking(), singleValue.animate(new import_DecayAnimation.DecayAnimation(singleConfig), callback);
|
|
104
|
+
const configG = {
|
|
105
|
+
...config
|
|
188
106
|
};
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
start(value, config, callback);
|
|
192
|
-
},
|
|
193
|
-
stop: function () {
|
|
194
|
-
value.stopAnimation();
|
|
195
|
-
},
|
|
196
|
-
reset: function () {
|
|
197
|
-
value.resetAnimation();
|
|
198
|
-
},
|
|
199
|
-
_startNativeLoop: function (iterations) {
|
|
200
|
-
const singleConfig = {
|
|
201
|
-
...config,
|
|
202
|
-
iterations
|
|
203
|
-
};
|
|
204
|
-
start(value, singleConfig);
|
|
205
|
-
},
|
|
206
|
-
_isUsingNativeDriver: function () {
|
|
207
|
-
return config.useNativeDriver || !1;
|
|
208
|
-
}
|
|
107
|
+
const configB = {
|
|
108
|
+
...config
|
|
209
109
|
};
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
let current = 0;
|
|
213
|
-
return {
|
|
214
|
-
start: function (callback) {
|
|
215
|
-
const onComplete = function (result) {
|
|
216
|
-
if (!result.finished) {
|
|
217
|
-
callback && callback(result);
|
|
218
|
-
return;
|
|
219
|
-
}
|
|
220
|
-
if (current++, current === animations.length) {
|
|
221
|
-
callback && callback(result);
|
|
222
|
-
return;
|
|
223
|
-
}
|
|
224
|
-
animations[current].start(onComplete);
|
|
225
|
-
};
|
|
226
|
-
animations.length === 0 ? callback && callback({
|
|
227
|
-
finished: !0
|
|
228
|
-
}) : animations[current].start(onComplete);
|
|
229
|
-
},
|
|
230
|
-
stop: function () {
|
|
231
|
-
current < animations.length && animations[current].stop();
|
|
232
|
-
},
|
|
233
|
-
reset: function () {
|
|
234
|
-
animations.forEach((animation, idx) => {
|
|
235
|
-
idx <= current && animation.reset();
|
|
236
|
-
}), current = 0;
|
|
237
|
-
},
|
|
238
|
-
_startNativeLoop: function () {
|
|
239
|
-
throw new Error("Loops run using the native driver cannot contain Animated.sequence animations");
|
|
240
|
-
},
|
|
241
|
-
_isUsingNativeDriver: function () {
|
|
242
|
-
return !1;
|
|
243
|
-
}
|
|
110
|
+
const configA = {
|
|
111
|
+
...config
|
|
244
112
|
};
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
113
|
+
for (const key in config) {
|
|
114
|
+
const {
|
|
115
|
+
r,
|
|
116
|
+
g,
|
|
117
|
+
b,
|
|
118
|
+
a
|
|
119
|
+
} = config[key];
|
|
120
|
+
if (r !== void 0 && g !== void 0 && b !== void 0 && a !== void 0) {
|
|
121
|
+
configR[key] = r;
|
|
122
|
+
configG[key] = g;
|
|
123
|
+
configB[key] = b;
|
|
124
|
+
configA[key] = a;
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
const aR = anim(value.r, configR);
|
|
128
|
+
const aG = anim(value.g, configG);
|
|
129
|
+
const aB = anim(value.b, configB);
|
|
130
|
+
const aA = anim(value.a, configA);
|
|
131
|
+
return parallel([aR, aG, aB, aA], {
|
|
132
|
+
stopTogether: false
|
|
133
|
+
});
|
|
134
|
+
}
|
|
135
|
+
return null;
|
|
136
|
+
};
|
|
137
|
+
const spring = function (value, config) {
|
|
138
|
+
const start = function (animatedValue, configuration, callback) {
|
|
139
|
+
callback = _combineCallbacks(callback, configuration);
|
|
140
|
+
const singleValue = animatedValue;
|
|
141
|
+
const singleConfig = configuration;
|
|
142
|
+
singleValue.stopTracking();
|
|
143
|
+
if (configuration.toValue instanceof import_AnimatedNode.AnimatedNode) {
|
|
144
|
+
singleValue.track(new import_AnimatedTracking.AnimatedTracking(singleValue, configuration.toValue, import_SpringAnimation.SpringAnimation, singleConfig, callback));
|
|
145
|
+
} else {
|
|
146
|
+
singleValue.animate(new import_SpringAnimation.SpringAnimation(singleConfig), callback);
|
|
147
|
+
}
|
|
148
|
+
};
|
|
149
|
+
return maybeVectorAnim(value, config, spring) || {
|
|
150
|
+
start: function (callback) {
|
|
151
|
+
start(value, config, callback);
|
|
152
|
+
},
|
|
153
|
+
stop: function () {
|
|
154
|
+
value.stopAnimation();
|
|
155
|
+
},
|
|
156
|
+
reset: function () {
|
|
157
|
+
value.resetAnimation();
|
|
158
|
+
},
|
|
159
|
+
_startNativeLoop: function (iterations) {
|
|
160
|
+
const singleConfig = {
|
|
161
|
+
...config,
|
|
162
|
+
iterations
|
|
163
|
+
};
|
|
164
|
+
start(value, singleConfig);
|
|
165
|
+
},
|
|
166
|
+
_isUsingNativeDriver: function () {
|
|
167
|
+
return config.useNativeDriver || false;
|
|
168
|
+
}
|
|
169
|
+
};
|
|
170
|
+
};
|
|
171
|
+
const timing = function (value, config) {
|
|
172
|
+
const start = function (animatedValue, configuration, callback) {
|
|
173
|
+
callback = _combineCallbacks(callback, configuration);
|
|
174
|
+
const singleValue = animatedValue;
|
|
175
|
+
const singleConfig = configuration;
|
|
176
|
+
singleValue.stopTracking();
|
|
177
|
+
if (configuration.toValue instanceof import_AnimatedNode.AnimatedNode) {
|
|
178
|
+
singleValue.track(new import_AnimatedTracking.AnimatedTracking(singleValue, configuration.toValue, import_TimingAnimation.TimingAnimation, singleConfig, callback));
|
|
179
|
+
} else {
|
|
180
|
+
singleValue.animate(new import_TimingAnimation.TimingAnimation(singleConfig), callback);
|
|
181
|
+
}
|
|
182
|
+
};
|
|
183
|
+
return maybeVectorAnim(value, config, timing) || {
|
|
184
|
+
start: function (callback) {
|
|
185
|
+
start(value, config, callback);
|
|
186
|
+
},
|
|
187
|
+
stop: function () {
|
|
188
|
+
value.stopAnimation();
|
|
189
|
+
},
|
|
190
|
+
reset: function () {
|
|
191
|
+
value.resetAnimation();
|
|
192
|
+
},
|
|
193
|
+
_startNativeLoop: function (iterations) {
|
|
194
|
+
const singleConfig = {
|
|
195
|
+
...config,
|
|
196
|
+
iterations
|
|
197
|
+
};
|
|
198
|
+
start(value, singleConfig);
|
|
199
|
+
},
|
|
200
|
+
_isUsingNativeDriver: function () {
|
|
201
|
+
return config.useNativeDriver || false;
|
|
202
|
+
}
|
|
203
|
+
};
|
|
204
|
+
};
|
|
205
|
+
const decay = function (value, config) {
|
|
206
|
+
const start = function (animatedValue, configuration, callback) {
|
|
207
|
+
callback = _combineCallbacks(callback, configuration);
|
|
208
|
+
const singleValue = animatedValue;
|
|
209
|
+
const singleConfig = configuration;
|
|
210
|
+
singleValue.stopTracking();
|
|
211
|
+
singleValue.animate(new import_DecayAnimation.DecayAnimation(singleConfig), callback);
|
|
212
|
+
};
|
|
213
|
+
return maybeVectorAnim(value, config, decay) || {
|
|
214
|
+
start: function (callback) {
|
|
215
|
+
start(value, config, callback);
|
|
216
|
+
},
|
|
217
|
+
stop: function () {
|
|
218
|
+
value.stopAnimation();
|
|
219
|
+
},
|
|
220
|
+
reset: function () {
|
|
221
|
+
value.resetAnimation();
|
|
222
|
+
},
|
|
223
|
+
_startNativeLoop: function (iterations) {
|
|
224
|
+
const singleConfig = {
|
|
225
|
+
...config,
|
|
226
|
+
iterations
|
|
227
|
+
};
|
|
228
|
+
start(value, singleConfig);
|
|
229
|
+
},
|
|
230
|
+
_isUsingNativeDriver: function () {
|
|
231
|
+
return config.useNativeDriver || false;
|
|
232
|
+
}
|
|
233
|
+
};
|
|
234
|
+
};
|
|
235
|
+
const sequence = function (animations) {
|
|
236
|
+
let current = 0;
|
|
237
|
+
return {
|
|
238
|
+
start: function (callback) {
|
|
239
|
+
const onComplete = function (result) {
|
|
240
|
+
if (!result.finished) {
|
|
241
|
+
callback && callback(result);
|
|
242
|
+
return;
|
|
243
|
+
}
|
|
244
|
+
current++;
|
|
245
|
+
if (current === animations.length) {
|
|
246
|
+
callback && callback(result);
|
|
247
|
+
return;
|
|
248
|
+
}
|
|
249
|
+
animations[current].start(onComplete);
|
|
250
|
+
};
|
|
251
|
+
if (animations.length === 0) {
|
|
252
|
+
callback && callback({
|
|
253
|
+
finished: true
|
|
254
|
+
});
|
|
255
|
+
} else {
|
|
256
|
+
animations[current].start(onComplete);
|
|
257
|
+
}
|
|
258
|
+
},
|
|
259
|
+
stop: function () {
|
|
260
|
+
if (current < animations.length) {
|
|
261
|
+
animations[current].stop();
|
|
262
|
+
}
|
|
263
|
+
},
|
|
264
|
+
reset: function () {
|
|
265
|
+
animations.forEach((animation, idx) => {
|
|
266
|
+
if (idx <= current) {
|
|
267
|
+
animation.reset();
|
|
268
|
+
}
|
|
269
|
+
});
|
|
270
|
+
current = 0;
|
|
271
|
+
},
|
|
272
|
+
_startNativeLoop: function () {
|
|
273
|
+
throw new Error("Loops run using the native driver cannot contain Animated.sequence animations");
|
|
274
|
+
},
|
|
275
|
+
_isUsingNativeDriver: function () {
|
|
276
|
+
return false;
|
|
277
|
+
}
|
|
278
|
+
};
|
|
279
|
+
};
|
|
280
|
+
const parallel = function (animations, config) {
|
|
281
|
+
let doneCount = 0;
|
|
282
|
+
const hasEnded = {};
|
|
283
|
+
const stopTogether = !(config && config.stopTogether === false);
|
|
284
|
+
const result = {
|
|
285
|
+
start: function (callback) {
|
|
286
|
+
if (doneCount === animations.length) {
|
|
287
|
+
callback && callback({
|
|
288
|
+
finished: true
|
|
289
|
+
});
|
|
290
|
+
return;
|
|
291
|
+
}
|
|
292
|
+
animations.forEach((animation, idx) => {
|
|
293
|
+
const cb = function (endResult) {
|
|
294
|
+
hasEnded[idx] = true;
|
|
295
|
+
doneCount++;
|
|
252
296
|
if (doneCount === animations.length) {
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
});
|
|
297
|
+
doneCount = 0;
|
|
298
|
+
callback && callback(endResult);
|
|
256
299
|
return;
|
|
257
300
|
}
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
};
|
|
266
|
-
animation ? animation.start(cb) : cb({
|
|
267
|
-
finished: !0
|
|
268
|
-
});
|
|
269
|
-
});
|
|
270
|
-
},
|
|
271
|
-
stop: function () {
|
|
272
|
-
animations.forEach((animation, idx) => {
|
|
273
|
-
!hasEnded[idx] && animation.stop(), hasEnded[idx] = !0;
|
|
274
|
-
});
|
|
275
|
-
},
|
|
276
|
-
reset: function () {
|
|
277
|
-
animations.forEach((animation, idx) => {
|
|
278
|
-
animation.reset(), hasEnded[idx] = !1, doneCount = 0;
|
|
301
|
+
if (!endResult.finished && stopTogether) {
|
|
302
|
+
result.stop();
|
|
303
|
+
}
|
|
304
|
+
};
|
|
305
|
+
if (!animation) {
|
|
306
|
+
cb({
|
|
307
|
+
finished: true
|
|
279
308
|
});
|
|
280
|
-
}
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
309
|
+
} else {
|
|
310
|
+
animation.start(cb);
|
|
311
|
+
}
|
|
312
|
+
});
|
|
313
|
+
},
|
|
314
|
+
stop: function () {
|
|
315
|
+
animations.forEach((animation, idx) => {
|
|
316
|
+
!hasEnded[idx] && animation.stop();
|
|
317
|
+
hasEnded[idx] = true;
|
|
318
|
+
});
|
|
319
|
+
},
|
|
320
|
+
reset: function () {
|
|
321
|
+
animations.forEach((animation, idx) => {
|
|
322
|
+
animation.reset();
|
|
323
|
+
hasEnded[idx] = false;
|
|
324
|
+
doneCount = 0;
|
|
325
|
+
});
|
|
326
|
+
},
|
|
327
|
+
_startNativeLoop: function () {
|
|
328
|
+
throw new Error("Loops run using the native driver cannot contain Animated.parallel animations");
|
|
329
|
+
},
|
|
330
|
+
_isUsingNativeDriver: function () {
|
|
331
|
+
return false;
|
|
332
|
+
}
|
|
333
|
+
};
|
|
334
|
+
return result;
|
|
335
|
+
};
|
|
336
|
+
const delay = function (time) {
|
|
337
|
+
return timing(new import_AnimatedValue.AnimatedValue(0), {
|
|
338
|
+
toValue: 0,
|
|
339
|
+
delay: time,
|
|
340
|
+
duration: 0,
|
|
341
|
+
useNativeDriver: false
|
|
342
|
+
});
|
|
343
|
+
};
|
|
344
|
+
const stagger = function (time, animations) {
|
|
345
|
+
return parallel(animations.map((animation, i) => {
|
|
346
|
+
return sequence([delay(time * i), animation]);
|
|
347
|
+
}));
|
|
348
|
+
};
|
|
349
|
+
const loop = function (animation, {
|
|
350
|
+
iterations = -1,
|
|
351
|
+
resetBeforeIteration = true
|
|
352
|
+
} = {}) {
|
|
353
|
+
let isFinished = false;
|
|
354
|
+
let iterationsSoFar = 0;
|
|
355
|
+
return {
|
|
356
|
+
start: function (callback) {
|
|
357
|
+
const restart = function (result = {
|
|
358
|
+
finished: true
|
|
359
|
+
}) {
|
|
360
|
+
if (isFinished || iterationsSoFar === iterations || result.finished === false) {
|
|
361
|
+
callback && callback(result);
|
|
362
|
+
} else {
|
|
363
|
+
iterationsSoFar++;
|
|
364
|
+
resetBeforeIteration && animation.reset();
|
|
365
|
+
animation.start(restart);
|
|
286
366
|
}
|
|
287
367
|
};
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
stagger = function (time, animations) {
|
|
299
|
-
return parallel(animations.map((animation, i) => sequence([delay(time * i), animation])));
|
|
300
|
-
},
|
|
301
|
-
loop = function (animation, {
|
|
302
|
-
iterations = -1,
|
|
303
|
-
resetBeforeIteration = !0
|
|
304
|
-
} = {}) {
|
|
305
|
-
let isFinished = !1,
|
|
306
|
-
iterationsSoFar = 0;
|
|
307
|
-
return {
|
|
308
|
-
start: function (callback) {
|
|
309
|
-
const restart = function (result = {
|
|
310
|
-
finished: !0
|
|
311
|
-
}) {
|
|
312
|
-
isFinished || iterationsSoFar === iterations || result.finished === !1 ? callback && callback(result) : (iterationsSoFar++, resetBeforeIteration && animation.reset(), animation.start(restart));
|
|
313
|
-
};
|
|
314
|
-
!animation || iterations === 0 ? callback && callback({
|
|
315
|
-
finished: !0
|
|
316
|
-
}) : animation._isUsingNativeDriver() ? animation._startNativeLoop(iterations) : restart();
|
|
317
|
-
},
|
|
318
|
-
stop: function () {
|
|
319
|
-
isFinished = !0, animation.stop();
|
|
320
|
-
},
|
|
321
|
-
reset: function () {
|
|
322
|
-
iterationsSoFar = 0, isFinished = !1, animation.reset();
|
|
323
|
-
},
|
|
324
|
-
_startNativeLoop: function () {
|
|
325
|
-
throw new Error("Loops run using the native driver cannot contain Animated.loop animations");
|
|
326
|
-
},
|
|
327
|
-
_isUsingNativeDriver: function () {
|
|
328
|
-
return animation._isUsingNativeDriver();
|
|
368
|
+
if (!animation || iterations === 0) {
|
|
369
|
+
callback && callback({
|
|
370
|
+
finished: true
|
|
371
|
+
});
|
|
372
|
+
} else {
|
|
373
|
+
if (animation._isUsingNativeDriver()) {
|
|
374
|
+
animation._startNativeLoop(iterations);
|
|
375
|
+
} else {
|
|
376
|
+
restart();
|
|
377
|
+
}
|
|
329
378
|
}
|
|
330
|
-
}
|
|
379
|
+
},
|
|
380
|
+
stop: function () {
|
|
381
|
+
isFinished = true;
|
|
382
|
+
animation.stop();
|
|
383
|
+
},
|
|
384
|
+
reset: function () {
|
|
385
|
+
iterationsSoFar = 0;
|
|
386
|
+
isFinished = false;
|
|
387
|
+
animation.reset();
|
|
388
|
+
},
|
|
389
|
+
_startNativeLoop: function () {
|
|
390
|
+
throw new Error("Loops run using the native driver cannot contain Animated.loop animations");
|
|
391
|
+
},
|
|
392
|
+
_isUsingNativeDriver: function () {
|
|
393
|
+
return animation._isUsingNativeDriver();
|
|
394
|
+
}
|
|
331
395
|
};
|
|
396
|
+
};
|
|
332
397
|
function forkEvent(event2, listener) {
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
}
|
|
398
|
+
if (!event2) {
|
|
399
|
+
return listener;
|
|
400
|
+
} else if (event2 instanceof import_AnimatedEvent.AnimatedEvent) {
|
|
401
|
+
event2.__addListener(listener);
|
|
402
|
+
return event2;
|
|
403
|
+
} else {
|
|
404
|
+
return (...args) => {
|
|
405
|
+
typeof event2 === "function" && event2(...args);
|
|
406
|
+
listener(...args);
|
|
407
|
+
};
|
|
408
|
+
}
|
|
336
409
|
}
|
|
337
410
|
function unforkEvent(event2, listener) {
|
|
338
|
-
event2 && event2 instanceof import_AnimatedEvent.AnimatedEvent
|
|
411
|
+
if (event2 && event2 instanceof import_AnimatedEvent.AnimatedEvent) {
|
|
412
|
+
event2.__removeListener(listener);
|
|
413
|
+
}
|
|
339
414
|
}
|
|
340
415
|
const event = function (argMapping, config) {
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
416
|
+
const animatedEvent = new import_AnimatedEvent.AnimatedEvent(argMapping, config);
|
|
417
|
+
if (animatedEvent.__isNative) {
|
|
418
|
+
return animatedEvent;
|
|
419
|
+
} else {
|
|
420
|
+
return animatedEvent.__getHandler();
|
|
421
|
+
}
|
|
422
|
+
};
|
|
423
|
+
const AnimatedImplementationExports = {
|
|
424
|
+
/**
|
|
425
|
+
* Standard value class for driving animations. Typically initialized with
|
|
426
|
+
* `new Animated.Value(0);`
|
|
427
|
+
*
|
|
428
|
+
* See https://reactnative.dev/docs/animated#value
|
|
429
|
+
*/
|
|
430
|
+
Value: import_AnimatedValue.AnimatedValue,
|
|
431
|
+
/**
|
|
432
|
+
* 2D value class for driving 2D animations, such as pan gestures.
|
|
433
|
+
*
|
|
434
|
+
* See https://reactnative.dev/docs/animatedvaluexy
|
|
435
|
+
*/
|
|
436
|
+
ValueXY: import_AnimatedValueXY.AnimatedValueXY,
|
|
437
|
+
/**
|
|
438
|
+
* Value class for driving color animations.
|
|
439
|
+
*/
|
|
440
|
+
Color: import_AnimatedColor.AnimatedColor,
|
|
441
|
+
/**
|
|
442
|
+
* Exported to use the Interpolation type in flow.
|
|
443
|
+
*
|
|
444
|
+
* See https://reactnative.dev/docs/animated#interpolation
|
|
445
|
+
*/
|
|
446
|
+
Interpolation: import_AnimatedInterpolation.AnimatedInterpolation,
|
|
447
|
+
/**
|
|
448
|
+
* Exported for ease of type checking. All animated values derive from this
|
|
449
|
+
* class.
|
|
450
|
+
*
|
|
451
|
+
* See https://reactnative.dev/docs/animated#node
|
|
452
|
+
*/
|
|
453
|
+
Node: import_AnimatedNode.AnimatedNode,
|
|
454
|
+
/**
|
|
455
|
+
* Animates a value from an initial velocity to zero based on a decay
|
|
456
|
+
* coefficient.
|
|
457
|
+
*
|
|
458
|
+
* See https://reactnative.dev/docs/animated#decay
|
|
459
|
+
*/
|
|
460
|
+
decay,
|
|
461
|
+
/**
|
|
462
|
+
* Animates a value along a timed easing curve. The Easing module has tons of
|
|
463
|
+
* predefined curves, or you can use your own function.
|
|
464
|
+
*
|
|
465
|
+
* See https://reactnative.dev/docs/animated#timing
|
|
466
|
+
*/
|
|
467
|
+
timing,
|
|
468
|
+
/**
|
|
469
|
+
* Animates a value according to an analytical spring model based on
|
|
470
|
+
* damped harmonic oscillation.
|
|
471
|
+
*
|
|
472
|
+
* See https://reactnative.dev/docs/animated#spring
|
|
473
|
+
*/
|
|
474
|
+
spring,
|
|
475
|
+
/**
|
|
476
|
+
* Creates a new Animated value composed from two Animated values added
|
|
477
|
+
* together.
|
|
478
|
+
*
|
|
479
|
+
* See https://reactnative.dev/docs/animated#add
|
|
480
|
+
*/
|
|
481
|
+
add,
|
|
482
|
+
/**
|
|
483
|
+
* Creates a new Animated value composed by subtracting the second Animated
|
|
484
|
+
* value from the first Animated value.
|
|
485
|
+
*
|
|
486
|
+
* See https://reactnative.dev/docs/animated#subtract
|
|
487
|
+
*/
|
|
488
|
+
subtract,
|
|
489
|
+
/**
|
|
490
|
+
* Creates a new Animated value composed by dividing the first Animated value
|
|
491
|
+
* by the second Animated value.
|
|
492
|
+
*
|
|
493
|
+
* See https://reactnative.dev/docs/animated#divide
|
|
494
|
+
*/
|
|
495
|
+
divide,
|
|
496
|
+
/**
|
|
497
|
+
* Creates a new Animated value composed from two Animated values multiplied
|
|
498
|
+
* together.
|
|
499
|
+
*
|
|
500
|
+
* See https://reactnative.dev/docs/animated#multiply
|
|
501
|
+
*/
|
|
502
|
+
multiply,
|
|
503
|
+
/**
|
|
504
|
+
* Creates a new Animated value that is the (non-negative) modulo of the
|
|
505
|
+
* provided Animated value.
|
|
506
|
+
*
|
|
507
|
+
* See https://reactnative.dev/docs/animated#modulo
|
|
508
|
+
*/
|
|
509
|
+
modulo,
|
|
510
|
+
/**
|
|
511
|
+
* Create a new Animated value that is limited between 2 values. It uses the
|
|
512
|
+
* difference between the last value so even if the value is far from the
|
|
513
|
+
* bounds it will start changing when the value starts getting closer again.
|
|
514
|
+
*
|
|
515
|
+
* See https://reactnative.dev/docs/animated#diffclamp
|
|
516
|
+
*/
|
|
517
|
+
diffClamp,
|
|
518
|
+
/**
|
|
519
|
+
* Starts an animation after the given delay.
|
|
520
|
+
*
|
|
521
|
+
* See https://reactnative.dev/docs/animated#delay
|
|
522
|
+
*/
|
|
523
|
+
delay,
|
|
524
|
+
/**
|
|
525
|
+
* Starts an array of animations in order, waiting for each to complete
|
|
526
|
+
* before starting the next. If the current running animation is stopped, no
|
|
527
|
+
* following animations will be started.
|
|
528
|
+
*
|
|
529
|
+
* See https://reactnative.dev/docs/animated#sequence
|
|
530
|
+
*/
|
|
531
|
+
sequence,
|
|
532
|
+
/**
|
|
533
|
+
* Starts an array of animations all at the same time. By default, if one
|
|
534
|
+
* of the animations is stopped, they will all be stopped. You can override
|
|
535
|
+
* this with the `stopTogether` flag.
|
|
536
|
+
*
|
|
537
|
+
* See https://reactnative.dev/docs/animated#parallel
|
|
538
|
+
*/
|
|
539
|
+
parallel,
|
|
540
|
+
/**
|
|
541
|
+
* Array of animations may run in parallel (overlap), but are started in
|
|
542
|
+
* sequence with successive delays. Nice for doing trailing effects.
|
|
543
|
+
*
|
|
544
|
+
* See https://reactnative.dev/docs/animated#stagger
|
|
545
|
+
*/
|
|
546
|
+
stagger,
|
|
547
|
+
/**
|
|
548
|
+
* Loops a given animation continuously, so that each time it reaches the
|
|
549
|
+
* end, it resets and begins again from the start.
|
|
550
|
+
*
|
|
551
|
+
* See https://reactnative.dev/docs/animated#loop
|
|
552
|
+
*/
|
|
553
|
+
loop,
|
|
554
|
+
/**
|
|
555
|
+
* Takes an array of mappings and extracts values from each arg accordingly,
|
|
556
|
+
* then calls `setValue` on the mapped outputs.
|
|
557
|
+
*
|
|
558
|
+
* See https://reactnative.dev/docs/animated#event
|
|
559
|
+
*/
|
|
560
|
+
event,
|
|
561
|
+
/**
|
|
562
|
+
* Make any React component Animatable. Used to create `Animated.View`, etc.
|
|
563
|
+
*
|
|
564
|
+
* See https://reactnative.dev/docs/animated#createanimatedcomponent
|
|
565
|
+
*/
|
|
566
|
+
createAnimatedComponent: import_createAnimatedComponent.createAnimatedComponent,
|
|
567
|
+
/**
|
|
568
|
+
* Imperative API to attach an animated value to an event on a view. Prefer
|
|
569
|
+
* using `Animated.event` with `useNativeDrive: true` if possible.
|
|
570
|
+
*
|
|
571
|
+
* See https://reactnative.dev/docs/animated#attachnativeevent
|
|
572
|
+
*/
|
|
573
|
+
attachNativeEvent: import_AnimatedEvent.attachNativeEvent,
|
|
574
|
+
/**
|
|
575
|
+
* Advanced imperative API for snooping on animated events that are passed in
|
|
576
|
+
* through props. Use values directly where possible.
|
|
577
|
+
*
|
|
578
|
+
* See https://reactnative.dev/docs/animated#forkevent
|
|
579
|
+
*/
|
|
580
|
+
forkEvent,
|
|
581
|
+
unforkEvent,
|
|
582
|
+
/**
|
|
583
|
+
* Expose Event class, so it can be used as a type for type checkers.
|
|
584
|
+
*/
|
|
585
|
+
Event: import_AnimatedEvent.AnimatedEvent
|
|
586
|
+
};
|
|
508
587
|
var AnimatedImplementation_default = AnimatedImplementationExports;
|