@hanzogui/react-native-web-lite 2.0.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/LICENSE +21 -0
- package/README.md +31 -0
- package/dist/cjs/AccessibilityInfo/index.cjs +97 -0
- package/dist/cjs/ActivityIndicator/__tests__/index-test.cjs +188 -0
- package/dist/cjs/ActivityIndicator/index.cjs +128 -0
- package/dist/cjs/Alert/index.cjs +28 -0
- package/dist/cjs/AppRegistry/AppContainer.cjs +70 -0
- package/dist/cjs/AppRegistry/__tests__/index-test.cjs +83 -0
- package/dist/cjs/AppRegistry/__tests__/index-test.node.cjs +155 -0
- package/dist/cjs/AppRegistry/index.cjs +88 -0
- package/dist/cjs/AppRegistry/renderApplication.cjs +69 -0
- package/dist/cjs/AppState/__tests__/index-test.cjs +34 -0
- package/dist/cjs/AppState/index.cjs +69 -0
- package/dist/cjs/Appearance/index.cjs +53 -0
- package/dist/cjs/BackHandler/index.cjs +35 -0
- package/dist/cjs/Clipboard/index.cjs +51 -0
- package/dist/cjs/DeviceEmitter.cjs +27 -0
- package/dist/cjs/DeviceInfo/index.cjs +68 -0
- package/dist/cjs/Dimensions/__tests__/index-test.cjs +54 -0
- package/dist/cjs/Dimensions/index.cjs +82 -0
- package/dist/cjs/FlatList.cjs +197 -0
- package/dist/cjs/I18nManager/index.cjs +34 -0
- package/dist/cjs/Image/index.cjs +293 -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 +67 -0
- package/dist/cjs/InteractionManager/TaskQueue.cjs +87 -0
- package/dist/cjs/InteractionManager/index.cjs +114 -0
- package/dist/cjs/Keyboard/index.cjs +38 -0
- package/dist/cjs/KeyboardAvoidingView/index.cjs +68 -0
- package/dist/cjs/Libraries/Pressability/Pressability.cjs +26 -0
- package/dist/cjs/Libraries/Pressability/usePressability.cjs +26 -0
- package/dist/cjs/Linking/__tests__/index-test.cjs +40 -0
- package/dist/cjs/Linking/index.cjs +89 -0
- package/dist/cjs/LogBox/index.cjs +33 -0
- package/dist/cjs/Modal/ModalAnimation.cjs +147 -0
- package/dist/cjs/Modal/ModalContent.cjs +85 -0
- package/dist/cjs/Modal/ModalPortal.cjs +52 -0
- package/dist/cjs/Modal/index.cjs +26 -0
- package/dist/cjs/NativeModules/index.cjs +29 -0
- package/dist/cjs/PanResponder/index.cjs +37 -0
- package/dist/cjs/PixelRatio/index.cjs +57 -0
- package/dist/cjs/Pressable/index.cjs +144 -0
- package/dist/cjs/RefreshControl/index.cjs +49 -0
- package/dist/cjs/SafeAreaView/index.cjs +63 -0
- package/dist/cjs/ScrollView/ScrollViewBase.cjs +140 -0
- package/dist/cjs/ScrollView/index.cjs +589 -0
- package/dist/cjs/SectionList.cjs +39 -0
- package/dist/cjs/Share/index.cjs +48 -0
- package/dist/cjs/StatusBar/index.cjs +36 -0
- package/dist/cjs/Text/index.cjs +170 -0
- package/dist/cjs/Text/types.cjs +16 -0
- package/dist/cjs/TextInput/index.cjs +285 -0
- package/dist/cjs/TextInput/types.cjs +16 -0
- package/dist/cjs/TouchableNativeFeedback.cjs +26 -0
- package/dist/cjs/TouchableOpacity.cjs +116 -0
- package/dist/cjs/TouchableWithoutFeedback.cjs +91 -0
- package/dist/cjs/UnimplementedView.cjs +47 -0
- package/dist/cjs/Vibration/index.cjs +36 -0
- package/dist/cjs/View/index.cjs +123 -0
- package/dist/cjs/View/types.cjs +16 -0
- package/dist/cjs/VirtualizedList.cjs +39 -0
- package/dist/cjs/codegenNativeCommand.cjs +28 -0
- package/dist/cjs/codegenNativeComponent.cjs +28 -0
- package/dist/cjs/createElement/__tests__/index-test.cjs +765 -0
- package/dist/cjs/createElement/index.cjs +84 -0
- package/dist/cjs/createReactDOMStyle.cjs +28 -0
- package/dist/cjs/index.cjs +172 -0
- package/dist/cjs/modules/requestIdleCallback.cjs +43 -0
- package/dist/cjs/preprocess.cjs +30 -0
- package/dist/cjs/render/index.cjs +32 -0
- package/dist/cjs/styleTypes.cjs +16 -0
- package/dist/cjs/types.cjs +16 -0
- package/dist/cjs/useColorScheme/index.cjs +50 -0
- package/dist/cjs/useLocaleContext/index.cjs +26 -0
- package/dist/cjs/useWindowDimensions/index.cjs +51 -0
- package/dist/cjs/vendor/react-native/Animated/Animated.cjs +46 -0
- package/dist/cjs/vendor/react-native/Animated/AnimatedEvent.cjs +112 -0
- package/dist/cjs/vendor/react-native/Animated/AnimatedImplementation.cjs +508 -0
- package/dist/cjs/vendor/react-native/Animated/AnimatedMock.cjs +140 -0
- package/dist/cjs/vendor/react-native/Animated/AnimatedPlatformConfig.cjs +1 -0
- package/dist/cjs/vendor/react-native/Animated/Easing.cjs +187 -0
- package/dist/cjs/vendor/react-native/Animated/NativeAnimatedHelper.cjs +314 -0
- package/dist/cjs/vendor/react-native/Animated/NativeAnimatedModule.cjs +78 -0
- package/dist/cjs/vendor/react-native/Animated/NativeAnimatedTurboModule.cjs +75 -0
- package/dist/cjs/vendor/react-native/Animated/SpringConfig.cjs +78 -0
- package/dist/cjs/vendor/react-native/Animated/animations/Animation.cjs +64 -0
- package/dist/cjs/vendor/react-native/Animated/animations/DecayAnimation.cjs +71 -0
- package/dist/cjs/vendor/react-native/Animated/animations/SpringAnimation.cjs +161 -0
- package/dist/cjs/vendor/react-native/Animated/animations/TimingAnimation.cjs +89 -0
- package/dist/cjs/vendor/react-native/Animated/bezier.cjs +83 -0
- package/dist/cjs/vendor/react-native/Animated/components/AnimatedFlatList.cjs +48 -0
- package/dist/cjs/vendor/react-native/Animated/components/AnimatedImage.cjs +31 -0
- package/dist/cjs/vendor/react-native/Animated/components/AnimatedScrollView.cjs +48 -0
- package/dist/cjs/vendor/react-native/Animated/components/AnimatedSectionList.cjs +48 -0
- package/dist/cjs/vendor/react-native/Animated/components/AnimatedText.cjs +30 -0
- package/dist/cjs/vendor/react-native/Animated/components/AnimatedView.cjs +30 -0
- package/dist/cjs/vendor/react-native/Animated/createAnimatedComponent.cjs +62 -0
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedAddition.cjs +60 -0
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedColor.cjs +191 -0
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedDiffClamp.cjs +64 -0
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedDivision.cjs +64 -0
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedInterpolation.cjs +150 -0
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedModulo.cjs +58 -0
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedMultiplication.cjs +60 -0
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedNode.cjs +131 -0
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedProps.cjs +110 -0
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedStyle.cjs +104 -0
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedSubtraction.cjs +60 -0
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedTracking.cjs +73 -0
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedTransform.cjs +102 -0
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedValue.cjs +170 -0
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedValueXY.cjs +96 -0
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedWithChildren.cjs +61 -0
- package/dist/cjs/vendor/react-native/Animated/useAnimatedProps.cjs +84 -0
- package/dist/cjs/vendor/react-native/Batchinator/index.cjs +60 -0
- package/dist/cjs/vendor/react-native/EventEmitter/NativeEventEmitter.cjs +61 -0
- package/dist/cjs/vendor/react-native/EventEmitter/RCTDeviceEventEmitter.cjs +29 -0
- package/dist/cjs/vendor/react-native/FeatureFlags.cjs +33 -0
- package/dist/cjs/vendor/react-native/FillRateHelper/index.cjs +139 -0
- package/dist/cjs/vendor/react-native/FlatList/index.cjs +263 -0
- package/dist/cjs/vendor/react-native/JSEventLoopWatchdog/index.cjs +78 -0
- package/dist/cjs/vendor/react-native/LayoutAnimation/index.cjs +112 -0
- package/dist/cjs/vendor/react-native/PanResponder/index.cjs +144 -0
- package/dist/cjs/vendor/react-native/PooledClass/index.cjs +48 -0
- package/dist/cjs/vendor/react-native/ReactNative/ReactNativeFeatureFlags.cjs +34 -0
- package/dist/cjs/vendor/react-native/SectionList/index.cjs +104 -0
- package/dist/cjs/vendor/react-native/StaticContainer/index.cjs +50 -0
- package/dist/cjs/vendor/react-native/StaticRenderer/index.cjs +49 -0
- package/dist/cjs/vendor/react-native/TouchHistoryMath/index.cjs +106 -0
- package/dist/cjs/vendor/react-native/TurboModule/RCTExport.cjs +34 -0
- package/dist/cjs/vendor/react-native/TurboModule/TurboModuleRegistry.cjs +36 -0
- package/dist/cjs/vendor/react-native/Types/CoreEventTypes.cjs +156 -0
- package/dist/cjs/vendor/react-native/Utilities/Platform.cjs +28 -0
- package/dist/cjs/vendor/react-native/Utilities/clamp.cjs +32 -0
- package/dist/cjs/vendor/react-native/Utilities/setAndForwardRef.cjs +38 -0
- package/dist/cjs/vendor/react-native/Utilities/useMergeRefs.cjs +35 -0
- package/dist/cjs/vendor/react-native/Utilities/useRefEffect.cjs +34 -0
- package/dist/cjs/vendor/react-native/ViewabilityHelper/index.cjs +143 -0
- package/dist/cjs/vendor/react-native/ViewabilityHelper.cjs +134 -0
- package/dist/cjs/vendor/react-native/VirtualizeUtils/index.cjs +106 -0
- package/dist/cjs/vendor/react-native/VirtualizedList/CellRenderMask.cjs +79 -0
- package/dist/cjs/vendor/react-native/VirtualizedList/ChildListCollection.cjs +58 -0
- package/dist/cjs/vendor/react-native/VirtualizedList/StateSafePureComponent.cjs +82 -0
- package/dist/cjs/vendor/react-native/VirtualizedList/VirtualizedListCellRenderer.cjs +173 -0
- package/dist/cjs/vendor/react-native/VirtualizedList/VirtualizedListContext.cjs +85 -0
- package/dist/cjs/vendor/react-native/VirtualizedList/VirtualizedListProps.cjs +64 -0
- package/dist/cjs/vendor/react-native/VirtualizedList/index.cjs +264 -0
- package/dist/cjs/vendor/react-native/VirtualizedSectionList/index.cjs +130 -0
- package/dist/cjs/vendor/react-native/deepDiffer/index.cjs +44 -0
- package/dist/cjs/vendor/react-native/emitter/EventEmitter.cjs +30 -0
- package/dist/cjs/vendor/react-native/emitter/EventSubscription.cjs +1 -0
- package/dist/cjs/vendor/react-native/emitter/_EmitterSubscription.cjs +54 -0
- package/dist/cjs/vendor/react-native/emitter/_EventEmitter.cjs +125 -0
- package/dist/cjs/vendor/react-native/emitter/_EventSubscription.cjs +44 -0
- package/dist/cjs/vendor/react-native/emitter/_EventSubscriptionVendor.cjs +82 -0
- package/dist/cjs/vendor/react-native/infoLog/index.cjs +32 -0
- package/dist/cjs/vendor/react-native/useRefEffect.cjs +34 -0
- package/dist/cjs/vendor/react-native/vendor/emitter/EventEmitter.cjs +88 -0
- package/dist/cjs/without-animated.cjs +331 -0
- package/dist/esm/AccessibilityInfo/index.mjs +74 -0
- package/dist/esm/AccessibilityInfo/index.mjs.map +1 -0
- package/dist/esm/ActivityIndicator/__tests__/index-test.mjs +167 -0
- package/dist/esm/ActivityIndicator/__tests__/index-test.mjs.map +1 -0
- package/dist/esm/ActivityIndicator/index.mjs +93 -0
- package/dist/esm/ActivityIndicator/index.mjs.map +1 -0
- package/dist/esm/Alert/index.mjs +5 -0
- package/dist/esm/Alert/index.mjs.map +1 -0
- package/dist/esm/AppRegistry/AppContainer.mjs +35 -0
- package/dist/esm/AppRegistry/AppContainer.mjs.map +1 -0
- package/dist/esm/AppRegistry/__tests__/index-test.mjs +62 -0
- package/dist/esm/AppRegistry/__tests__/index-test.mjs.map +1 -0
- package/dist/esm/AppRegistry/__tests__/index-test.node.mjs +134 -0
- package/dist/esm/AppRegistry/__tests__/index-test.node.mjs.map +1 -0
- package/dist/esm/AppRegistry/index.mjs +65 -0
- package/dist/esm/AppRegistry/index.mjs.map +1 -0
- package/dist/esm/AppRegistry/renderApplication.mjs +45 -0
- package/dist/esm/AppRegistry/renderApplication.mjs.map +1 -0
- package/dist/esm/AppState/__tests__/index-test.mjs +13 -0
- package/dist/esm/AppState/__tests__/index-test.mjs.map +1 -0
- package/dist/esm/AppState/index.mjs +46 -0
- package/dist/esm/AppState/index.mjs.map +1 -0
- package/dist/esm/Appearance/index.mjs +30 -0
- package/dist/esm/Appearance/index.mjs.map +1 -0
- package/dist/esm/BackHandler/index.mjs +12 -0
- package/dist/esm/BackHandler/index.mjs.map +1 -0
- package/dist/esm/Clipboard/index.mjs +28 -0
- package/dist/esm/Clipboard/index.mjs.map +1 -0
- package/dist/esm/DeviceEmitter.mjs +4 -0
- package/dist/esm/DeviceEmitter.mjs.map +1 -0
- package/dist/esm/DeviceInfo/index.mjs +45 -0
- package/dist/esm/DeviceInfo/index.mjs.map +1 -0
- package/dist/esm/Dimensions/__tests__/index-test.mjs +33 -0
- package/dist/esm/Dimensions/__tests__/index-test.mjs.map +1 -0
- package/dist/esm/Dimensions/index.mjs +58 -0
- package/dist/esm/Dimensions/index.mjs.map +1 -0
- package/dist/esm/FlatList.mjs +162 -0
- package/dist/esm/FlatList.mjs.map +1 -0
- package/dist/esm/I18nManager/index.mjs +11 -0
- package/dist/esm/I18nManager/index.mjs.map +1 -0
- package/dist/esm/Image/index.mjs +258 -0
- package/dist/esm/Image/index.mjs.map +1 -0
- package/dist/esm/Image/types.mjs +2 -0
- package/dist/esm/Image/types.mjs.map +1 -0
- package/dist/esm/ImageBackground/__tests__/index-test.mjs +47 -0
- package/dist/esm/ImageBackground/__tests__/index-test.mjs.map +1 -0
- package/dist/esm/ImageBackground/index.mjs +43 -0
- package/dist/esm/ImageBackground/index.mjs.map +1 -0
- package/dist/esm/InteractionManager/TaskQueue.mjs +64 -0
- package/dist/esm/InteractionManager/TaskQueue.mjs.map +1 -0
- package/dist/esm/InteractionManager/index.mjs +80 -0
- package/dist/esm/InteractionManager/index.mjs.map +1 -0
- package/dist/esm/Keyboard/index.mjs +15 -0
- package/dist/esm/Keyboard/index.mjs.map +1 -0
- package/dist/esm/KeyboardAvoidingView/index.mjs +33 -0
- package/dist/esm/KeyboardAvoidingView/index.mjs.map +1 -0
- package/dist/esm/Libraries/Pressability/Pressability.mjs +3 -0
- package/dist/esm/Libraries/Pressability/Pressability.mjs.map +1 -0
- package/dist/esm/Libraries/Pressability/usePressability.mjs +3 -0
- package/dist/esm/Libraries/Pressability/usePressability.mjs.map +1 -0
- package/dist/esm/Linking/__tests__/index-test.mjs +19 -0
- package/dist/esm/Linking/__tests__/index-test.mjs.map +1 -0
- package/dist/esm/Linking/index.mjs +66 -0
- package/dist/esm/Linking/index.mjs.map +1 -0
- package/dist/esm/LogBox/index.mjs +9 -0
- package/dist/esm/LogBox/index.mjs.map +1 -0
- package/dist/esm/Modal/ModalAnimation.mjs +113 -0
- package/dist/esm/Modal/ModalAnimation.mjs.map +1 -0
- package/dist/esm/Modal/ModalContent.mjs +51 -0
- package/dist/esm/Modal/ModalContent.mjs.map +1 -0
- package/dist/esm/Modal/ModalPortal.mjs +18 -0
- package/dist/esm/Modal/ModalPortal.mjs.map +1 -0
- package/dist/esm/Modal/index.mjs +3 -0
- package/dist/esm/Modal/index.mjs.map +1 -0
- package/dist/esm/NativeModules/index.mjs +6 -0
- package/dist/esm/NativeModules/index.mjs.map +1 -0
- package/dist/esm/PanResponder/index.mjs +3 -0
- package/dist/esm/PanResponder/index.mjs.map +1 -0
- package/dist/esm/PixelRatio/index.mjs +34 -0
- package/dist/esm/PixelRatio/index.mjs.map +1 -0
- package/dist/esm/Pressable/index.mjs +107 -0
- package/dist/esm/Pressable/index.mjs.map +1 -0
- package/dist/esm/RefreshControl/index.mjs +25 -0
- package/dist/esm/RefreshControl/index.mjs.map +1 -0
- package/dist/esm/SafeAreaView/index.mjs +28 -0
- package/dist/esm/SafeAreaView/index.mjs.map +1 -0
- package/dist/esm/ScrollView/ScrollViewBase.mjs +105 -0
- package/dist/esm/ScrollView/ScrollViewBase.mjs.map +1 -0
- package/dist/esm/ScrollView/index.mjs +554 -0
- package/dist/esm/ScrollView/index.mjs.map +1 -0
- package/dist/esm/SectionList.mjs +4 -0
- package/dist/esm/SectionList.mjs.map +1 -0
- package/dist/esm/Share/index.mjs +25 -0
- package/dist/esm/Share/index.mjs.map +1 -0
- package/dist/esm/StatusBar/index.mjs +12 -0
- package/dist/esm/StatusBar/index.mjs.map +1 -0
- package/dist/esm/Text/index.mjs +135 -0
- package/dist/esm/Text/index.mjs.map +1 -0
- package/dist/esm/Text/types.mjs +2 -0
- package/dist/esm/Text/types.mjs.map +1 -0
- package/dist/esm/TextInput/index.mjs +250 -0
- package/dist/esm/TextInput/index.mjs.map +1 -0
- package/dist/esm/TextInput/types.mjs +2 -0
- package/dist/esm/TextInput/types.mjs.map +1 -0
- package/dist/esm/TouchableNativeFeedback.mjs +3 -0
- package/dist/esm/TouchableNativeFeedback.mjs.map +1 -0
- package/dist/esm/TouchableOpacity.mjs +80 -0
- package/dist/esm/TouchableOpacity.mjs.map +1 -0
- package/dist/esm/TouchableWithoutFeedback.mjs +57 -0
- package/dist/esm/TouchableWithoutFeedback.mjs.map +1 -0
- package/dist/esm/UnimplementedView.mjs +13 -0
- package/dist/esm/UnimplementedView.mjs.map +1 -0
- package/dist/esm/Vibration/index.mjs +13 -0
- package/dist/esm/Vibration/index.mjs.map +1 -0
- package/dist/esm/View/index.mjs +88 -0
- package/dist/esm/View/index.mjs.map +1 -0
- package/dist/esm/View/types.mjs +2 -0
- package/dist/esm/View/types.mjs.map +1 -0
- package/dist/esm/VirtualizedList.mjs +4 -0
- package/dist/esm/VirtualizedList.mjs.map +1 -0
- package/dist/esm/codegenNativeCommand.mjs +5 -0
- package/dist/esm/codegenNativeCommand.mjs.map +1 -0
- package/dist/esm/codegenNativeComponent.mjs +5 -0
- package/dist/esm/codegenNativeComponent.mjs.map +1 -0
- package/dist/esm/createElement/__tests__/index-test.mjs +744 -0
- package/dist/esm/createElement/__tests__/index-test.mjs.map +1 -0
- package/dist/esm/createElement/index.mjs +49 -0
- package/dist/esm/createElement/index.mjs.map +1 -0
- package/dist/esm/createReactDOMStyle.mjs +4 -0
- package/dist/esm/createReactDOMStyle.mjs.map +1 -0
- package/dist/esm/index.js +61 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/index.mjs +61 -0
- package/dist/esm/index.mjs.map +1 -0
- package/dist/esm/modules/requestIdleCallback.mjs +19 -0
- package/dist/esm/modules/requestIdleCallback.mjs.map +1 -0
- package/dist/esm/preprocess.mjs +3 -0
- package/dist/esm/preprocess.mjs.map +1 -0
- package/dist/esm/render/index.mjs +6 -0
- package/dist/esm/render/index.mjs.map +1 -0
- package/dist/esm/styleTypes.mjs +2 -0
- package/dist/esm/styleTypes.mjs.map +1 -0
- package/dist/esm/types.mjs +2 -0
- package/dist/esm/types.mjs.map +1 -0
- package/dist/esm/useColorScheme/index.mjs +16 -0
- package/dist/esm/useColorScheme/index.mjs.map +1 -0
- package/dist/esm/useLocaleContext/index.mjs +3 -0
- package/dist/esm/useLocaleContext/index.mjs.map +1 -0
- package/dist/esm/useWindowDimensions/index.mjs +17 -0
- package/dist/esm/useWindowDimensions/index.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Animated/Animated.mjs +22 -0
- package/dist/esm/vendor/react-native/Animated/Animated.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Animated/AnimatedEvent.mjs +86 -0
- package/dist/esm/vendor/react-native/Animated/AnimatedEvent.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Animated/AnimatedImplementation.mjs +481 -0
- package/dist/esm/vendor/react-native/Animated/AnimatedImplementation.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Animated/AnimatedMock.mjs +113 -0
- package/dist/esm/vendor/react-native/Animated/AnimatedMock.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Animated/AnimatedPlatformConfig.mjs +2 -0
- package/dist/esm/vendor/react-native/Animated/AnimatedPlatformConfig.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Animated/Easing.mjs +161 -0
- package/dist/esm/vendor/react-native/Animated/Easing.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Animated/NativeAnimatedHelper.mjs +274 -0
- package/dist/esm/vendor/react-native/Animated/NativeAnimatedHelper.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Animated/NativeAnimatedModule.mjs +38 -0
- package/dist/esm/vendor/react-native/Animated/NativeAnimatedModule.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Animated/NativeAnimatedTurboModule.mjs +35 -0
- package/dist/esm/vendor/react-native/Animated/NativeAnimatedTurboModule.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Animated/SpringConfig.mjs +54 -0
- package/dist/esm/vendor/react-native/Animated/SpringConfig.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Animated/animations/Animation.mjs +38 -0
- package/dist/esm/vendor/react-native/Animated/animations/Animation.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Animated/animations/DecayAnimation.mjs +45 -0
- package/dist/esm/vendor/react-native/Animated/animations/DecayAnimation.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Animated/animations/SpringAnimation.mjs +135 -0
- package/dist/esm/vendor/react-native/Animated/animations/SpringAnimation.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Animated/animations/TimingAnimation.mjs +65 -0
- package/dist/esm/vendor/react-native/Animated/animations/TimingAnimation.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Animated/bezier.mjs +57 -0
- package/dist/esm/vendor/react-native/Animated/bezier.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Animated/components/AnimatedFlatList.mjs +13 -0
- package/dist/esm/vendor/react-native/Animated/components/AnimatedFlatList.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Animated/components/AnimatedImage.mjs +7 -0
- package/dist/esm/vendor/react-native/Animated/components/AnimatedImage.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Animated/components/AnimatedScrollView.mjs +13 -0
- package/dist/esm/vendor/react-native/Animated/components/AnimatedScrollView.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Animated/components/AnimatedSectionList.mjs +13 -0
- package/dist/esm/vendor/react-native/Animated/components/AnimatedSectionList.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Animated/components/AnimatedText.mjs +6 -0
- package/dist/esm/vendor/react-native/Animated/components/AnimatedText.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Animated/components/AnimatedView.mjs +6 -0
- package/dist/esm/vendor/react-native/Animated/components/AnimatedView.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Animated/createAnimatedComponent.mjs +27 -0
- package/dist/esm/vendor/react-native/Animated/createAnimatedComponent.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedAddition.mjs +34 -0
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedAddition.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedColor.mjs +167 -0
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedColor.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedDiffClamp.mjs +40 -0
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedDiffClamp.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedDivision.mjs +38 -0
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedDivision.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedInterpolation.mjs +124 -0
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedInterpolation.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedModulo.mjs +34 -0
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedModulo.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedMultiplication.mjs +34 -0
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedMultiplication.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedNode.mjs +105 -0
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedNode.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedProps.mjs +86 -0
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedProps.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedStyle.mjs +80 -0
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedStyle.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedSubtraction.mjs +34 -0
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedSubtraction.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedTracking.mjs +49 -0
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedTracking.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedTransform.mjs +76 -0
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedTransform.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedValue.mjs +144 -0
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedValue.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedValueXY.mjs +72 -0
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedValueXY.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedWithChildren.mjs +35 -0
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedWithChildren.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Animated/useAnimatedProps.mjs +58 -0
- package/dist/esm/vendor/react-native/Animated/useAnimatedProps.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Batchinator/index.mjs +34 -0
- package/dist/esm/vendor/react-native/Batchinator/index.mjs.map +1 -0
- package/dist/esm/vendor/react-native/EventEmitter/NativeEventEmitter.mjs +35 -0
- package/dist/esm/vendor/react-native/EventEmitter/NativeEventEmitter.mjs.map +1 -0
- package/dist/esm/vendor/react-native/EventEmitter/RCTDeviceEventEmitter.mjs +5 -0
- package/dist/esm/vendor/react-native/EventEmitter/RCTDeviceEventEmitter.mjs.map +1 -0
- package/dist/esm/vendor/react-native/FeatureFlags.mjs +10 -0
- package/dist/esm/vendor/react-native/FeatureFlags.mjs.map +1 -0
- package/dist/esm/vendor/react-native/FillRateHelper/index.mjs +115 -0
- package/dist/esm/vendor/react-native/FillRateHelper/index.mjs.map +1 -0
- package/dist/esm/vendor/react-native/FlatList/index.mjs +228 -0
- package/dist/esm/vendor/react-native/FlatList/index.mjs.map +1 -0
- package/dist/esm/vendor/react-native/JSEventLoopWatchdog/index.mjs +52 -0
- package/dist/esm/vendor/react-native/JSEventLoopWatchdog/index.mjs.map +1 -0
- package/dist/esm/vendor/react-native/LayoutAnimation/index.mjs +86 -0
- package/dist/esm/vendor/react-native/LayoutAnimation/index.mjs.map +1 -0
- package/dist/esm/vendor/react-native/PanResponder/index.mjs +109 -0
- package/dist/esm/vendor/react-native/PanResponder/index.mjs.map +1 -0
- package/dist/esm/vendor/react-native/PooledClass/index.mjs +24 -0
- package/dist/esm/vendor/react-native/PooledClass/index.mjs.map +1 -0
- package/dist/esm/vendor/react-native/ReactNative/ReactNativeFeatureFlags.mjs +10 -0
- package/dist/esm/vendor/react-native/ReactNative/ReactNativeFeatureFlags.mjs.map +1 -0
- package/dist/esm/vendor/react-native/SectionList/index.mjs +69 -0
- package/dist/esm/vendor/react-native/SectionList/index.mjs.map +1 -0
- package/dist/esm/vendor/react-native/StaticContainer/index.mjs +13 -0
- package/dist/esm/vendor/react-native/StaticContainer/index.mjs.map +1 -0
- package/dist/esm/vendor/react-native/StaticRenderer/index.mjs +12 -0
- package/dist/esm/vendor/react-native/StaticRenderer/index.mjs.map +1 -0
- package/dist/esm/vendor/react-native/TouchHistoryMath/index.mjs +82 -0
- package/dist/esm/vendor/react-native/TouchHistoryMath/index.mjs.map +1 -0
- package/dist/esm/vendor/react-native/TurboModule/RCTExport.mjs +8 -0
- package/dist/esm/vendor/react-native/TurboModule/RCTExport.mjs.map +1 -0
- package/dist/esm/vendor/react-native/TurboModule/TurboModuleRegistry.mjs +10 -0
- package/dist/esm/vendor/react-native/TurboModule/TurboModuleRegistry.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Types/CoreEventTypes.mjs +126 -0
- package/dist/esm/vendor/react-native/Types/CoreEventTypes.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Utilities/Platform.mjs +4 -0
- package/dist/esm/vendor/react-native/Utilities/Platform.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Utilities/clamp.mjs +6 -0
- package/dist/esm/vendor/react-native/Utilities/clamp.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Utilities/setAndForwardRef.mjs +12 -0
- package/dist/esm/vendor/react-native/Utilities/setAndForwardRef.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Utilities/useMergeRefs.mjs +11 -0
- package/dist/esm/vendor/react-native/Utilities/useMergeRefs.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Utilities/useRefEffect.mjs +10 -0
- package/dist/esm/vendor/react-native/Utilities/useRefEffect.mjs.map +1 -0
- package/dist/esm/vendor/react-native/ViewabilityHelper/index.mjs +117 -0
- package/dist/esm/vendor/react-native/ViewabilityHelper/index.mjs.map +1 -0
- package/dist/esm/vendor/react-native/ViewabilityHelper.mjs +110 -0
- package/dist/esm/vendor/react-native/ViewabilityHelper.mjs.map +1 -0
- package/dist/esm/vendor/react-native/VirtualizeUtils/index.mjs +80 -0
- package/dist/esm/vendor/react-native/VirtualizeUtils/index.mjs.map +1 -0
- package/dist/esm/vendor/react-native/VirtualizedList/CellRenderMask.mjs +56 -0
- package/dist/esm/vendor/react-native/VirtualizedList/CellRenderMask.mjs.map +1 -0
- package/dist/esm/vendor/react-native/VirtualizedList/ChildListCollection.mjs +34 -0
- package/dist/esm/vendor/react-native/VirtualizedList/ChildListCollection.mjs.map +1 -0
- package/dist/esm/vendor/react-native/VirtualizedList/StateSafePureComponent.mjs +47 -0
- package/dist/esm/vendor/react-native/VirtualizedList/StateSafePureComponent.mjs.map +1 -0
- package/dist/esm/vendor/react-native/VirtualizedList/VirtualizedListCellRenderer.mjs +138 -0
- package/dist/esm/vendor/react-native/VirtualizedList/VirtualizedListCellRenderer.mjs.map +1 -0
- package/dist/esm/vendor/react-native/VirtualizedList/VirtualizedListContext.mjs +48 -0
- package/dist/esm/vendor/react-native/VirtualizedList/VirtualizedListContext.mjs.map +1 -0
- package/dist/esm/vendor/react-native/VirtualizedList/VirtualizedListProps.mjs +40 -0
- package/dist/esm/vendor/react-native/VirtualizedList/VirtualizedListProps.mjs.map +1 -0
- package/dist/esm/vendor/react-native/VirtualizedList/index.mjs +240 -0
- package/dist/esm/vendor/react-native/VirtualizedList/index.mjs.map +1 -0
- package/dist/esm/vendor/react-native/VirtualizedSectionList/index.mjs +95 -0
- package/dist/esm/vendor/react-native/VirtualizedSectionList/index.mjs.map +1 -0
- package/dist/esm/vendor/react-native/deepDiffer/index.mjs +18 -0
- package/dist/esm/vendor/react-native/deepDiffer/index.mjs.map +1 -0
- package/dist/esm/vendor/react-native/emitter/EventEmitter.mjs +4 -0
- package/dist/esm/vendor/react-native/emitter/EventEmitter.mjs.map +1 -0
- package/dist/esm/vendor/react-native/emitter/EventSubscription.mjs +2 -0
- package/dist/esm/vendor/react-native/emitter/EventSubscription.mjs.map +1 -0
- package/dist/esm/vendor/react-native/emitter/_EmitterSubscription.mjs +28 -0
- package/dist/esm/vendor/react-native/emitter/_EmitterSubscription.mjs.map +1 -0
- package/dist/esm/vendor/react-native/emitter/_EventEmitter.mjs +101 -0
- package/dist/esm/vendor/react-native/emitter/_EventEmitter.mjs.map +1 -0
- package/dist/esm/vendor/react-native/emitter/_EventSubscription.mjs +18 -0
- package/dist/esm/vendor/react-native/emitter/_EventSubscription.mjs.map +1 -0
- package/dist/esm/vendor/react-native/emitter/_EventSubscriptionVendor.mjs +56 -0
- package/dist/esm/vendor/react-native/emitter/_EventSubscriptionVendor.mjs.map +1 -0
- package/dist/esm/vendor/react-native/infoLog/index.mjs +6 -0
- package/dist/esm/vendor/react-native/infoLog/index.mjs.map +1 -0
- package/dist/esm/vendor/react-native/useRefEffect.mjs +10 -0
- package/dist/esm/vendor/react-native/useRefEffect.mjs.map +1 -0
- package/dist/esm/vendor/react-native/vendor/emitter/EventEmitter.mjs +62 -0
- package/dist/esm/vendor/react-native/vendor/emitter/EventEmitter.mjs.map +1 -0
- package/dist/esm/without-animated.mjs +219 -0
- package/dist/esm/without-animated.mjs.map +1 -0
- package/package.json +125 -0
- package/src/AccessibilityInfo/index.tsx +113 -0
- package/src/ActivityIndicator/__tests__/__snapshots__/index-test.js.snap +466 -0
- package/src/ActivityIndicator/__tests__/index-test.tsx +147 -0
- package/src/ActivityIndicator/index.tsx +116 -0
- package/src/Alert/index.tsx +12 -0
- package/src/AppRegistry/AppContainer.tsx +54 -0
- package/src/AppRegistry/__tests__/index-test.node.tsx +144 -0
- package/src/AppRegistry/__tests__/index-test.tsx +94 -0
- package/src/AppRegistry/index.tsx +156 -0
- package/src/AppRegistry/renderApplication.tsx +75 -0
- package/src/AppState/__tests__/index-test.tsx +24 -0
- package/src/AppState/index.tsx +92 -0
- package/src/Appearance/index.tsx +59 -0
- package/src/BackHandler/index.tsx +23 -0
- package/src/Clipboard/index.tsx +61 -0
- package/src/DeviceEmitter.ts +3 -0
- package/src/DeviceInfo/index.tsx +55 -0
- package/src/Dimensions/__tests__/index-test.tsx +54 -0
- package/src/Dimensions/index.tsx +129 -0
- package/src/FlatList.tsx +331 -0
- package/src/I18nManager/index.tsx +31 -0
- package/src/Image/index.tsx +401 -0
- package/src/Image/types.tsx +112 -0
- package/src/ImageBackground/__tests__/index-test.tsx +49 -0
- package/src/ImageBackground/index.tsx +66 -0
- package/src/InteractionManager/TaskQueue.tsx +112 -0
- package/src/InteractionManager/index.tsx +140 -0
- package/src/Keyboard/index.tsx +24 -0
- package/src/KeyboardAvoidingView/index.tsx +55 -0
- package/src/Libraries/Pressability/Pressability.ts +2 -0
- package/src/Libraries/Pressability/usePressability.ts +2 -0
- package/src/Linking/__tests__/index-test.tsx +37 -0
- package/src/Linking/index.tsx +113 -0
- package/src/LogBox/index.tsx +17 -0
- package/src/Modal/ModalAnimation.js +178 -0
- package/src/Modal/ModalContent.js +73 -0
- package/src/Modal/ModalPortal.js +40 -0
- package/src/Modal/index.js +1 -0
- package/src/NativeModules/index.tsx +15 -0
- package/src/PanResponder/Alternative.tsx +385 -0
- package/src/PanResponder/index.tsx +1 -0
- package/src/PixelRatio/index.tsx +49 -0
- package/src/Pressable/__tests__/__snapshots__/index-test.js.snap +196 -0
- package/src/Pressable/index.tsx +236 -0
- package/src/RefreshControl/index.tsx +50 -0
- package/src/SafeAreaView/index.tsx +48 -0
- package/src/ScrollView/ScrollViewBase.tsx +183 -0
- package/src/ScrollView/__tests__/__snapshots__/index-test.js.snap +49 -0
- package/src/ScrollView/index.tsx +892 -0
- package/src/SectionList.tsx +9 -0
- package/src/Share/index.tsx +69 -0
- package/src/StatusBar/index.tsx +22 -0
- package/src/Text/__tests__/__snapshots__/index-test.js.snap +218 -0
- package/src/Text/index.tsx +208 -0
- package/src/Text/types.tsx +96 -0
- package/src/TextInput/index.tsx +453 -0
- package/src/TextInput/types.tsx +74 -0
- package/src/TouchableNativeFeedback.tsx +8 -0
- package/src/TouchableOpacity.tsx +150 -0
- package/src/TouchableWithoutFeedback.tsx +95 -0
- package/src/UnimplementedView.tsx +13 -0
- package/src/Vibration/index.tsx +26 -0
- package/src/View/index.tsx +139 -0
- package/src/View/types.tsx +170 -0
- package/src/VirtualizedList.tsx +9 -0
- package/src/codegenNativeCommand.ts +6 -0
- package/src/codegenNativeComponent.ts +6 -0
- package/src/createElement/__tests__/__snapshots__/index-test.js.snap +13 -0
- package/src/createElement/__tests__/index-test.tsx +647 -0
- package/src/createElement/index.tsx +92 -0
- package/src/createReactDOMStyle.ts +4 -0
- package/src/index.tsx +111 -0
- package/src/modules/requestIdleCallback.ts +32 -0
- package/src/preprocess.ts +7 -0
- package/src/render/index.tsx +16 -0
- package/src/styleTypes.ts +321 -0
- package/src/types.ts +77 -0
- package/src/useColorScheme/index.tsx +28 -0
- package/src/useLocaleContext/index.tsx +10 -0
- package/src/useWindowDimensions/index.tsx +34 -0
- package/src/vendor/react-native/Animated/Animated.js +33 -0
- package/src/vendor/react-native/Animated/AnimatedEvent.js +199 -0
- package/src/vendor/react-native/Animated/AnimatedImplementation.js +649 -0
- package/src/vendor/react-native/Animated/AnimatedMock.js +155 -0
- package/src/vendor/react-native/Animated/AnimatedPlatformConfig.js +11 -0
- package/src/vendor/react-native/Animated/Easing.js +249 -0
- package/src/vendor/react-native/Animated/NativeAnimatedHelper.js +525 -0
- package/src/vendor/react-native/Animated/NativeAnimatedModule.js +57 -0
- package/src/vendor/react-native/Animated/NativeAnimatedTurboModule.js +53 -0
- package/src/vendor/react-native/Animated/SpringConfig.js +88 -0
- package/src/vendor/react-native/Animated/animations/Animation.js +66 -0
- package/src/vendor/react-native/Animated/animations/DecayAnimation.js +88 -0
- package/src/vendor/react-native/Animated/animations/SpringAnimation.js +291 -0
- package/src/vendor/react-native/Animated/animations/TimingAnimation.js +133 -0
- package/src/vendor/react-native/Animated/bezier.js +142 -0
- package/src/vendor/react-native/Animated/components/AnimatedFlatList.jsx +24 -0
- package/src/vendor/react-native/Animated/components/AnimatedImage.js +17 -0
- package/src/vendor/react-native/Animated/components/AnimatedScrollView.jsx +24 -0
- package/src/vendor/react-native/Animated/components/AnimatedSectionList.jsx +24 -0
- package/src/vendor/react-native/Animated/components/AnimatedText.js +15 -0
- package/src/vendor/react-native/Animated/components/AnimatedView.js +15 -0
- package/src/vendor/react-native/Animated/createAnimatedComponent.jsx +39 -0
- package/src/vendor/react-native/Animated/nodes/AnimatedAddition.js +60 -0
- package/src/vendor/react-native/Animated/nodes/AnimatedColor.js +293 -0
- package/src/vendor/react-native/Animated/nodes/AnimatedDiffClamp.js +67 -0
- package/src/vendor/react-native/Animated/nodes/AnimatedDivision.js +78 -0
- package/src/vendor/react-native/Animated/nodes/AnimatedInterpolation.jsx +327 -0
- package/src/vendor/react-native/Animated/nodes/AnimatedModulo.js +56 -0
- package/src/vendor/react-native/Animated/nodes/AnimatedMultiplication.js +59 -0
- package/src/vendor/react-native/Animated/nodes/AnimatedNode.js +190 -0
- package/src/vendor/react-native/Animated/nodes/AnimatedProps.js +160 -0
- package/src/vendor/react-native/Animated/nodes/AnimatedStyle.js +137 -0
- package/src/vendor/react-native/Animated/nodes/AnimatedSubtraction.js +60 -0
- package/src/vendor/react-native/Animated/nodes/AnimatedTracking.js +90 -0
- package/src/vendor/react-native/Animated/nodes/AnimatedTransform.js +122 -0
- package/src/vendor/react-native/Animated/nodes/AnimatedValue.js +292 -0
- package/src/vendor/react-native/Animated/nodes/AnimatedValueXY.js +108 -0
- package/src/vendor/react-native/Animated/nodes/AnimatedWithChildren.js +89 -0
- package/src/vendor/react-native/Animated/useAnimatedProps.js +173 -0
- package/src/vendor/react-native/Batchinator/index.js +77 -0
- package/src/vendor/react-native/EventEmitter/NativeEventEmitter.js +85 -0
- package/src/vendor/react-native/EventEmitter/RCTDeviceEventEmitter.js +22 -0
- package/src/vendor/react-native/FeatureFlags.js +8 -0
- package/src/vendor/react-native/FillRateHelper/index.js +213 -0
- package/src/vendor/react-native/FlatList/index.jsx +518 -0
- package/src/vendor/react-native/JSEventLoopWatchdog/index.js +85 -0
- package/src/vendor/react-native/LayoutAnimation/index.js +119 -0
- package/src/vendor/react-native/PanResponder/index.js +243 -0
- package/src/vendor/react-native/PooledClass/index.js +62 -0
- package/src/vendor/react-native/ReactNative/ReactNativeFeatureFlags.js +20 -0
- package/src/vendor/react-native/SHA +2 -0
- package/src/vendor/react-native/SectionList/index.jsx +100 -0
- package/src/vendor/react-native/StaticContainer/index.js +43 -0
- package/src/vendor/react-native/StaticRenderer/index.js +26 -0
- package/src/vendor/react-native/TouchHistoryMath/index.js +137 -0
- package/src/vendor/react-native/TurboModule/RCTExport.js +37 -0
- package/src/vendor/react-native/TurboModule/TurboModuleRegistry.js +27 -0
- package/src/vendor/react-native/Types/CoreEventTypes.js +151 -0
- package/src/vendor/react-native/Utilities/Platform.js +3 -0
- package/src/vendor/react-native/Utilities/clamp.js +24 -0
- package/src/vendor/react-native/Utilities/setAndForwardRef.js +62 -0
- package/src/vendor/react-native/Utilities/useMergeRefs.js +40 -0
- package/src/vendor/react-native/Utilities/useRefEffect.js +44 -0
- package/src/vendor/react-native/ViewabilityHelper/index.js +251 -0
- package/src/vendor/react-native/ViewabilityHelper.ts +293 -0
- package/src/vendor/react-native/VirtualizeUtils/index.js +204 -0
- package/src/vendor/react-native/VirtualizedList/CellRenderMask.js +135 -0
- package/src/vendor/react-native/VirtualizedList/ChildListCollection.js +75 -0
- package/src/vendor/react-native/VirtualizedList/StateSafePureComponent.js +82 -0
- package/src/vendor/react-native/VirtualizedList/VirtualizedListCellRenderer.jsx +184 -0
- package/src/vendor/react-native/VirtualizedList/VirtualizedListContext.jsx +96 -0
- package/src/vendor/react-native/VirtualizedList/VirtualizedListProps.js +46 -0
- package/src/vendor/react-native/VirtualizedList/index.jsx +378 -0
- package/src/vendor/react-native/VirtualizedSectionList/index.jsx +149 -0
- package/src/vendor/react-native/deepDiffer/index.js +69 -0
- package/src/vendor/react-native/emitter/EventEmitter.js +14 -0
- package/src/vendor/react-native/emitter/EventSubscription.js +12 -0
- package/src/vendor/react-native/emitter/_EmitterSubscription.js +47 -0
- package/src/vendor/react-native/emitter/_EventEmitter.js +175 -0
- package/src/vendor/react-native/emitter/_EventSubscription.js +34 -0
- package/src/vendor/react-native/emitter/_EventSubscriptionVendor.js +96 -0
- package/src/vendor/react-native/infoLog/index.js +21 -0
- package/src/vendor/react-native/useRefEffect.js +44 -0
- package/src/vendor/react-native/vendor/emitter/EventEmitter.js +121 -0
- package/src/without-animated.tsx +288 -0
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all) __defProp(target, name, {
|
|
9
|
+
get: all[name],
|
|
10
|
+
enumerable: !0
|
|
11
|
+
});
|
|
12
|
+
},
|
|
13
|
+
__copyProps = (to, from, except, desc) => {
|
|
14
|
+
if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
|
|
15
|
+
get: () => from[key],
|
|
16
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
17
|
+
});
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
21
|
+
value: !0
|
|
22
|
+
}), mod);
|
|
23
|
+
var AnimatedEvent_exports = {};
|
|
24
|
+
__export(AnimatedEvent_exports, {
|
|
25
|
+
AnimatedEvent: () => AnimatedEvent,
|
|
26
|
+
attachNativeEvent: () => attachNativeEvent
|
|
27
|
+
});
|
|
28
|
+
module.exports = __toCommonJS(AnimatedEvent_exports);
|
|
29
|
+
var import_AnimatedValue = require("./nodes/AnimatedValue.cjs"),
|
|
30
|
+
import_NativeAnimatedHelper = require("./NativeAnimatedHelper.cjs"),
|
|
31
|
+
import_react_native_web_internals = require("@hanzogui/react-native-web-internals"),
|
|
32
|
+
import_NativeAnimatedHelper2 = require("./NativeAnimatedHelper.cjs");
|
|
33
|
+
const __DEV__ = process.env.NODE_ENV !== "production";
|
|
34
|
+
function attachNativeEvent(viewRef, eventName, argMapping) {
|
|
35
|
+
const eventMappings = [],
|
|
36
|
+
traverse = (value, path) => {
|
|
37
|
+
if (value instanceof import_AnimatedValue.AnimatedValue) value.__makeNative(), eventMappings.push({
|
|
38
|
+
nativeEventPath: path,
|
|
39
|
+
animatedValueTag: value.__getNativeTag()
|
|
40
|
+
});else if (typeof value == "object") for (const key in value) traverse(value[key], path.concat(key));
|
|
41
|
+
};
|
|
42
|
+
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 => {
|
|
43
|
+
import_NativeAnimatedHelper.NativeAnimatedHelper.API.addAnimatedEventToView(viewRef, eventName, mapping);
|
|
44
|
+
}), {
|
|
45
|
+
detach() {
|
|
46
|
+
viewRef != null && eventMappings.forEach(mapping => {
|
|
47
|
+
import_NativeAnimatedHelper.NativeAnimatedHelper.API.removeAnimatedEventFromView(viewRef, eventName, mapping.animatedValueTag);
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
function validateMapping(argMapping, args) {
|
|
53
|
+
const validate = (recMapping, recEvt, key) => {
|
|
54
|
+
if (recMapping instanceof import_AnimatedValue.AnimatedValue) {
|
|
55
|
+
(0, import_react_native_web_internals.invariant)(typeof recEvt == "number", "Bad mapping of event key " + key + ", should be number but got " + typeof recEvt);
|
|
56
|
+
return;
|
|
57
|
+
}
|
|
58
|
+
if (typeof recEvt == "number") {
|
|
59
|
+
(0, import_react_native_web_internals.invariant)(recMapping instanceof import_AnimatedValue.AnimatedValue, "Bad mapping of type " + typeof recMapping + " for key " + key + ", event value must map to AnimatedValue");
|
|
60
|
+
return;
|
|
61
|
+
}
|
|
62
|
+
(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);
|
|
63
|
+
for (const mappingKey in recMapping) validate(recMapping[mappingKey], recEvt[mappingKey], mappingKey);
|
|
64
|
+
};
|
|
65
|
+
(0, import_react_native_web_internals.invariant)(args.length >= argMapping.length, "Event has less arguments than mapping"), argMapping.forEach((mapping, idx) => {
|
|
66
|
+
validate(mapping, args[idx], "arg" + idx);
|
|
67
|
+
});
|
|
68
|
+
}
|
|
69
|
+
class AnimatedEvent {
|
|
70
|
+
_argMapping;
|
|
71
|
+
_listeners = [];
|
|
72
|
+
_attachedEvent;
|
|
73
|
+
__isNative;
|
|
74
|
+
constructor(argMapping, config) {
|
|
75
|
+
this._argMapping = argMapping, config == null && (console.warn("Animated.event now requires a second argument for options"), config = {
|
|
76
|
+
useNativeDriver: !1
|
|
77
|
+
}), config.listener && this.__addListener(config.listener), this._callListeners = this._callListeners.bind(this), this._attachedEvent = null, this.__isNative = (0, import_NativeAnimatedHelper2.shouldUseNativeDriver)(config);
|
|
78
|
+
}
|
|
79
|
+
__addListener(callback) {
|
|
80
|
+
this._listeners.push(callback);
|
|
81
|
+
}
|
|
82
|
+
__removeListener(callback) {
|
|
83
|
+
this._listeners = this._listeners.filter(listener => listener !== callback);
|
|
84
|
+
}
|
|
85
|
+
__attach(viewRef, eventName) {
|
|
86
|
+
(0, import_react_native_web_internals.invariant)(this.__isNative, "Only native driven events need to be attached."), this._attachedEvent = attachNativeEvent(viewRef, eventName, this._argMapping);
|
|
87
|
+
}
|
|
88
|
+
__detach(viewTag, eventName) {
|
|
89
|
+
(0, import_react_native_web_internals.invariant)(this.__isNative, "Only native driven events need to be detached."), this._attachedEvent && this._attachedEvent.detach();
|
|
90
|
+
}
|
|
91
|
+
__getHandler() {
|
|
92
|
+
if (this.__isNative) if (__DEV__) {
|
|
93
|
+
let validatedMapping2 = !1;
|
|
94
|
+
return (...args) => {
|
|
95
|
+
validatedMapping2 || (validateMapping(this._argMapping, args), validatedMapping2 = !0), this._callListeners(...args);
|
|
96
|
+
};
|
|
97
|
+
} else return this._callListeners;
|
|
98
|
+
let validatedMapping = !1;
|
|
99
|
+
return (...args) => {
|
|
100
|
+
__DEV__ && !validatedMapping && (validateMapping(this._argMapping, args), validatedMapping = !0);
|
|
101
|
+
const traverse = (recMapping, recEvt, key) => {
|
|
102
|
+
if (recMapping instanceof import_AnimatedValue.AnimatedValue) typeof recEvt == "number" && recMapping.setValue(recEvt);else if (typeof recMapping == "object") for (const mappingKey in recMapping) traverse(recMapping[mappingKey], recEvt[mappingKey], mappingKey);
|
|
103
|
+
};
|
|
104
|
+
this._argMapping.forEach((mapping, idx) => {
|
|
105
|
+
traverse(mapping, args[idx], "arg" + idx);
|
|
106
|
+
}), this._callListeners(...args);
|
|
107
|
+
};
|
|
108
|
+
}
|
|
109
|
+
_callListeners(...args) {
|
|
110
|
+
this._listeners.forEach(listener => listener(...args));
|
|
111
|
+
}
|
|
112
|
+
}
|
|
@@ -0,0 +1,508 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all) __defProp(target, name, {
|
|
9
|
+
get: all[name],
|
|
10
|
+
enumerable: !0
|
|
11
|
+
});
|
|
12
|
+
},
|
|
13
|
+
__copyProps = (to, from, except, desc) => {
|
|
14
|
+
if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
|
|
15
|
+
get: () => from[key],
|
|
16
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
17
|
+
});
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
21
|
+
value: !0
|
|
22
|
+
}), mod);
|
|
23
|
+
var AnimatedImplementation_exports = {};
|
|
24
|
+
__export(AnimatedImplementation_exports, {
|
|
25
|
+
AnimatedImplementation: () => AnimatedImplementationExports,
|
|
26
|
+
AnimatedImplementationExports: () => AnimatedImplementationExports,
|
|
27
|
+
default: () => AnimatedImplementation_default
|
|
28
|
+
});
|
|
29
|
+
module.exports = __toCommonJS(AnimatedImplementation_exports);
|
|
30
|
+
var import_AnimatedEvent = require("./AnimatedEvent.cjs"),
|
|
31
|
+
import_AnimatedAddition = require("./nodes/AnimatedAddition.cjs"),
|
|
32
|
+
import_AnimatedDiffClamp = require("./nodes/AnimatedDiffClamp.cjs"),
|
|
33
|
+
import_AnimatedDivision = require("./nodes/AnimatedDivision.cjs"),
|
|
34
|
+
import_AnimatedInterpolation = require("./nodes/AnimatedInterpolation.cjs"),
|
|
35
|
+
import_AnimatedModulo = require("./nodes/AnimatedModulo.cjs"),
|
|
36
|
+
import_AnimatedMultiplication = require("./nodes/AnimatedMultiplication.cjs"),
|
|
37
|
+
import_AnimatedNode = require("./nodes/AnimatedNode.cjs"),
|
|
38
|
+
import_AnimatedProps = require("./nodes/AnimatedProps.cjs"),
|
|
39
|
+
import_AnimatedSubtraction = require("./nodes/AnimatedSubtraction.cjs"),
|
|
40
|
+
import_AnimatedTracking = require("./nodes/AnimatedTracking.cjs"),
|
|
41
|
+
import_AnimatedValue = require("./nodes/AnimatedValue.cjs"),
|
|
42
|
+
import_AnimatedValueXY = require("./nodes/AnimatedValueXY.cjs"),
|
|
43
|
+
import_DecayAnimation = require("./animations/DecayAnimation.cjs"),
|
|
44
|
+
import_SpringAnimation = require("./animations/SpringAnimation.cjs"),
|
|
45
|
+
import_TimingAnimation = require("./animations/TimingAnimation.cjs"),
|
|
46
|
+
import_createAnimatedComponent = require("./createAnimatedComponent.cjs"),
|
|
47
|
+
import_Animation = require("./animations/Animation.cjs"),
|
|
48
|
+
import_AnimatedColor = require("./nodes/AnimatedColor.cjs");
|
|
49
|
+
const add = function (a, b) {
|
|
50
|
+
return new import_AnimatedAddition.AnimatedAddition(a, b);
|
|
51
|
+
},
|
|
52
|
+
subtract = function (a, b) {
|
|
53
|
+
return new import_AnimatedSubtraction.AnimatedSubtraction(a, b);
|
|
54
|
+
},
|
|
55
|
+
divide = function (a, b) {
|
|
56
|
+
return new import_AnimatedDivision.AnimatedDivision(a, b);
|
|
57
|
+
},
|
|
58
|
+
multiply = function (a, b) {
|
|
59
|
+
return new import_AnimatedMultiplication.AnimatedMultiplication(a, b);
|
|
60
|
+
},
|
|
61
|
+
modulo = function (a, modulus) {
|
|
62
|
+
return new import_AnimatedModulo.AnimatedModulo(a, modulus);
|
|
63
|
+
},
|
|
64
|
+
diffClamp = function (a, min, max) {
|
|
65
|
+
return new import_AnimatedDiffClamp.AnimatedDiffClamp(a, min, max);
|
|
66
|
+
},
|
|
67
|
+
_combineCallbacks = function (callback, config) {
|
|
68
|
+
return callback && config.onComplete ? (...args) => {
|
|
69
|
+
config.onComplete && config.onComplete(...args), callback && callback(...args);
|
|
70
|
+
} : callback || config.onComplete;
|
|
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);
|
|
130
|
+
};
|
|
131
|
+
return maybeVectorAnim(value, config, spring) || {
|
|
132
|
+
start: function (callback) {
|
|
133
|
+
start(value, config, callback);
|
|
134
|
+
},
|
|
135
|
+
stop: function () {
|
|
136
|
+
value.stopAnimation();
|
|
137
|
+
},
|
|
138
|
+
reset: function () {
|
|
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
|
+
}
|
|
151
|
+
};
|
|
152
|
+
},
|
|
153
|
+
timing = function (value, config) {
|
|
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);
|
|
159
|
+
};
|
|
160
|
+
return maybeVectorAnim(value, config, timing) || {
|
|
161
|
+
start: function (callback) {
|
|
162
|
+
start(value, config, callback);
|
|
163
|
+
},
|
|
164
|
+
stop: function () {
|
|
165
|
+
value.stopAnimation();
|
|
166
|
+
},
|
|
167
|
+
reset: function () {
|
|
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;
|
|
179
|
+
}
|
|
180
|
+
};
|
|
181
|
+
},
|
|
182
|
+
decay = function (value, config) {
|
|
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);
|
|
188
|
+
};
|
|
189
|
+
return maybeVectorAnim(value, config, decay) || {
|
|
190
|
+
start: function (callback) {
|
|
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
|
+
}
|
|
209
|
+
};
|
|
210
|
+
},
|
|
211
|
+
sequence = function (animations) {
|
|
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
|
+
}
|
|
244
|
+
};
|
|
245
|
+
},
|
|
246
|
+
parallel = function (animations, config) {
|
|
247
|
+
let doneCount = 0;
|
|
248
|
+
const hasEnded = {},
|
|
249
|
+
stopTogether = !(config && config.stopTogether === !1),
|
|
250
|
+
result = {
|
|
251
|
+
start: function (callback) {
|
|
252
|
+
if (doneCount === animations.length) {
|
|
253
|
+
callback && callback({
|
|
254
|
+
finished: !0
|
|
255
|
+
});
|
|
256
|
+
return;
|
|
257
|
+
}
|
|
258
|
+
animations.forEach((animation, idx) => {
|
|
259
|
+
const cb = function (endResult) {
|
|
260
|
+
if (hasEnded[idx] = !0, doneCount++, doneCount === animations.length) {
|
|
261
|
+
doneCount = 0, callback && callback(endResult);
|
|
262
|
+
return;
|
|
263
|
+
}
|
|
264
|
+
!endResult.finished && stopTogether && result.stop();
|
|
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;
|
|
279
|
+
});
|
|
280
|
+
},
|
|
281
|
+
_startNativeLoop: function () {
|
|
282
|
+
throw new Error("Loops run using the native driver cannot contain Animated.parallel animations");
|
|
283
|
+
},
|
|
284
|
+
_isUsingNativeDriver: function () {
|
|
285
|
+
return !1;
|
|
286
|
+
}
|
|
287
|
+
};
|
|
288
|
+
return result;
|
|
289
|
+
},
|
|
290
|
+
delay = function (time) {
|
|
291
|
+
return timing(new import_AnimatedValue.AnimatedValue(0), {
|
|
292
|
+
toValue: 0,
|
|
293
|
+
delay: time,
|
|
294
|
+
duration: 0,
|
|
295
|
+
useNativeDriver: !1
|
|
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();
|
|
329
|
+
}
|
|
330
|
+
};
|
|
331
|
+
};
|
|
332
|
+
function forkEvent(event2, listener) {
|
|
333
|
+
return event2 ? event2 instanceof import_AnimatedEvent.AnimatedEvent ? (event2.__addListener(listener), event2) : (...args) => {
|
|
334
|
+
typeof event2 == "function" && event2(...args), listener(...args);
|
|
335
|
+
} : listener;
|
|
336
|
+
}
|
|
337
|
+
function unforkEvent(event2, listener) {
|
|
338
|
+
event2 && event2 instanceof import_AnimatedEvent.AnimatedEvent && event2.__removeListener(listener);
|
|
339
|
+
}
|
|
340
|
+
const event = function (argMapping, config) {
|
|
341
|
+
const animatedEvent = new import_AnimatedEvent.AnimatedEvent(argMapping, config);
|
|
342
|
+
return animatedEvent.__isNative ? animatedEvent : animatedEvent.__getHandler();
|
|
343
|
+
},
|
|
344
|
+
AnimatedImplementationExports = {
|
|
345
|
+
/**
|
|
346
|
+
* Standard value class for driving animations. Typically initialized with
|
|
347
|
+
* `new Animated.Value(0);`
|
|
348
|
+
*
|
|
349
|
+
* See https://reactnative.dev/docs/animated#value
|
|
350
|
+
*/
|
|
351
|
+
Value: import_AnimatedValue.AnimatedValue,
|
|
352
|
+
/**
|
|
353
|
+
* 2D value class for driving 2D animations, such as pan gestures.
|
|
354
|
+
*
|
|
355
|
+
* See https://reactnative.dev/docs/animatedvaluexy
|
|
356
|
+
*/
|
|
357
|
+
ValueXY: import_AnimatedValueXY.AnimatedValueXY,
|
|
358
|
+
/**
|
|
359
|
+
* Value class for driving color animations.
|
|
360
|
+
*/
|
|
361
|
+
Color: import_AnimatedColor.AnimatedColor,
|
|
362
|
+
/**
|
|
363
|
+
* Exported to use the Interpolation type in flow.
|
|
364
|
+
*
|
|
365
|
+
* See https://reactnative.dev/docs/animated#interpolation
|
|
366
|
+
*/
|
|
367
|
+
Interpolation: import_AnimatedInterpolation.AnimatedInterpolation,
|
|
368
|
+
/**
|
|
369
|
+
* Exported for ease of type checking. All animated values derive from this
|
|
370
|
+
* class.
|
|
371
|
+
*
|
|
372
|
+
* See https://reactnative.dev/docs/animated#node
|
|
373
|
+
*/
|
|
374
|
+
Node: import_AnimatedNode.AnimatedNode,
|
|
375
|
+
/**
|
|
376
|
+
* Animates a value from an initial velocity to zero based on a decay
|
|
377
|
+
* coefficient.
|
|
378
|
+
*
|
|
379
|
+
* See https://reactnative.dev/docs/animated#decay
|
|
380
|
+
*/
|
|
381
|
+
decay,
|
|
382
|
+
/**
|
|
383
|
+
* Animates a value along a timed easing curve. The Easing module has tons of
|
|
384
|
+
* predefined curves, or you can use your own function.
|
|
385
|
+
*
|
|
386
|
+
* See https://reactnative.dev/docs/animated#timing
|
|
387
|
+
*/
|
|
388
|
+
timing,
|
|
389
|
+
/**
|
|
390
|
+
* Animates a value according to an analytical spring model based on
|
|
391
|
+
* damped harmonic oscillation.
|
|
392
|
+
*
|
|
393
|
+
* See https://reactnative.dev/docs/animated#spring
|
|
394
|
+
*/
|
|
395
|
+
spring,
|
|
396
|
+
/**
|
|
397
|
+
* Creates a new Animated value composed from two Animated values added
|
|
398
|
+
* together.
|
|
399
|
+
*
|
|
400
|
+
* See https://reactnative.dev/docs/animated#add
|
|
401
|
+
*/
|
|
402
|
+
add,
|
|
403
|
+
/**
|
|
404
|
+
* Creates a new Animated value composed by subtracting the second Animated
|
|
405
|
+
* value from the first Animated value.
|
|
406
|
+
*
|
|
407
|
+
* See https://reactnative.dev/docs/animated#subtract
|
|
408
|
+
*/
|
|
409
|
+
subtract,
|
|
410
|
+
/**
|
|
411
|
+
* Creates a new Animated value composed by dividing the first Animated value
|
|
412
|
+
* by the second Animated value.
|
|
413
|
+
*
|
|
414
|
+
* See https://reactnative.dev/docs/animated#divide
|
|
415
|
+
*/
|
|
416
|
+
divide,
|
|
417
|
+
/**
|
|
418
|
+
* Creates a new Animated value composed from two Animated values multiplied
|
|
419
|
+
* together.
|
|
420
|
+
*
|
|
421
|
+
* See https://reactnative.dev/docs/animated#multiply
|
|
422
|
+
*/
|
|
423
|
+
multiply,
|
|
424
|
+
/**
|
|
425
|
+
* Creates a new Animated value that is the (non-negative) modulo of the
|
|
426
|
+
* provided Animated value.
|
|
427
|
+
*
|
|
428
|
+
* See https://reactnative.dev/docs/animated#modulo
|
|
429
|
+
*/
|
|
430
|
+
modulo,
|
|
431
|
+
/**
|
|
432
|
+
* Create a new Animated value that is limited between 2 values. It uses the
|
|
433
|
+
* difference between the last value so even if the value is far from the
|
|
434
|
+
* bounds it will start changing when the value starts getting closer again.
|
|
435
|
+
*
|
|
436
|
+
* See https://reactnative.dev/docs/animated#diffclamp
|
|
437
|
+
*/
|
|
438
|
+
diffClamp,
|
|
439
|
+
/**
|
|
440
|
+
* Starts an animation after the given delay.
|
|
441
|
+
*
|
|
442
|
+
* See https://reactnative.dev/docs/animated#delay
|
|
443
|
+
*/
|
|
444
|
+
delay,
|
|
445
|
+
/**
|
|
446
|
+
* Starts an array of animations in order, waiting for each to complete
|
|
447
|
+
* before starting the next. If the current running animation is stopped, no
|
|
448
|
+
* following animations will be started.
|
|
449
|
+
*
|
|
450
|
+
* See https://reactnative.dev/docs/animated#sequence
|
|
451
|
+
*/
|
|
452
|
+
sequence,
|
|
453
|
+
/**
|
|
454
|
+
* Starts an array of animations all at the same time. By default, if one
|
|
455
|
+
* of the animations is stopped, they will all be stopped. You can override
|
|
456
|
+
* this with the `stopTogether` flag.
|
|
457
|
+
*
|
|
458
|
+
* See https://reactnative.dev/docs/animated#parallel
|
|
459
|
+
*/
|
|
460
|
+
parallel,
|
|
461
|
+
/**
|
|
462
|
+
* Array of animations may run in parallel (overlap), but are started in
|
|
463
|
+
* sequence with successive delays. Nice for doing trailing effects.
|
|
464
|
+
*
|
|
465
|
+
* See https://reactnative.dev/docs/animated#stagger
|
|
466
|
+
*/
|
|
467
|
+
stagger,
|
|
468
|
+
/**
|
|
469
|
+
* Loops a given animation continuously, so that each time it reaches the
|
|
470
|
+
* end, it resets and begins again from the start.
|
|
471
|
+
*
|
|
472
|
+
* See https://reactnative.dev/docs/animated#loop
|
|
473
|
+
*/
|
|
474
|
+
loop,
|
|
475
|
+
/**
|
|
476
|
+
* Takes an array of mappings and extracts values from each arg accordingly,
|
|
477
|
+
* then calls `setValue` on the mapped outputs.
|
|
478
|
+
*
|
|
479
|
+
* See https://reactnative.dev/docs/animated#event
|
|
480
|
+
*/
|
|
481
|
+
event,
|
|
482
|
+
/**
|
|
483
|
+
* Make any React component Animatable. Used to create `Animated.View`, etc.
|
|
484
|
+
*
|
|
485
|
+
* See https://reactnative.dev/docs/animated#createanimatedcomponent
|
|
486
|
+
*/
|
|
487
|
+
createAnimatedComponent: import_createAnimatedComponent.createAnimatedComponent,
|
|
488
|
+
/**
|
|
489
|
+
* Imperative API to attach an animated value to an event on a view. Prefer
|
|
490
|
+
* using `Animated.event` with `useNativeDrive: true` if possible.
|
|
491
|
+
*
|
|
492
|
+
* See https://reactnative.dev/docs/animated#attachnativeevent
|
|
493
|
+
*/
|
|
494
|
+
attachNativeEvent: import_AnimatedEvent.attachNativeEvent,
|
|
495
|
+
/**
|
|
496
|
+
* Advanced imperative API for snooping on animated events that are passed in
|
|
497
|
+
* through props. Use values directly where possible.
|
|
498
|
+
*
|
|
499
|
+
* See https://reactnative.dev/docs/animated#forkevent
|
|
500
|
+
*/
|
|
501
|
+
forkEvent,
|
|
502
|
+
unforkEvent,
|
|
503
|
+
/**
|
|
504
|
+
* Expose Event class, so it can be used as a type for type checkers.
|
|
505
|
+
*/
|
|
506
|
+
Event: import_AnimatedEvent.AnimatedEvent
|
|
507
|
+
};
|
|
508
|
+
var AnimatedImplementation_default = AnimatedImplementationExports;
|