@tamagui/react-native-web-lite 1.114.3 → 1.115.0
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 +98 -0
- package/dist/cjs/ActivityIndicator/__tests__/index-test.cjs +188 -0
- package/dist/cjs/ActivityIndicator/index.cjs +127 -0
- package/dist/cjs/Alert/index.cjs +29 -0
- package/dist/cjs/AppRegistry/AppContainer.cjs +70 -0
- package/dist/cjs/AppRegistry/__tests__/{index-test.js → index-test.cjs} +22 -16
- package/dist/cjs/AppRegistry/__tests__/{index-test.node.js → index-test.node.cjs} +46 -22
- package/dist/cjs/AppRegistry/index.cjs +99 -0
- package/dist/cjs/AppRegistry/renderApplication.cjs +80 -0
- package/dist/cjs/AppState/__tests__/{index-test.js → index-test.cjs} +17 -16
- package/dist/cjs/AppState/index.cjs +69 -0
- package/dist/cjs/Appearance/index.cjs +54 -0
- package/dist/cjs/BackHandler/index.cjs +36 -0
- package/dist/cjs/Clipboard/{index.js → index.cjs} +17 -13
- package/dist/cjs/{DeviceEmitter.js → DeviceEmitter.cjs} +23 -14
- package/dist/cjs/DeviceInfo/{index.js → index.cjs} +37 -19
- package/dist/cjs/Dimensions/__tests__/{index-test.js → index-test.cjs} +18 -15
- package/dist/cjs/Dimensions/{index.js → index.cjs} +34 -28
- package/dist/cjs/I18nManager/index.cjs +35 -0
- package/dist/cjs/Image/index.cjs +292 -0
- package/dist/cjs/Image/types.cjs +16 -0
- package/dist/cjs/ImageBackground/__tests__/index-test.cjs +68 -0
- package/dist/cjs/ImageBackground/index.cjs +77 -0
- package/dist/cjs/Keyboard/index.cjs +39 -0
- package/dist/cjs/KeyboardAvoidingView/{index.js → index.cjs} +32 -21
- package/dist/cjs/Linking/__tests__/{index-test.js → index-test.cjs} +19 -17
- package/dist/cjs/Linking/{index.js → index.cjs} +18 -15
- package/dist/cjs/LogBox/index.cjs +32 -0
- package/dist/cjs/Modal/ModalAnimation.cjs +148 -0
- package/dist/cjs/Modal/ModalContent.cjs +86 -0
- package/dist/cjs/Modal/ModalFocusTrap.cjs +108 -0
- package/dist/cjs/Modal/ModalPortal.cjs +53 -0
- package/dist/cjs/Modal/index.cjs +97 -0
- package/dist/cjs/NativeModules/index.cjs +30 -0
- package/dist/cjs/PanResponder/Alternative.cjs +198 -0
- package/dist/cjs/PanResponder/Alternative.cjs.map +6 -0
- package/dist/cjs/PanResponder/{index.js → index.cjs} +23 -14
- package/dist/cjs/PixelRatio/{index.js → index.cjs} +23 -15
- package/dist/cjs/Pressable/index.cjs +143 -0
- package/dist/cjs/RefreshControl/{index.js → index.cjs} +27 -16
- package/dist/cjs/SafeAreaView/index.cjs +62 -0
- package/dist/cjs/ScrollView/ScrollViewBase.cjs +137 -0
- package/dist/cjs/ScrollView/{index.js → index.cjs} +123 -108
- package/dist/cjs/Share/index.cjs +49 -0
- package/dist/cjs/StatusBar/{index.js → index.cjs} +17 -13
- package/dist/cjs/Text/index.cjs +170 -0
- package/dist/cjs/Text/types.cjs +16 -0
- package/dist/cjs/TextInput/__tests__/index-test.cjs +709 -0
- package/dist/cjs/TextInput/index.cjs +277 -0
- package/dist/cjs/TextInput/types.cjs +16 -0
- package/dist/cjs/TouchableOpacity.cjs +117 -0
- package/dist/cjs/{TouchableWithoutFeedback.js → TouchableWithoutFeedback.cjs} +60 -58
- package/dist/cjs/UnimplementedView.cjs +47 -0
- package/dist/cjs/Vibration/index.cjs +37 -0
- package/dist/cjs/View/{index.js → index.cjs} +49 -28
- package/dist/cjs/View/types.cjs +16 -0
- package/dist/cjs/createElement/__tests__/index-test.cjs +765 -0
- package/dist/cjs/createElement/index.cjs +54 -0
- package/dist/cjs/createReactDOMStyle.cjs +27 -0
- package/dist/cjs/findNodeHandle.cjs +33 -0
- package/dist/cjs/{index.js → index.cjs} +77 -16
- package/dist/cjs/render/{index.js → index.cjs} +20 -14
- package/dist/cjs/styleTypes.cjs +16 -0
- package/dist/cjs/types.cjs +16 -0
- package/dist/cjs/useColorScheme/{index.js → index.cjs} +27 -16
- package/dist/cjs/useLocaleContext/index.cjs +26 -0
- package/dist/cjs/useWindowDimensions/{index.js → index.cjs} +28 -16
- package/dist/cjs/vendor/react-native/Animated/Animated.cjs +52 -0
- package/dist/cjs/vendor/react-native/Animated/AnimatedEvent.cjs +125 -0
- package/dist/cjs/vendor/react-native/Animated/AnimatedImplementation.cjs +514 -0
- package/dist/cjs/vendor/react-native/Animated/AnimatedMock.cjs +149 -0
- package/dist/cjs/vendor/react-native/Animated/AnimatedPlatformConfig.cjs +1 -0
- package/dist/cjs/vendor/react-native/Animated/{Easing.js → Easing.cjs} +31 -22
- package/dist/cjs/vendor/react-native/Animated/NativeAnimatedHelper.cjs +331 -0
- package/dist/cjs/vendor/react-native/Animated/{NativeAnimatedModule.js → NativeAnimatedModule.cjs} +23 -14
- package/dist/cjs/vendor/react-native/Animated/{NativeAnimatedTurboModule.js → NativeAnimatedTurboModule.cjs} +23 -14
- package/dist/cjs/vendor/react-native/Animated/{SpringConfig.js → SpringConfig.cjs} +20 -12
- package/dist/cjs/vendor/react-native/Animated/animations/{Animation.js → Animation.cjs} +29 -24
- package/dist/cjs/vendor/react-native/Animated/animations/{DecayAnimation.js → DecayAnimation.cjs} +27 -16
- package/dist/cjs/vendor/react-native/Animated/animations/{SpringAnimation.js → SpringAnimation.cjs} +48 -34
- package/dist/cjs/vendor/react-native/Animated/animations/{TimingAnimation.js → TimingAnimation.cjs} +32 -26
- package/dist/cjs/vendor/react-native/Animated/{bezier.js → bezier.cjs} +38 -27
- package/dist/cjs/vendor/react-native/Animated/components/AnimatedImage.cjs +40 -0
- package/dist/cjs/vendor/react-native/Animated/components/AnimatedScrollView.cjs +45 -0
- package/dist/cjs/vendor/react-native/Animated/components/AnimatedText.cjs +40 -0
- package/dist/cjs/vendor/react-native/Animated/components/AnimatedView.cjs +40 -0
- package/dist/cjs/vendor/react-native/Animated/createAnimatedComponent.cjs +61 -0
- package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedAddition.js → AnimatedAddition.cjs} +26 -15
- package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedColor.js → AnimatedColor.cjs} +57 -40
- package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedDiffClamp.js → AnimatedDiffClamp.cjs} +27 -16
- package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedDivision.js → AnimatedDivision.cjs} +29 -16
- package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedInterpolation.js → AnimatedInterpolation.cjs} +62 -72
- package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedModulo.js → AnimatedModulo.cjs} +25 -15
- package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedMultiplication.js → AnimatedMultiplication.cjs} +26 -15
- package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedNode.js → AnimatedNode.cjs} +39 -39
- package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedProps.js → AnimatedProps.cjs} +34 -24
- package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedStyle.js → AnimatedStyle.cjs} +35 -21
- package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedSubtraction.js → AnimatedSubtraction.cjs} +26 -15
- package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedTracking.js → AnimatedTracking.cjs} +34 -32
- package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedTransform.js → AnimatedTransform.cjs} +32 -21
- package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedValue.js → AnimatedValue.cjs} +43 -50
- package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedValueXY.js → AnimatedValueXY.cjs} +38 -31
- package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedWithChildren.js → AnimatedWithChildren.cjs} +31 -21
- package/dist/cjs/vendor/react-native/Animated/{useAnimatedProps.js → useAnimatedProps.cjs} +44 -31
- package/dist/cjs/vendor/react-native/{FeatureFlags.js → FeatureFlags.cjs} +16 -11
- package/dist/cjs/vendor/react-native/NativeEventEmitter/{RCTDeviceEventEmitter.js → RCTDeviceEventEmitter.cjs} +23 -14
- package/dist/cjs/vendor/react-native/NativeEventEmitter/{index.js → index.cjs} +29 -25
- package/dist/cjs/vendor/react-native/PanResponder/index.cjs +272 -0
- package/dist/cjs/vendor/react-native/TouchHistoryMath/index.cjs +105 -0
- package/dist/cjs/vendor/react-native/TurboModule/RCTExport.cjs +1 -0
- package/dist/cjs/vendor/react-native/TurboModule/TurboModuleRegistry.cjs +34 -0
- package/dist/cjs/vendor/react-native/Types/CoreEventTypes.cjs +18 -0
- package/dist/cjs/vendor/react-native/Utilities/setAndForwardRef.cjs +36 -0
- package/dist/cjs/vendor/react-native/emitter/{EventEmitter.js → EventEmitter.cjs} +24 -14
- package/dist/cjs/vendor/react-native/emitter/EventSubscription.cjs +1 -0
- package/dist/cjs/vendor/react-native/emitter/{_EmitterSubscription.js → _EmitterSubscription.cjs} +24 -15
- package/dist/cjs/vendor/react-native/emitter/{_EventEmitter.js → _EventEmitter.cjs} +39 -39
- package/dist/cjs/vendor/react-native/emitter/{_EventSubscription.js → _EventSubscription.cjs} +17 -11
- package/dist/cjs/vendor/react-native/emitter/{_EventSubscriptionVendor.js → _EventSubscriptionVendor.cjs} +21 -16
- package/dist/cjs/vendor/react-native/infoLog/index.cjs +31 -0
- package/dist/cjs/vendor/react-native/useRefEffect.cjs +32 -0
- package/dist/cjs/without-animated.cjs +155 -0
- package/package.json +9 -8
- package/dist/cjs/AccessibilityInfo/index.js +0 -96
- package/dist/cjs/ActivityIndicator/__tests__/index-test.js +0 -116
- package/dist/cjs/ActivityIndicator/index.js +0 -108
- package/dist/cjs/Alert/index.js +0 -25
- package/dist/cjs/AppRegistry/AppContainer.js +0 -41
- package/dist/cjs/AppRegistry/index.js +0 -98
- package/dist/cjs/AppRegistry/renderApplication.js +0 -51
- package/dist/cjs/AppState/index.js +0 -71
- package/dist/cjs/Appearance/index.js +0 -41
- package/dist/cjs/BackHandler/index.js +0 -32
- package/dist/cjs/I18nManager/index.js +0 -30
- package/dist/cjs/Image/index.js +0 -253
- package/dist/cjs/Image/types.js +0 -14
- package/dist/cjs/ImageBackground/__tests__/index-test.js +0 -48
- package/dist/cjs/ImageBackground/index.js +0 -62
- package/dist/cjs/Keyboard/index.js +0 -35
- package/dist/cjs/LogBox/index.js +0 -31
- package/dist/cjs/Modal/ModalAnimation.js +0 -137
- package/dist/cjs/Modal/ModalContent.js +0 -75
- package/dist/cjs/Modal/ModalFocusTrap.js +0 -105
- package/dist/cjs/Modal/ModalPortal.js +0 -43
- package/dist/cjs/Modal/index.js +0 -92
- package/dist/cjs/NativeModules/index.js +0 -25
- package/dist/cjs/Pressable/index.js +0 -140
- package/dist/cjs/SafeAreaView/index.js +0 -43
- package/dist/cjs/ScrollView/ScrollViewBase.js +0 -124
- package/dist/cjs/Share/index.js +0 -56
- package/dist/cjs/Text/index.js +0 -152
- package/dist/cjs/Text/types.js +0 -14
- package/dist/cjs/TextInput/__tests__/index-test.js +0 -422
- package/dist/cjs/TextInput/index.js +0 -260
- package/dist/cjs/TextInput/types.js +0 -14
- package/dist/cjs/TouchableOpacity.js +0 -123
- package/dist/cjs/UnimplementedView.js +0 -36
- package/dist/cjs/Vibration/index.js +0 -31
- package/dist/cjs/View/types.js +0 -14
- package/dist/cjs/createElement/__tests__/index-test.js +0 -536
- package/dist/cjs/createElement/index.js +0 -37
- package/dist/cjs/createReactDOMStyle.js +0 -21
- package/dist/cjs/findNodeHandle.js +0 -29
- package/dist/cjs/styleTypes.js +0 -14
- package/dist/cjs/types.js +0 -14
- package/dist/cjs/useLocaleContext/index.js +0 -21
- package/dist/cjs/vendor/react-native/Animated/Animated.js +0 -35
- package/dist/cjs/vendor/react-native/Animated/AnimatedEvent.js +0 -143
- package/dist/cjs/vendor/react-native/Animated/AnimatedImplementation.js +0 -458
- package/dist/cjs/vendor/react-native/Animated/AnimatedMock.js +0 -126
- package/dist/cjs/vendor/react-native/Animated/AnimatedPlatformConfig.js +0 -2
- package/dist/cjs/vendor/react-native/Animated/NativeAnimatedHelper.js +0 -335
- package/dist/cjs/vendor/react-native/Animated/components/AnimatedImage.js +0 -29
- package/dist/cjs/vendor/react-native/Animated/components/AnimatedScrollView.js +0 -38
- package/dist/cjs/vendor/react-native/Animated/components/AnimatedText.js +0 -29
- package/dist/cjs/vendor/react-native/Animated/components/AnimatedView.js +0 -29
- package/dist/cjs/vendor/react-native/Animated/createAnimatedComponent.js +0 -42
- package/dist/cjs/vendor/react-native/PanResponder/index.js +0 -272
- package/dist/cjs/vendor/react-native/TouchHistoryMath/index.js +0 -118
- package/dist/cjs/vendor/react-native/TurboModule/RCTExport.js +0 -2
- package/dist/cjs/vendor/react-native/TurboModule/TurboModuleRegistry.js +0 -28
- package/dist/cjs/vendor/react-native/Types/CoreEventTypes.js +0 -15
- package/dist/cjs/vendor/react-native/Utilities/setAndForwardRef.js +0 -29
- package/dist/cjs/vendor/react-native/emitter/EventSubscription.js +0 -2
- package/dist/cjs/vendor/react-native/infoLog/index.js +0 -25
- package/dist/cjs/vendor/react-native/useRefEffect.js +0 -30
- package/dist/cjs/without-animated.js +0 -95
- /package/dist/cjs/AccessibilityInfo/{index.js.map → index.cjs.map} +0 -0
- /package/dist/cjs/ActivityIndicator/__tests__/{index-test.js.map → index-test.cjs.map} +0 -0
- /package/dist/cjs/ActivityIndicator/{index.js.map → index.cjs.map} +0 -0
- /package/dist/cjs/Alert/{index.js.map → index.cjs.map} +0 -0
- /package/dist/cjs/AppRegistry/{AppContainer.js.map → AppContainer.cjs.map} +0 -0
- /package/dist/cjs/AppRegistry/__tests__/{index-test.js.map → index-test.cjs.map} +0 -0
- /package/dist/cjs/AppRegistry/__tests__/{index-test.node.js.map → index-test.node.cjs.map} +0 -0
- /package/dist/cjs/AppRegistry/{index.js.map → index.cjs.map} +0 -0
- /package/dist/cjs/AppRegistry/{renderApplication.js.map → renderApplication.cjs.map} +0 -0
- /package/dist/cjs/AppState/__tests__/{index-test.js.map → index-test.cjs.map} +0 -0
- /package/dist/cjs/AppState/{index.js.map → index.cjs.map} +0 -0
- /package/dist/cjs/Appearance/{index.js.map → index.cjs.map} +0 -0
- /package/dist/cjs/BackHandler/{index.js.map → index.cjs.map} +0 -0
- /package/dist/cjs/Clipboard/{index.js.map → index.cjs.map} +0 -0
- /package/dist/cjs/{DeviceEmitter.js.map → DeviceEmitter.cjs.map} +0 -0
- /package/dist/cjs/DeviceInfo/{index.js.map → index.cjs.map} +0 -0
- /package/dist/cjs/Dimensions/__tests__/{index-test.js.map → index-test.cjs.map} +0 -0
- /package/dist/cjs/Dimensions/{index.js.map → index.cjs.map} +0 -0
- /package/dist/cjs/I18nManager/{index.js.map → index.cjs.map} +0 -0
- /package/dist/cjs/Image/{index.js.map → index.cjs.map} +0 -0
- /package/dist/cjs/Image/{types.js.map → types.cjs.map} +0 -0
- /package/dist/cjs/ImageBackground/__tests__/{index-test.js.map → index-test.cjs.map} +0 -0
- /package/dist/cjs/ImageBackground/{index.js.map → index.cjs.map} +0 -0
- /package/dist/cjs/Keyboard/{index.js.map → index.cjs.map} +0 -0
- /package/dist/cjs/KeyboardAvoidingView/{index.js.map → index.cjs.map} +0 -0
- /package/dist/cjs/Linking/__tests__/{index-test.js.map → index-test.cjs.map} +0 -0
- /package/dist/cjs/Linking/{index.js.map → index.cjs.map} +0 -0
- /package/dist/cjs/LogBox/{index.js.map → index.cjs.map} +0 -0
- /package/dist/cjs/Modal/{ModalAnimation.js.map → ModalAnimation.cjs.map} +0 -0
- /package/dist/cjs/Modal/{ModalContent.js.map → ModalContent.cjs.map} +0 -0
- /package/dist/cjs/Modal/{ModalFocusTrap.js.map → ModalFocusTrap.cjs.map} +0 -0
- /package/dist/cjs/Modal/{ModalPortal.js.map → ModalPortal.cjs.map} +0 -0
- /package/dist/cjs/Modal/{index.js.map → index.cjs.map} +0 -0
- /package/dist/cjs/NativeModules/{index.js.map → index.cjs.map} +0 -0
- /package/dist/cjs/PanResponder/{index.js.map → index.cjs.map} +0 -0
- /package/dist/cjs/PixelRatio/{index.js.map → index.cjs.map} +0 -0
- /package/dist/cjs/Pressable/{index.js.map → index.cjs.map} +0 -0
- /package/dist/cjs/RefreshControl/{index.js.map → index.cjs.map} +0 -0
- /package/dist/cjs/SafeAreaView/{index.js.map → index.cjs.map} +0 -0
- /package/dist/cjs/ScrollView/{ScrollViewBase.js.map → ScrollViewBase.cjs.map} +0 -0
- /package/dist/cjs/ScrollView/{index.js.map → index.cjs.map} +0 -0
- /package/dist/cjs/Share/{index.js.map → index.cjs.map} +0 -0
- /package/dist/cjs/StatusBar/{index.js.map → index.cjs.map} +0 -0
- /package/dist/cjs/Text/{index.js.map → index.cjs.map} +0 -0
- /package/dist/cjs/Text/{types.js.map → types.cjs.map} +0 -0
- /package/dist/cjs/TextInput/__tests__/{index-test.js.map → index-test.cjs.map} +0 -0
- /package/dist/cjs/TextInput/{index.js.map → index.cjs.map} +0 -0
- /package/dist/cjs/TextInput/{types.js.map → types.cjs.map} +0 -0
- /package/dist/cjs/{TouchableOpacity.js.map → TouchableOpacity.cjs.map} +0 -0
- /package/dist/cjs/{TouchableWithoutFeedback.js.map → TouchableWithoutFeedback.cjs.map} +0 -0
- /package/dist/cjs/{UnimplementedView.js.map → UnimplementedView.cjs.map} +0 -0
- /package/dist/cjs/Vibration/{index.js.map → index.cjs.map} +0 -0
- /package/dist/cjs/View/{index.js.map → index.cjs.map} +0 -0
- /package/dist/cjs/View/{types.js.map → types.cjs.map} +0 -0
- /package/dist/cjs/createElement/__tests__/{index-test.js.map → index-test.cjs.map} +0 -0
- /package/dist/cjs/createElement/{index.js.map → index.cjs.map} +0 -0
- /package/dist/cjs/{createReactDOMStyle.js.map → createReactDOMStyle.cjs.map} +0 -0
- /package/dist/cjs/{findNodeHandle.js.map → findNodeHandle.cjs.map} +0 -0
- /package/dist/cjs/{index.js.map → index.cjs.map} +0 -0
- /package/dist/cjs/render/{index.js.map → index.cjs.map} +0 -0
- /package/dist/cjs/{styleTypes.js.map → styleTypes.cjs.map} +0 -0
- /package/dist/cjs/{types.js.map → types.cjs.map} +0 -0
- /package/dist/cjs/useColorScheme/{index.js.map → index.cjs.map} +0 -0
- /package/dist/cjs/useLocaleContext/{index.js.map → index.cjs.map} +0 -0
- /package/dist/cjs/useWindowDimensions/{index.js.map → index.cjs.map} +0 -0
- /package/dist/cjs/vendor/react-native/Animated/{Animated.js.map → Animated.cjs.map} +0 -0
- /package/dist/cjs/vendor/react-native/Animated/{AnimatedEvent.js.map → AnimatedEvent.cjs.map} +0 -0
- /package/dist/cjs/vendor/react-native/Animated/{AnimatedImplementation.js.map → AnimatedImplementation.cjs.map} +0 -0
- /package/dist/cjs/vendor/react-native/Animated/{AnimatedMock.js.map → AnimatedMock.cjs.map} +0 -0
- /package/dist/cjs/vendor/react-native/Animated/{AnimatedPlatformConfig.js.map → AnimatedPlatformConfig.cjs.map} +0 -0
- /package/dist/cjs/vendor/react-native/Animated/{Easing.js.map → Easing.cjs.map} +0 -0
- /package/dist/cjs/vendor/react-native/Animated/{NativeAnimatedHelper.js.map → NativeAnimatedHelper.cjs.map} +0 -0
- /package/dist/cjs/vendor/react-native/Animated/{NativeAnimatedModule.js.map → NativeAnimatedModule.cjs.map} +0 -0
- /package/dist/cjs/vendor/react-native/Animated/{NativeAnimatedTurboModule.js.map → NativeAnimatedTurboModule.cjs.map} +0 -0
- /package/dist/cjs/vendor/react-native/Animated/{SpringConfig.js.map → SpringConfig.cjs.map} +0 -0
- /package/dist/cjs/vendor/react-native/Animated/animations/{Animation.js.map → Animation.cjs.map} +0 -0
- /package/dist/cjs/vendor/react-native/Animated/animations/{DecayAnimation.js.map → DecayAnimation.cjs.map} +0 -0
- /package/dist/cjs/vendor/react-native/Animated/animations/{SpringAnimation.js.map → SpringAnimation.cjs.map} +0 -0
- /package/dist/cjs/vendor/react-native/Animated/animations/{TimingAnimation.js.map → TimingAnimation.cjs.map} +0 -0
- /package/dist/cjs/vendor/react-native/Animated/{bezier.js.map → bezier.cjs.map} +0 -0
- /package/dist/cjs/vendor/react-native/Animated/components/{AnimatedImage.js.map → AnimatedImage.cjs.map} +0 -0
- /package/dist/cjs/vendor/react-native/Animated/components/{AnimatedScrollView.js.map → AnimatedScrollView.cjs.map} +0 -0
- /package/dist/cjs/vendor/react-native/Animated/components/{AnimatedText.js.map → AnimatedText.cjs.map} +0 -0
- /package/dist/cjs/vendor/react-native/Animated/components/{AnimatedView.js.map → AnimatedView.cjs.map} +0 -0
- /package/dist/cjs/vendor/react-native/Animated/{createAnimatedComponent.js.map → createAnimatedComponent.cjs.map} +0 -0
- /package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedAddition.js.map → AnimatedAddition.cjs.map} +0 -0
- /package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedColor.js.map → AnimatedColor.cjs.map} +0 -0
- /package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedDiffClamp.js.map → AnimatedDiffClamp.cjs.map} +0 -0
- /package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedDivision.js.map → AnimatedDivision.cjs.map} +0 -0
- /package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedInterpolation.js.map → AnimatedInterpolation.cjs.map} +0 -0
- /package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedModulo.js.map → AnimatedModulo.cjs.map} +0 -0
- /package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedMultiplication.js.map → AnimatedMultiplication.cjs.map} +0 -0
- /package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedNode.js.map → AnimatedNode.cjs.map} +0 -0
- /package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedProps.js.map → AnimatedProps.cjs.map} +0 -0
- /package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedStyle.js.map → AnimatedStyle.cjs.map} +0 -0
- /package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedSubtraction.js.map → AnimatedSubtraction.cjs.map} +0 -0
- /package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedTracking.js.map → AnimatedTracking.cjs.map} +0 -0
- /package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedTransform.js.map → AnimatedTransform.cjs.map} +0 -0
- /package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedValue.js.map → AnimatedValue.cjs.map} +0 -0
- /package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedValueXY.js.map → AnimatedValueXY.cjs.map} +0 -0
- /package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedWithChildren.js.map → AnimatedWithChildren.cjs.map} +0 -0
- /package/dist/cjs/vendor/react-native/Animated/{useAnimatedProps.js.map → useAnimatedProps.cjs.map} +0 -0
- /package/dist/cjs/vendor/react-native/{FeatureFlags.js.map → FeatureFlags.cjs.map} +0 -0
- /package/dist/cjs/vendor/react-native/NativeEventEmitter/{RCTDeviceEventEmitter.js.map → RCTDeviceEventEmitter.cjs.map} +0 -0
- /package/dist/cjs/vendor/react-native/NativeEventEmitter/{index.js.map → index.cjs.map} +0 -0
- /package/dist/cjs/vendor/react-native/PanResponder/{index.js.map → index.cjs.map} +0 -0
- /package/dist/cjs/vendor/react-native/TouchHistoryMath/{index.js.map → index.cjs.map} +0 -0
- /package/dist/cjs/vendor/react-native/TurboModule/{RCTExport.js.map → RCTExport.cjs.map} +0 -0
- /package/dist/cjs/vendor/react-native/TurboModule/{TurboModuleRegistry.js.map → TurboModuleRegistry.cjs.map} +0 -0
- /package/dist/cjs/vendor/react-native/Types/{CoreEventTypes.js.map → CoreEventTypes.cjs.map} +0 -0
- /package/dist/cjs/vendor/react-native/Utilities/{setAndForwardRef.js.map → setAndForwardRef.cjs.map} +0 -0
- /package/dist/cjs/vendor/react-native/emitter/{EventEmitter.js.map → EventEmitter.cjs.map} +0 -0
- /package/dist/cjs/vendor/react-native/emitter/{EventSubscription.js.map → EventSubscription.cjs.map} +0 -0
- /package/dist/cjs/vendor/react-native/emitter/{_EmitterSubscription.js.map → _EmitterSubscription.cjs.map} +0 -0
- /package/dist/cjs/vendor/react-native/emitter/{_EventEmitter.js.map → _EventEmitter.cjs.map} +0 -0
- /package/dist/cjs/vendor/react-native/emitter/{_EventSubscription.js.map → _EventSubscription.cjs.map} +0 -0
- /package/dist/cjs/vendor/react-native/emitter/{_EventSubscriptionVendor.js.map → _EventSubscriptionVendor.cjs.map} +0 -0
- /package/dist/cjs/vendor/react-native/infoLog/{index.js.map → index.cjs.map} +0 -0
- /package/dist/cjs/vendor/react-native/{useRefEffect.js.map → useRefEffect.cjs.map} +0 -0
- /package/dist/cjs/{without-animated.js.map → without-animated.cjs.map} +0 -0
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var __create = Object.create;
|
|
4
|
+
var __defProp = Object.defineProperty;
|
|
5
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
6
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
|
+
var __getProtoOf = Object.getPrototypeOf,
|
|
8
|
+
__hasOwnProp = Object.prototype.hasOwnProperty;
|
|
9
|
+
var __export = (target, all) => {
|
|
10
|
+
for (var name in all) __defProp(target, name, {
|
|
11
|
+
get: all[name],
|
|
12
|
+
enumerable: !0
|
|
13
|
+
});
|
|
14
|
+
},
|
|
15
|
+
__copyProps = (to, from, except, desc) => {
|
|
16
|
+
if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
|
|
17
|
+
get: () => from[key],
|
|
18
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
19
|
+
});
|
|
20
|
+
return to;
|
|
21
|
+
};
|
|
22
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
23
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
24
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
25
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
26
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
27
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
28
|
+
value: mod,
|
|
29
|
+
enumerable: !0
|
|
30
|
+
}) : target, mod)),
|
|
31
|
+
__toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
32
|
+
value: !0
|
|
33
|
+
}), mod);
|
|
34
|
+
var AnimatedEvent_exports = {};
|
|
35
|
+
__export(AnimatedEvent_exports, {
|
|
36
|
+
AnimatedEvent: () => AnimatedEvent,
|
|
37
|
+
attachNativeEvent: () => attachNativeEvent
|
|
38
|
+
});
|
|
39
|
+
module.exports = __toCommonJS(AnimatedEvent_exports);
|
|
40
|
+
var import_react_native_web_internals = require("@tamagui/react-native-web-internals"),
|
|
41
|
+
import_NativeAnimatedHelper = __toESM(require("./NativeAnimatedHelper.cjs")),
|
|
42
|
+
import_NativeAnimatedHelper2 = require("./NativeAnimatedHelper.cjs"),
|
|
43
|
+
import_AnimatedValue = __toESM(require("./nodes/AnimatedValue.cjs")),
|
|
44
|
+
__DEV__ = process.env.NODE_ENV !== "production";
|
|
45
|
+
function attachNativeEvent(viewRef, eventName, argMapping) {
|
|
46
|
+
var eventMappings = [],
|
|
47
|
+
traverse = (value, path) => {
|
|
48
|
+
if (value instanceof import_AnimatedValue.default) value.__makeNative(), eventMappings.push({
|
|
49
|
+
nativeEventPath: path,
|
|
50
|
+
animatedValueTag: value.__getNativeTag()
|
|
51
|
+
});else if (typeof value == "object") for (var _key in value) traverse(value[_key], path.concat(_key));
|
|
52
|
+
};
|
|
53
|
+
return (0, import_react_native_web_internals.invariant)(argMapping[0] && argMapping[0].nativeEvent, "Native driven events only support animated values contained inside `nativeEvent`."), traverse(argMapping[0].nativeEvent, []), viewRef != null && eventMappings.forEach(mapping => {
|
|
54
|
+
import_NativeAnimatedHelper.default.API.addAnimatedEventToView(viewRef, eventName, mapping);
|
|
55
|
+
}), {
|
|
56
|
+
detach() {
|
|
57
|
+
viewRef != null && eventMappings.forEach(mapping => {
|
|
58
|
+
import_NativeAnimatedHelper.default.API.removeAnimatedEventFromView(viewRef, eventName,
|
|
59
|
+
// $FlowFixMe[incompatible-call]
|
|
60
|
+
mapping.animatedValueTag);
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
function validateMapping(argMapping, args) {
|
|
66
|
+
var validate = (recMapping, recEvt, key) => {
|
|
67
|
+
if (recMapping instanceof import_AnimatedValue.default) {
|
|
68
|
+
(0, import_react_native_web_internals.invariant)(typeof recEvt == "number", "Bad mapping of event key " + key + ", should be number but got " + typeof recEvt);
|
|
69
|
+
return;
|
|
70
|
+
}
|
|
71
|
+
if (typeof recEvt == "number") {
|
|
72
|
+
(0, import_react_native_web_internals.invariant)(recMapping instanceof import_AnimatedValue.default, "Bad mapping of type " + typeof recMapping + " for key " + key + ", event value must map to AnimatedValue");
|
|
73
|
+
return;
|
|
74
|
+
}
|
|
75
|
+
(0, import_react_native_web_internals.invariant)(typeof recMapping == "object", "Bad mapping of type " + typeof recMapping + " for key " + key), (0, import_react_native_web_internals.invariant)(typeof recEvt == "object", "Bad event of type " + typeof recEvt + " for key " + key);
|
|
76
|
+
for (var mappingKey in recMapping) validate(recMapping[mappingKey], recEvt[mappingKey], mappingKey);
|
|
77
|
+
};
|
|
78
|
+
(0, import_react_native_web_internals.invariant)(args.length >= argMapping.length, "Event has less arguments than mapping"), argMapping.forEach((mapping, idx) => {
|
|
79
|
+
validate(mapping, args[idx], "arg" + idx);
|
|
80
|
+
});
|
|
81
|
+
}
|
|
82
|
+
class AnimatedEvent {
|
|
83
|
+
constructor(argMapping, config) {
|
|
84
|
+
this._listeners = [], this._argMapping = argMapping, config == null && (console.warn("Animated.event now requires a second argument for options"), config = {
|
|
85
|
+
useNativeDriver: !1
|
|
86
|
+
}), config.listener && this.__addListener(config.listener), this._callListeners = this._callListeners.bind(this), this._attachedEvent = null, this.__isNative = (0, import_NativeAnimatedHelper2.shouldUseNativeDriver)(config);
|
|
87
|
+
}
|
|
88
|
+
__addListener(callback) {
|
|
89
|
+
this._listeners.push(callback);
|
|
90
|
+
}
|
|
91
|
+
__removeListener(callback) {
|
|
92
|
+
this._listeners = this._listeners.filter(listener => listener !== callback);
|
|
93
|
+
}
|
|
94
|
+
__attach(viewRef, eventName) {
|
|
95
|
+
(0, import_react_native_web_internals.invariant)(this.__isNative, "Only native driven events need to be attached."), this._attachedEvent = attachNativeEvent(viewRef, eventName, this._argMapping);
|
|
96
|
+
}
|
|
97
|
+
__detach(viewTag, eventName) {
|
|
98
|
+
(0, import_react_native_web_internals.invariant)(this.__isNative, "Only native driven events need to be detached."), this._attachedEvent && this._attachedEvent.detach();
|
|
99
|
+
}
|
|
100
|
+
__getHandler() {
|
|
101
|
+
var _this = this;
|
|
102
|
+
if (this.__isNative) if (__DEV__) {
|
|
103
|
+
var _validatedMapping = !1;
|
|
104
|
+
return function () {
|
|
105
|
+
for (var _len = arguments.length, args = new Array(_len), _key2 = 0; _key2 < _len; _key2++) args[_key2] = arguments[_key2];
|
|
106
|
+
_validatedMapping || (validateMapping(_this._argMapping, args), _validatedMapping = !0), _this._callListeners(...args);
|
|
107
|
+
};
|
|
108
|
+
} else return this._callListeners;
|
|
109
|
+
var validatedMapping = !1;
|
|
110
|
+
return function () {
|
|
111
|
+
for (var _len2 = arguments.length, args = new Array(_len2), _key3 = 0; _key3 < _len2; _key3++) args[_key3] = arguments[_key3];
|
|
112
|
+
__DEV__ && !validatedMapping && (validateMapping(_this._argMapping, args), validatedMapping = !0);
|
|
113
|
+
var traverse = (recMapping, recEvt, key) => {
|
|
114
|
+
if (recMapping instanceof import_AnimatedValue.default) typeof recEvt == "number" && recMapping.setValue(recEvt);else if (typeof recMapping == "object") for (var mappingKey in recMapping) traverse(recMapping[mappingKey], recEvt[mappingKey], mappingKey);
|
|
115
|
+
};
|
|
116
|
+
_this._argMapping.forEach((mapping, idx) => {
|
|
117
|
+
traverse(mapping, args[idx], "arg" + idx);
|
|
118
|
+
}), _this._callListeners(...args);
|
|
119
|
+
};
|
|
120
|
+
}
|
|
121
|
+
_callListeners() {
|
|
122
|
+
for (var _len3 = arguments.length, args = new Array(_len3), _key4 = 0; _key4 < _len3; _key4++) args[_key4] = arguments[_key4];
|
|
123
|
+
this._listeners.forEach(listener => listener(...args));
|
|
124
|
+
}
|
|
125
|
+
}
|
|
@@ -0,0 +1,514 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var __create = Object.create;
|
|
4
|
+
var __defProp = Object.defineProperty;
|
|
5
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
6
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
|
+
var __getProtoOf = Object.getPrototypeOf,
|
|
8
|
+
__hasOwnProp = Object.prototype.hasOwnProperty;
|
|
9
|
+
var __export = (target, all) => {
|
|
10
|
+
for (var name in all) __defProp(target, name, {
|
|
11
|
+
get: all[name],
|
|
12
|
+
enumerable: !0
|
|
13
|
+
});
|
|
14
|
+
},
|
|
15
|
+
__copyProps = (to, from, except, desc) => {
|
|
16
|
+
if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
|
|
17
|
+
get: () => from[key],
|
|
18
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
19
|
+
});
|
|
20
|
+
return to;
|
|
21
|
+
};
|
|
22
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
23
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
24
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
25
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
26
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
27
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
28
|
+
value: mod,
|
|
29
|
+
enumerable: !0
|
|
30
|
+
}) : target, mod)),
|
|
31
|
+
__toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
32
|
+
value: !0
|
|
33
|
+
}), mod);
|
|
34
|
+
var AnimatedImplementation_exports = {};
|
|
35
|
+
__export(AnimatedImplementation_exports, {
|
|
36
|
+
default: () => AnimatedImplementation_default
|
|
37
|
+
});
|
|
38
|
+
module.exports = __toCommonJS(AnimatedImplementation_exports);
|
|
39
|
+
var import_AnimatedEvent = require("./AnimatedEvent.cjs"),
|
|
40
|
+
import_DecayAnimation = __toESM(require("./animations/DecayAnimation.cjs")),
|
|
41
|
+
import_SpringAnimation = __toESM(require("./animations/SpringAnimation.cjs")),
|
|
42
|
+
import_TimingAnimation = __toESM(require("./animations/TimingAnimation.cjs")),
|
|
43
|
+
import_createAnimatedComponent = __toESM(require("./createAnimatedComponent.cjs")),
|
|
44
|
+
import_AnimatedAddition = __toESM(require("./nodes/AnimatedAddition.cjs")),
|
|
45
|
+
import_AnimatedColor = __toESM(require("./nodes/AnimatedColor.cjs")),
|
|
46
|
+
import_AnimatedDiffClamp = __toESM(require("./nodes/AnimatedDiffClamp.cjs")),
|
|
47
|
+
import_AnimatedDivision = __toESM(require("./nodes/AnimatedDivision.cjs")),
|
|
48
|
+
import_AnimatedInterpolation = __toESM(require("./nodes/AnimatedInterpolation.cjs")),
|
|
49
|
+
import_AnimatedModulo = __toESM(require("./nodes/AnimatedModulo.cjs")),
|
|
50
|
+
import_AnimatedMultiplication = __toESM(require("./nodes/AnimatedMultiplication.cjs")),
|
|
51
|
+
import_AnimatedNode = __toESM(require("./nodes/AnimatedNode.cjs")),
|
|
52
|
+
import_AnimatedSubtraction = __toESM(require("./nodes/AnimatedSubtraction.cjs")),
|
|
53
|
+
import_AnimatedTracking = __toESM(require("./nodes/AnimatedTracking.cjs")),
|
|
54
|
+
import_AnimatedValue = __toESM(require("./nodes/AnimatedValue.cjs")),
|
|
55
|
+
import_AnimatedValueXY = __toESM(require("./nodes/AnimatedValueXY.cjs")),
|
|
56
|
+
add = function (a, b) {
|
|
57
|
+
return new import_AnimatedAddition.default(a, b);
|
|
58
|
+
},
|
|
59
|
+
subtract = function (a, b) {
|
|
60
|
+
return new import_AnimatedSubtraction.default(a, b);
|
|
61
|
+
},
|
|
62
|
+
divide = function (a, b) {
|
|
63
|
+
return new import_AnimatedDivision.default(a, b);
|
|
64
|
+
},
|
|
65
|
+
multiply = function (a, b) {
|
|
66
|
+
return new import_AnimatedMultiplication.default(a, b);
|
|
67
|
+
},
|
|
68
|
+
modulo = function (a, modulus) {
|
|
69
|
+
return new import_AnimatedModulo.default(a, modulus);
|
|
70
|
+
},
|
|
71
|
+
diffClamp = function (a, min, max) {
|
|
72
|
+
return new import_AnimatedDiffClamp.default(a, min, max);
|
|
73
|
+
},
|
|
74
|
+
_combineCallbacks = function (callback, config) {
|
|
75
|
+
return callback && config.onComplete ? function () {
|
|
76
|
+
config.onComplete && config.onComplete(...arguments), callback && callback(...arguments);
|
|
77
|
+
} : callback || config.onComplete;
|
|
78
|
+
},
|
|
79
|
+
maybeVectorAnim = function (value, config, anim) {
|
|
80
|
+
if (value instanceof import_AnimatedValueXY.default) {
|
|
81
|
+
var configX = {
|
|
82
|
+
...config
|
|
83
|
+
},
|
|
84
|
+
configY = {
|
|
85
|
+
...config
|
|
86
|
+
};
|
|
87
|
+
for (var key in config) {
|
|
88
|
+
var _config$key = config[key],
|
|
89
|
+
x = _config$key.x,
|
|
90
|
+
y = _config$key.y;
|
|
91
|
+
x !== void 0 && y !== void 0 && (configX[key] = x, configY[key] = y);
|
|
92
|
+
}
|
|
93
|
+
var aX = anim(value.x, configX),
|
|
94
|
+
aY = anim(value.y, configY);
|
|
95
|
+
return parallel([aX, aY], {
|
|
96
|
+
stopTogether: !1
|
|
97
|
+
});
|
|
98
|
+
} else if (value instanceof import_AnimatedColor.default) {
|
|
99
|
+
var configR = {
|
|
100
|
+
...config
|
|
101
|
+
},
|
|
102
|
+
configG = {
|
|
103
|
+
...config
|
|
104
|
+
},
|
|
105
|
+
configB = {
|
|
106
|
+
...config
|
|
107
|
+
},
|
|
108
|
+
configA = {
|
|
109
|
+
...config
|
|
110
|
+
};
|
|
111
|
+
for (var _key in config) {
|
|
112
|
+
var _config$_key = config[_key],
|
|
113
|
+
r = _config$_key.r,
|
|
114
|
+
g = _config$_key.g,
|
|
115
|
+
b = _config$_key.b,
|
|
116
|
+
a = _config$_key.a;
|
|
117
|
+
r !== void 0 && g !== void 0 && b !== void 0 && a !== void 0 && (configR[_key] = r, configG[_key] = g, configB[_key] = b, configA[_key] = a);
|
|
118
|
+
}
|
|
119
|
+
var aR = anim(value.r, configR),
|
|
120
|
+
aG = anim(value.g, configG),
|
|
121
|
+
aB = anim(value.b, configB),
|
|
122
|
+
aA = anim(value.a, configA);
|
|
123
|
+
return parallel([aR, aG, aB, aA], {
|
|
124
|
+
stopTogether: !1
|
|
125
|
+
});
|
|
126
|
+
}
|
|
127
|
+
return null;
|
|
128
|
+
},
|
|
129
|
+
spring = function spring2(value, config) {
|
|
130
|
+
var _start = function (animatedValue, configuration, callback) {
|
|
131
|
+
callback = _combineCallbacks(callback, configuration);
|
|
132
|
+
var singleValue = animatedValue,
|
|
133
|
+
singleConfig = configuration;
|
|
134
|
+
singleValue.stopTracking(), configuration.toValue instanceof import_AnimatedNode.default ? singleValue.track(new import_AnimatedTracking.default(singleValue, configuration.toValue, import_SpringAnimation.default, singleConfig, callback)) : singleValue.animate(new import_SpringAnimation.default(singleConfig), callback);
|
|
135
|
+
};
|
|
136
|
+
return maybeVectorAnim(value, config, spring2) || {
|
|
137
|
+
start: function (callback) {
|
|
138
|
+
_start(value, config, callback);
|
|
139
|
+
},
|
|
140
|
+
stop: function () {
|
|
141
|
+
value.stopAnimation();
|
|
142
|
+
},
|
|
143
|
+
reset: function () {
|
|
144
|
+
value.resetAnimation();
|
|
145
|
+
},
|
|
146
|
+
_startNativeLoop: function (iterations) {
|
|
147
|
+
var singleConfig = {
|
|
148
|
+
...config,
|
|
149
|
+
iterations
|
|
150
|
+
};
|
|
151
|
+
_start(value, singleConfig);
|
|
152
|
+
},
|
|
153
|
+
_isUsingNativeDriver: function () {
|
|
154
|
+
return config.useNativeDriver || !1;
|
|
155
|
+
}
|
|
156
|
+
};
|
|
157
|
+
},
|
|
158
|
+
timing = function timing2(value, config) {
|
|
159
|
+
var _start2 = function (animatedValue, configuration, callback) {
|
|
160
|
+
callback = _combineCallbacks(callback, configuration);
|
|
161
|
+
var singleValue = animatedValue,
|
|
162
|
+
singleConfig = configuration;
|
|
163
|
+
singleValue.stopTracking(), configuration.toValue instanceof import_AnimatedNode.default ? singleValue.track(new import_AnimatedTracking.default(singleValue, configuration.toValue, import_TimingAnimation.default, singleConfig, callback)) : singleValue.animate(new import_TimingAnimation.default(singleConfig), callback);
|
|
164
|
+
};
|
|
165
|
+
return maybeVectorAnim(value, config, timing2) || {
|
|
166
|
+
start: function (callback) {
|
|
167
|
+
_start2(value, config, callback);
|
|
168
|
+
},
|
|
169
|
+
stop: function () {
|
|
170
|
+
value.stopAnimation();
|
|
171
|
+
},
|
|
172
|
+
reset: function () {
|
|
173
|
+
value.resetAnimation();
|
|
174
|
+
},
|
|
175
|
+
_startNativeLoop: function (iterations) {
|
|
176
|
+
var singleConfig = {
|
|
177
|
+
...config,
|
|
178
|
+
iterations
|
|
179
|
+
};
|
|
180
|
+
_start2(value, singleConfig);
|
|
181
|
+
},
|
|
182
|
+
_isUsingNativeDriver: function () {
|
|
183
|
+
return config.useNativeDriver || !1;
|
|
184
|
+
}
|
|
185
|
+
};
|
|
186
|
+
},
|
|
187
|
+
decay = function decay2(value, config) {
|
|
188
|
+
var _start3 = function (animatedValue, configuration, callback) {
|
|
189
|
+
callback = _combineCallbacks(callback, configuration);
|
|
190
|
+
var singleValue = animatedValue,
|
|
191
|
+
singleConfig = configuration;
|
|
192
|
+
singleValue.stopTracking(), singleValue.animate(new import_DecayAnimation.default(singleConfig), callback);
|
|
193
|
+
};
|
|
194
|
+
return maybeVectorAnim(value, config, decay2) || {
|
|
195
|
+
start: function (callback) {
|
|
196
|
+
_start3(value, config, callback);
|
|
197
|
+
},
|
|
198
|
+
stop: function () {
|
|
199
|
+
value.stopAnimation();
|
|
200
|
+
},
|
|
201
|
+
reset: function () {
|
|
202
|
+
value.resetAnimation();
|
|
203
|
+
},
|
|
204
|
+
_startNativeLoop: function (iterations) {
|
|
205
|
+
var singleConfig = {
|
|
206
|
+
...config,
|
|
207
|
+
iterations
|
|
208
|
+
};
|
|
209
|
+
_start3(value, singleConfig);
|
|
210
|
+
},
|
|
211
|
+
_isUsingNativeDriver: function () {
|
|
212
|
+
return config.useNativeDriver || !1;
|
|
213
|
+
}
|
|
214
|
+
};
|
|
215
|
+
},
|
|
216
|
+
sequence = function (animations) {
|
|
217
|
+
var current = 0;
|
|
218
|
+
return {
|
|
219
|
+
start: function (callback) {
|
|
220
|
+
var onComplete = function onComplete2(result) {
|
|
221
|
+
if (!result.finished) {
|
|
222
|
+
callback && callback(result);
|
|
223
|
+
return;
|
|
224
|
+
}
|
|
225
|
+
if (current++, current === animations.length) {
|
|
226
|
+
callback && callback(result);
|
|
227
|
+
return;
|
|
228
|
+
}
|
|
229
|
+
animations[current].start(onComplete2);
|
|
230
|
+
};
|
|
231
|
+
animations.length === 0 ? callback && callback({
|
|
232
|
+
finished: !0
|
|
233
|
+
}) : animations[current].start(onComplete);
|
|
234
|
+
},
|
|
235
|
+
stop: function () {
|
|
236
|
+
current < animations.length && animations[current].stop();
|
|
237
|
+
},
|
|
238
|
+
reset: function () {
|
|
239
|
+
animations.forEach((animation, idx) => {
|
|
240
|
+
idx <= current && animation.reset();
|
|
241
|
+
}), current = 0;
|
|
242
|
+
},
|
|
243
|
+
_startNativeLoop: function () {
|
|
244
|
+
throw new Error("Loops run using the native driver cannot contain Animated.sequence animations");
|
|
245
|
+
},
|
|
246
|
+
_isUsingNativeDriver: function () {
|
|
247
|
+
return !1;
|
|
248
|
+
}
|
|
249
|
+
};
|
|
250
|
+
},
|
|
251
|
+
parallel = function (animations, config) {
|
|
252
|
+
var doneCount = 0,
|
|
253
|
+
hasEnded = {},
|
|
254
|
+
stopTogether = !(config && config.stopTogether === !1),
|
|
255
|
+
result = {
|
|
256
|
+
start: function (callback) {
|
|
257
|
+
if (doneCount === animations.length) {
|
|
258
|
+
callback && callback({
|
|
259
|
+
finished: !0
|
|
260
|
+
});
|
|
261
|
+
return;
|
|
262
|
+
}
|
|
263
|
+
animations.forEach((animation, idx) => {
|
|
264
|
+
var cb = function (endResult) {
|
|
265
|
+
if (hasEnded[idx] = !0, doneCount++, doneCount === animations.length) {
|
|
266
|
+
doneCount = 0, callback && callback(endResult);
|
|
267
|
+
return;
|
|
268
|
+
}
|
|
269
|
+
!endResult.finished && stopTogether && result.stop();
|
|
270
|
+
};
|
|
271
|
+
animation ? animation.start(cb) : cb({
|
|
272
|
+
finished: !0
|
|
273
|
+
});
|
|
274
|
+
});
|
|
275
|
+
},
|
|
276
|
+
stop: function () {
|
|
277
|
+
animations.forEach((animation, idx) => {
|
|
278
|
+
!hasEnded[idx] && animation.stop(), hasEnded[idx] = !0;
|
|
279
|
+
});
|
|
280
|
+
},
|
|
281
|
+
reset: function () {
|
|
282
|
+
animations.forEach((animation, idx) => {
|
|
283
|
+
animation.reset(), hasEnded[idx] = !1, doneCount = 0;
|
|
284
|
+
});
|
|
285
|
+
},
|
|
286
|
+
_startNativeLoop: function () {
|
|
287
|
+
throw new Error("Loops run using the native driver cannot contain Animated.parallel animations");
|
|
288
|
+
},
|
|
289
|
+
_isUsingNativeDriver: function () {
|
|
290
|
+
return !1;
|
|
291
|
+
}
|
|
292
|
+
};
|
|
293
|
+
return result;
|
|
294
|
+
},
|
|
295
|
+
delay = function (time) {
|
|
296
|
+
return timing(new import_AnimatedValue.default(0), {
|
|
297
|
+
toValue: 0,
|
|
298
|
+
delay: time,
|
|
299
|
+
duration: 0,
|
|
300
|
+
useNativeDriver: !1
|
|
301
|
+
});
|
|
302
|
+
},
|
|
303
|
+
stagger = function (time, animations) {
|
|
304
|
+
return parallel(animations.map((animation, i) => sequence([delay(time * i), animation])));
|
|
305
|
+
},
|
|
306
|
+
loop = function (animation, _temp) {
|
|
307
|
+
var _ref = _temp === void 0 ? {} : _temp,
|
|
308
|
+
_ref$iterations = _ref.iterations,
|
|
309
|
+
iterations = _ref$iterations === void 0 ? -1 : _ref$iterations,
|
|
310
|
+
_ref$resetBeforeItera = _ref.resetBeforeIteration,
|
|
311
|
+
resetBeforeIteration = _ref$resetBeforeItera === void 0 ? !0 : _ref$resetBeforeItera,
|
|
312
|
+
isFinished = !1,
|
|
313
|
+
iterationsSoFar = 0;
|
|
314
|
+
return {
|
|
315
|
+
start: function (callback) {
|
|
316
|
+
var restart = function restart2(result) {
|
|
317
|
+
result === void 0 && (result = {
|
|
318
|
+
finished: !0
|
|
319
|
+
}), isFinished || iterationsSoFar === iterations || result.finished === !1 ? callback && callback(result) : (iterationsSoFar++, resetBeforeIteration && animation.reset(), animation.start(restart2));
|
|
320
|
+
};
|
|
321
|
+
!animation || iterations === 0 ? callback && callback({
|
|
322
|
+
finished: !0
|
|
323
|
+
}) : animation._isUsingNativeDriver() ? animation._startNativeLoop(iterations) : restart();
|
|
324
|
+
},
|
|
325
|
+
stop: function () {
|
|
326
|
+
isFinished = !0, animation.stop();
|
|
327
|
+
},
|
|
328
|
+
reset: function () {
|
|
329
|
+
iterationsSoFar = 0, isFinished = !1, animation.reset();
|
|
330
|
+
},
|
|
331
|
+
_startNativeLoop: function () {
|
|
332
|
+
throw new Error("Loops run using the native driver cannot contain Animated.loop animations");
|
|
333
|
+
},
|
|
334
|
+
_isUsingNativeDriver: function () {
|
|
335
|
+
return animation._isUsingNativeDriver();
|
|
336
|
+
}
|
|
337
|
+
};
|
|
338
|
+
};
|
|
339
|
+
function forkEvent(event3, listener) {
|
|
340
|
+
return event3 ? event3 instanceof import_AnimatedEvent.AnimatedEvent ? (event3.__addListener(listener), event3) : function () {
|
|
341
|
+
typeof event3 == "function" && event3(...arguments), listener(...arguments);
|
|
342
|
+
} : listener;
|
|
343
|
+
}
|
|
344
|
+
function unforkEvent(event3, listener) {
|
|
345
|
+
event3 && event3 instanceof import_AnimatedEvent.AnimatedEvent && event3.__removeListener(listener);
|
|
346
|
+
}
|
|
347
|
+
var event = function (argMapping, config) {
|
|
348
|
+
var animatedEvent = new import_AnimatedEvent.AnimatedEvent(argMapping, config);
|
|
349
|
+
return animatedEvent.__isNative ? animatedEvent : animatedEvent.__getHandler();
|
|
350
|
+
},
|
|
351
|
+
AnimatedImplementation_default = {
|
|
352
|
+
/**
|
|
353
|
+
* Standard value class for driving animations. Typically initialized with
|
|
354
|
+
* `new Animated.Value(0);`
|
|
355
|
+
*
|
|
356
|
+
* See https://reactnative.dev/docs/animated#value
|
|
357
|
+
*/
|
|
358
|
+
Value: import_AnimatedValue.default,
|
|
359
|
+
/**
|
|
360
|
+
* 2D value class for driving 2D animations, such as pan gestures.
|
|
361
|
+
*
|
|
362
|
+
* See https://reactnative.dev/docs/animatedvaluexy
|
|
363
|
+
*/
|
|
364
|
+
ValueXY: import_AnimatedValueXY.default,
|
|
365
|
+
/**
|
|
366
|
+
* Value class for driving color animations.
|
|
367
|
+
*/
|
|
368
|
+
Color: import_AnimatedColor.default,
|
|
369
|
+
/**
|
|
370
|
+
* Exported to use the Interpolation type in flow.
|
|
371
|
+
*
|
|
372
|
+
* See https://reactnative.dev/docs/animated#interpolation
|
|
373
|
+
*/
|
|
374
|
+
Interpolation: import_AnimatedInterpolation.default,
|
|
375
|
+
/**
|
|
376
|
+
* Exported for ease of type checking. All animated values derive from this
|
|
377
|
+
* class.
|
|
378
|
+
*
|
|
379
|
+
* See https://reactnative.dev/docs/animated#node
|
|
380
|
+
*/
|
|
381
|
+
Node: import_AnimatedNode.default,
|
|
382
|
+
/**
|
|
383
|
+
* Animates a value from an initial velocity to zero based on a decay
|
|
384
|
+
* coefficient.
|
|
385
|
+
*
|
|
386
|
+
* See https://reactnative.dev/docs/animated#decay
|
|
387
|
+
*/
|
|
388
|
+
decay,
|
|
389
|
+
/**
|
|
390
|
+
* Animates a value along a timed easing curve. The Easing module has tons of
|
|
391
|
+
* predefined curves, or you can use your own function.
|
|
392
|
+
*
|
|
393
|
+
* See https://reactnative.dev/docs/animated#timing
|
|
394
|
+
*/
|
|
395
|
+
timing,
|
|
396
|
+
/**
|
|
397
|
+
* Animates a value according to an analytical spring model based on
|
|
398
|
+
* damped harmonic oscillation.
|
|
399
|
+
*
|
|
400
|
+
* See https://reactnative.dev/docs/animated#spring
|
|
401
|
+
*/
|
|
402
|
+
spring,
|
|
403
|
+
/**
|
|
404
|
+
* Creates a new Animated value composed from two Animated values added
|
|
405
|
+
* together.
|
|
406
|
+
*
|
|
407
|
+
* See https://reactnative.dev/docs/animated#add
|
|
408
|
+
*/
|
|
409
|
+
add,
|
|
410
|
+
/**
|
|
411
|
+
* Creates a new Animated value composed by subtracting the second Animated
|
|
412
|
+
* value from the first Animated value.
|
|
413
|
+
*
|
|
414
|
+
* See https://reactnative.dev/docs/animated#subtract
|
|
415
|
+
*/
|
|
416
|
+
subtract,
|
|
417
|
+
/**
|
|
418
|
+
* Creates a new Animated value composed by dividing the first Animated value
|
|
419
|
+
* by the second Animated value.
|
|
420
|
+
*
|
|
421
|
+
* See https://reactnative.dev/docs/animated#divide
|
|
422
|
+
*/
|
|
423
|
+
divide,
|
|
424
|
+
/**
|
|
425
|
+
* Creates a new Animated value composed from two Animated values multiplied
|
|
426
|
+
* together.
|
|
427
|
+
*
|
|
428
|
+
* See https://reactnative.dev/docs/animated#multiply
|
|
429
|
+
*/
|
|
430
|
+
multiply,
|
|
431
|
+
/**
|
|
432
|
+
* Creates a new Animated value that is the (non-negative) modulo of the
|
|
433
|
+
* provided Animated value.
|
|
434
|
+
*
|
|
435
|
+
* See https://reactnative.dev/docs/animated#modulo
|
|
436
|
+
*/
|
|
437
|
+
modulo,
|
|
438
|
+
/**
|
|
439
|
+
* Create a new Animated value that is limited between 2 values. It uses the
|
|
440
|
+
* difference between the last value so even if the value is far from the
|
|
441
|
+
* bounds it will start changing when the value starts getting closer again.
|
|
442
|
+
*
|
|
443
|
+
* See https://reactnative.dev/docs/animated#diffclamp
|
|
444
|
+
*/
|
|
445
|
+
diffClamp,
|
|
446
|
+
/**
|
|
447
|
+
* Starts an animation after the given delay.
|
|
448
|
+
*
|
|
449
|
+
* See https://reactnative.dev/docs/animated#delay
|
|
450
|
+
*/
|
|
451
|
+
delay,
|
|
452
|
+
/**
|
|
453
|
+
* Starts an array of animations in order, waiting for each to complete
|
|
454
|
+
* before starting the next. If the current running animation is stopped, no
|
|
455
|
+
* following animations will be started.
|
|
456
|
+
*
|
|
457
|
+
* See https://reactnative.dev/docs/animated#sequence
|
|
458
|
+
*/
|
|
459
|
+
sequence,
|
|
460
|
+
/**
|
|
461
|
+
* Starts an array of animations all at the same time. By default, if one
|
|
462
|
+
* of the animations is stopped, they will all be stopped. You can override
|
|
463
|
+
* this with the `stopTogether` flag.
|
|
464
|
+
*
|
|
465
|
+
* See https://reactnative.dev/docs/animated#parallel
|
|
466
|
+
*/
|
|
467
|
+
parallel,
|
|
468
|
+
/**
|
|
469
|
+
* Array of animations may run in parallel (overlap), but are started in
|
|
470
|
+
* sequence with successive delays. Nice for doing trailing effects.
|
|
471
|
+
*
|
|
472
|
+
* See https://reactnative.dev/docs/animated#stagger
|
|
473
|
+
*/
|
|
474
|
+
stagger,
|
|
475
|
+
/**
|
|
476
|
+
* Loops a given animation continuously, so that each time it reaches the
|
|
477
|
+
* end, it resets and begins again from the start.
|
|
478
|
+
*
|
|
479
|
+
* See https://reactnative.dev/docs/animated#loop
|
|
480
|
+
*/
|
|
481
|
+
loop,
|
|
482
|
+
/**
|
|
483
|
+
* Takes an array of mappings and extracts values from each arg accordingly,
|
|
484
|
+
* then calls `setValue` on the mapped outputs.
|
|
485
|
+
*
|
|
486
|
+
* See https://reactnative.dev/docs/animated#event
|
|
487
|
+
*/
|
|
488
|
+
event,
|
|
489
|
+
/**
|
|
490
|
+
* Make any React component Animatable. Used to create `Animated.View`, etc.
|
|
491
|
+
*
|
|
492
|
+
* See https://reactnative.dev/docs/animated#createanimatedcomponent
|
|
493
|
+
*/
|
|
494
|
+
createAnimatedComponent: import_createAnimatedComponent.default,
|
|
495
|
+
/**
|
|
496
|
+
* Imperative API to attach an animated value to an event on a view. Prefer
|
|
497
|
+
* using `Animated.event` with `useNativeDrive: true` if possible.
|
|
498
|
+
*
|
|
499
|
+
* See https://reactnative.dev/docs/animated#attachnativeevent
|
|
500
|
+
*/
|
|
501
|
+
attachNativeEvent: import_AnimatedEvent.attachNativeEvent,
|
|
502
|
+
/**
|
|
503
|
+
* Advanced imperative API for snooping on animated events that are passed in
|
|
504
|
+
* through props. Use values directly where possible.
|
|
505
|
+
*
|
|
506
|
+
* See https://reactnative.dev/docs/animated#forkevent
|
|
507
|
+
*/
|
|
508
|
+
forkEvent,
|
|
509
|
+
unforkEvent,
|
|
510
|
+
/**
|
|
511
|
+
* Expose Event class, so it can be used as a type for type checkers.
|
|
512
|
+
*/
|
|
513
|
+
Event: import_AnimatedEvent.AnimatedEvent
|
|
514
|
+
};
|