@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,525 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*
|
|
7
|
+
* @format
|
|
8
|
+
* @format
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
import { NativeAnimatedNonTurboModule } from './NativeAnimatedModule'
|
|
12
|
+
import { NativeAnimatedTurboModule } from './NativeAnimatedTurboModule'
|
|
13
|
+
import { NativeEventEmitter } from '../EventEmitter/NativeEventEmitter'
|
|
14
|
+
import { Platform } from '../Utilities/Platform'
|
|
15
|
+
import { ReactNativeFeatureFlags } from '../ReactNative/ReactNativeFeatureFlags'
|
|
16
|
+
import { invariant } from '@hanzogui/react-native-web-internals'
|
|
17
|
+
import { RCTDeviceEventEmitter } from '../EventEmitter/RCTDeviceEventEmitter'
|
|
18
|
+
|
|
19
|
+
// TODO T69437152 @petetheheat - Delete this fork when Fabric ships to 100%.
|
|
20
|
+
const NativeAnimatedModule =
|
|
21
|
+
Platform.OS === 'ios' && global.RN$Bridgeless === true
|
|
22
|
+
? NativeAnimatedTurboModule
|
|
23
|
+
: NativeAnimatedNonTurboModule
|
|
24
|
+
|
|
25
|
+
let __nativeAnimatedNodeTagCount = 1 /* used for animated nodes */
|
|
26
|
+
let __nativeAnimationIdCount = 1 /* used for started animations */
|
|
27
|
+
|
|
28
|
+
let nativeEventEmitter
|
|
29
|
+
|
|
30
|
+
let waitingForQueuedOperations = new Set()
|
|
31
|
+
let queueOperations = false
|
|
32
|
+
let queue = []
|
|
33
|
+
let singleOpQueue = []
|
|
34
|
+
|
|
35
|
+
const useSingleOpBatching = false
|
|
36
|
+
Platform.OS === 'android' &&
|
|
37
|
+
!!NativeAnimatedModule?.queueAndExecuteBatchedOperations &&
|
|
38
|
+
ReactNativeFeatureFlags.animatedShouldUseSingleOp()
|
|
39
|
+
let flushQueueTimeout = null
|
|
40
|
+
|
|
41
|
+
const eventListenerGetValueCallbacks = {}
|
|
42
|
+
const eventListenerAnimationFinishedCallbacks = {}
|
|
43
|
+
let globalEventEmitterGetValueListener = null
|
|
44
|
+
let globalEventEmitterAnimationFinishedListener = null
|
|
45
|
+
|
|
46
|
+
const nativeOps = useSingleOpBatching
|
|
47
|
+
? (function () {
|
|
48
|
+
const apis = [
|
|
49
|
+
'createAnimatedNode', // 1
|
|
50
|
+
'updateAnimatedNodeConfig', // 2
|
|
51
|
+
'getValue', // 3
|
|
52
|
+
'startListeningToAnimatedNodeValue', // 4
|
|
53
|
+
'stopListeningToAnimatedNodeValue', // 5
|
|
54
|
+
'connectAnimatedNodes', // 6
|
|
55
|
+
'disconnectAnimatedNodes', // 7
|
|
56
|
+
'startAnimatingNode', // 8
|
|
57
|
+
'stopAnimation', // 9
|
|
58
|
+
'setAnimatedNodeValue', // 10
|
|
59
|
+
'setAnimatedNodeOffset', // 11
|
|
60
|
+
'flattenAnimatedNodeOffset', // 12
|
|
61
|
+
'extractAnimatedNodeOffset', // 13
|
|
62
|
+
'connectAnimatedNodeToView', // 14
|
|
63
|
+
'disconnectAnimatedNodeFromView', // 15
|
|
64
|
+
'restoreDefaultValues', // 16
|
|
65
|
+
'dropAnimatedNode', // 17
|
|
66
|
+
'addAnimatedEventToView', // 18
|
|
67
|
+
'removeAnimatedEventFromView', // 19
|
|
68
|
+
'addListener', // 20
|
|
69
|
+
'removeListener', // 21
|
|
70
|
+
]
|
|
71
|
+
return apis.reduce((acc, functionName, i) => {
|
|
72
|
+
// These indices need to be kept in sync with the indices in native (see NativeAnimatedModule in Java, or the equivalent for any other native platform).
|
|
73
|
+
acc[functionName] = i + 1
|
|
74
|
+
return acc
|
|
75
|
+
}, {})
|
|
76
|
+
})()
|
|
77
|
+
: NativeAnimatedModule
|
|
78
|
+
|
|
79
|
+
/**
|
|
80
|
+
* Wrappers around NativeAnimatedModule to provide flow and autocomplete support for
|
|
81
|
+
* the native module methods, and automatic queue management on Android
|
|
82
|
+
*/
|
|
83
|
+
const API = {
|
|
84
|
+
getValue: function (tag, saveValueCallback) {
|
|
85
|
+
invariant(nativeOps, 'Native animated module is not available')
|
|
86
|
+
if (useSingleOpBatching) {
|
|
87
|
+
if (saveValueCallback) {
|
|
88
|
+
eventListenerGetValueCallbacks[tag] = saveValueCallback
|
|
89
|
+
}
|
|
90
|
+
API.queueOperation(nativeOps.getValue, tag)
|
|
91
|
+
} else {
|
|
92
|
+
API.queueOperation(nativeOps.getValue, tag, saveValueCallback)
|
|
93
|
+
}
|
|
94
|
+
},
|
|
95
|
+
setWaitingForIdentifier: function (id) {
|
|
96
|
+
waitingForQueuedOperations.add(id)
|
|
97
|
+
queueOperations = true
|
|
98
|
+
if (ReactNativeFeatureFlags.animatedShouldDebounceQueueFlush() && flushQueueTimeout) {
|
|
99
|
+
clearTimeout(flushQueueTimeout)
|
|
100
|
+
}
|
|
101
|
+
},
|
|
102
|
+
unsetWaitingForIdentifier: function (id) {
|
|
103
|
+
waitingForQueuedOperations.delete(id)
|
|
104
|
+
|
|
105
|
+
if (waitingForQueuedOperations.size === 0) {
|
|
106
|
+
queueOperations = false
|
|
107
|
+
API.disableQueue()
|
|
108
|
+
}
|
|
109
|
+
},
|
|
110
|
+
disableQueue: function () {
|
|
111
|
+
invariant(nativeOps, 'Native animated module is not available')
|
|
112
|
+
|
|
113
|
+
if (ReactNativeFeatureFlags.animatedShouldDebounceQueueFlush()) {
|
|
114
|
+
const prevTimeout = flushQueueTimeout
|
|
115
|
+
clearImmediate(prevTimeout)
|
|
116
|
+
flushQueueTimeout = setImmediate(API.flushQueue)
|
|
117
|
+
} else {
|
|
118
|
+
API.flushQueue()
|
|
119
|
+
}
|
|
120
|
+
},
|
|
121
|
+
flushQueue: function () {
|
|
122
|
+
/*
|
|
123
|
+
invariant(NativeAnimatedModule, 'Native animated module is not available');
|
|
124
|
+
flushQueueTimeout = null;
|
|
125
|
+
|
|
126
|
+
// Early returns before calling any APIs
|
|
127
|
+
if (useSingleOpBatching && singleOpQueue.length === 0) {
|
|
128
|
+
return;
|
|
129
|
+
}
|
|
130
|
+
if (!useSingleOpBatching && queue.length === 0) {
|
|
131
|
+
return;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
if (useSingleOpBatching) {
|
|
135
|
+
// Set up event listener for callbacks if it's not set up
|
|
136
|
+
if (
|
|
137
|
+
!globalEventEmitterGetValueListener ||
|
|
138
|
+
!globalEventEmitterAnimationFinishedListener
|
|
139
|
+
) {
|
|
140
|
+
setupGlobalEventEmitterListeners();
|
|
141
|
+
}
|
|
142
|
+
// Single op batching doesn't use callback functions, instead we
|
|
143
|
+
// use RCTDeviceEventEmitter. This reduces overhead of sending lots of
|
|
144
|
+
// JSI functions across to native code; but also, TM infrastructure currently
|
|
145
|
+
// does not support packing a function into native arrays.
|
|
146
|
+
NativeAnimatedModule.queueAndExecuteBatchedOperations?.(singleOpQueue);
|
|
147
|
+
singleOpQueue.length = 0;
|
|
148
|
+
} else {
|
|
149
|
+
Platform.OS === 'android' && NativeAnimatedModule.startOperationBatch?.();
|
|
150
|
+
for (let q = 0, l = queue.length; q < l; q++) {
|
|
151
|
+
queue[q]();
|
|
152
|
+
}
|
|
153
|
+
queue.length = 0;
|
|
154
|
+
Platform.OS === 'android' &&
|
|
155
|
+
NativeAnimatedModule.finishOperationBatch?.();
|
|
156
|
+
}
|
|
157
|
+
*/
|
|
158
|
+
},
|
|
159
|
+
queueOperation: (fn, ...args) => {
|
|
160
|
+
if (useSingleOpBatching) {
|
|
161
|
+
// Get the command ID from the queued function, and push that ID and any arguments needed to execute the operation
|
|
162
|
+
singleOpQueue.push(fn, ...args)
|
|
163
|
+
return
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
// If queueing is explicitly on, *or* the queue has not yet
|
|
167
|
+
// been flushed, use the queue. This is to prevent operations
|
|
168
|
+
// from being executed out of order.
|
|
169
|
+
if (queueOperations || queue.length !== 0) {
|
|
170
|
+
queue.push(() => fn(...args))
|
|
171
|
+
} else {
|
|
172
|
+
fn(...args)
|
|
173
|
+
}
|
|
174
|
+
},
|
|
175
|
+
createAnimatedNode: function (tag, config) {
|
|
176
|
+
invariant(nativeOps, 'Native animated module is not available')
|
|
177
|
+
API.queueOperation(nativeOps.createAnimatedNode, tag, config)
|
|
178
|
+
},
|
|
179
|
+
updateAnimatedNodeConfig: function (tag, config) {
|
|
180
|
+
invariant(nativeOps, 'Native animated module is not available')
|
|
181
|
+
//if (nativeOps.updateAnimatedNodeConfig) {
|
|
182
|
+
// API.queueOperation(nativeOps.updateAnimatedNodeConfig, tag, config);
|
|
183
|
+
//}
|
|
184
|
+
},
|
|
185
|
+
startListeningToAnimatedNodeValue: function (tag) {
|
|
186
|
+
invariant(nativeOps, 'Native animated module is not available')
|
|
187
|
+
API.queueOperation(nativeOps.startListeningToAnimatedNodeValue, tag)
|
|
188
|
+
},
|
|
189
|
+
stopListeningToAnimatedNodeValue: function (tag) {
|
|
190
|
+
invariant(nativeOps, 'Native animated module is not available')
|
|
191
|
+
API.queueOperation(nativeOps.stopListeningToAnimatedNodeValue, tag)
|
|
192
|
+
},
|
|
193
|
+
connectAnimatedNodes: function (parentTag, childTag) {
|
|
194
|
+
invariant(nativeOps, 'Native animated module is not available')
|
|
195
|
+
API.queueOperation(nativeOps.connectAnimatedNodes, parentTag, childTag)
|
|
196
|
+
},
|
|
197
|
+
disconnectAnimatedNodes: function (parentTag, childTag) {
|
|
198
|
+
invariant(nativeOps, 'Native animated module is not available')
|
|
199
|
+
API.queueOperation(nativeOps.disconnectAnimatedNodes, parentTag, childTag)
|
|
200
|
+
},
|
|
201
|
+
startAnimatingNode: function (animationId, nodeTag, config, endCallback) {
|
|
202
|
+
invariant(nativeOps, 'Native animated module is not available')
|
|
203
|
+
if (useSingleOpBatching) {
|
|
204
|
+
if (endCallback) {
|
|
205
|
+
eventListenerAnimationFinishedCallbacks[animationId] = endCallback
|
|
206
|
+
}
|
|
207
|
+
API.queueOperation(nativeOps.startAnimatingNode, animationId, nodeTag, config)
|
|
208
|
+
} else {
|
|
209
|
+
API.queueOperation(
|
|
210
|
+
nativeOps.startAnimatingNode,
|
|
211
|
+
animationId,
|
|
212
|
+
nodeTag,
|
|
213
|
+
config,
|
|
214
|
+
endCallback
|
|
215
|
+
)
|
|
216
|
+
}
|
|
217
|
+
},
|
|
218
|
+
stopAnimation: function (animationId) {
|
|
219
|
+
invariant(nativeOps, 'Native animated module is not available')
|
|
220
|
+
API.queueOperation(nativeOps.stopAnimation, animationId)
|
|
221
|
+
},
|
|
222
|
+
setAnimatedNodeValue: function (nodeTag, value) {
|
|
223
|
+
invariant(nativeOps, 'Native animated module is not available')
|
|
224
|
+
API.queueOperation(nativeOps.setAnimatedNodeValue, nodeTag, value)
|
|
225
|
+
},
|
|
226
|
+
setAnimatedNodeOffset: function (nodeTag, offset) {
|
|
227
|
+
invariant(nativeOps, 'Native animated module is not available')
|
|
228
|
+
API.queueOperation(nativeOps.setAnimatedNodeOffset, nodeTag, offset)
|
|
229
|
+
},
|
|
230
|
+
flattenAnimatedNodeOffset: function (nodeTag) {
|
|
231
|
+
invariant(nativeOps, 'Native animated module is not available')
|
|
232
|
+
API.queueOperation(nativeOps.flattenAnimatedNodeOffset, nodeTag)
|
|
233
|
+
},
|
|
234
|
+
extractAnimatedNodeOffset: function (nodeTag) {
|
|
235
|
+
invariant(nativeOps, 'Native animated module is not available')
|
|
236
|
+
API.queueOperation(nativeOps.extractAnimatedNodeOffset, nodeTag)
|
|
237
|
+
},
|
|
238
|
+
connectAnimatedNodeToView: function (nodeTag, viewTag) {
|
|
239
|
+
invariant(nativeOps, 'Native animated module is not available')
|
|
240
|
+
API.queueOperation(nativeOps.connectAnimatedNodeToView, nodeTag, viewTag)
|
|
241
|
+
},
|
|
242
|
+
disconnectAnimatedNodeFromView: function (nodeTag, viewTag) {
|
|
243
|
+
invariant(nativeOps, 'Native animated module is not available')
|
|
244
|
+
API.queueOperation(nativeOps.disconnectAnimatedNodeFromView, nodeTag, viewTag)
|
|
245
|
+
},
|
|
246
|
+
restoreDefaultValues: function (nodeTag) {
|
|
247
|
+
invariant(nativeOps, 'Native animated module is not available')
|
|
248
|
+
// Backwards compat with older native runtimes, can be removed later.
|
|
249
|
+
if (nativeOps.restoreDefaultValues != null) {
|
|
250
|
+
API.queueOperation(nativeOps.restoreDefaultValues, nodeTag)
|
|
251
|
+
}
|
|
252
|
+
},
|
|
253
|
+
dropAnimatedNode: function (tag) {
|
|
254
|
+
invariant(nativeOps, 'Native animated module is not available')
|
|
255
|
+
API.queueOperation(nativeOps.dropAnimatedNode, tag)
|
|
256
|
+
},
|
|
257
|
+
addAnimatedEventToView: function (viewTag, eventName, eventMapping) {
|
|
258
|
+
invariant(nativeOps, 'Native animated module is not available')
|
|
259
|
+
API.queueOperation(nativeOps.addAnimatedEventToView, viewTag, eventName, eventMapping)
|
|
260
|
+
},
|
|
261
|
+
removeAnimatedEventFromView(viewTag, eventName, animatedNodeTag) {
|
|
262
|
+
invariant(nativeOps, 'Native animated module is not available')
|
|
263
|
+
API.queueOperation(
|
|
264
|
+
nativeOps.removeAnimatedEventFromView,
|
|
265
|
+
viewTag,
|
|
266
|
+
eventName,
|
|
267
|
+
animatedNodeTag
|
|
268
|
+
)
|
|
269
|
+
},
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
function setupGlobalEventEmitterListeners() {
|
|
273
|
+
globalEventEmitterGetValueListener = RCTDeviceEventEmitter.addListener(
|
|
274
|
+
'onNativeAnimatedModuleGetValue',
|
|
275
|
+
function (params) {
|
|
276
|
+
const { tag } = params
|
|
277
|
+
const callback = eventListenerGetValueCallbacks[tag]
|
|
278
|
+
if (!callback) {
|
|
279
|
+
return
|
|
280
|
+
}
|
|
281
|
+
callback(params.value)
|
|
282
|
+
delete eventListenerGetValueCallbacks[tag]
|
|
283
|
+
}
|
|
284
|
+
)
|
|
285
|
+
globalEventEmitterAnimationFinishedListener = RCTDeviceEventEmitter.addListener(
|
|
286
|
+
'onNativeAnimatedModuleAnimationFinished',
|
|
287
|
+
function (params) {
|
|
288
|
+
const { animationId } = params
|
|
289
|
+
const callback = eventListenerAnimationFinishedCallbacks[animationId]
|
|
290
|
+
if (!callback) {
|
|
291
|
+
return
|
|
292
|
+
}
|
|
293
|
+
callback(params)
|
|
294
|
+
delete eventListenerAnimationFinishedCallbacks[animationId]
|
|
295
|
+
}
|
|
296
|
+
)
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
/**
|
|
300
|
+
* Styles allowed by the native animated implementation.
|
|
301
|
+
*
|
|
302
|
+
* In general native animated implementation should support any numeric or color property that
|
|
303
|
+
* doesn't need to be updated through the shadow view hierarchy (all non-layout properties).
|
|
304
|
+
*/
|
|
305
|
+
const SUPPORTED_COLOR_STYLES = {
|
|
306
|
+
backgroundColor: true,
|
|
307
|
+
borderBottomColor: true,
|
|
308
|
+
borderColor: true,
|
|
309
|
+
borderEndColor: true,
|
|
310
|
+
borderLeftColor: true,
|
|
311
|
+
borderRightColor: true,
|
|
312
|
+
borderStartColor: true,
|
|
313
|
+
borderTopColor: true,
|
|
314
|
+
color: true,
|
|
315
|
+
tintColor: true,
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
const SUPPORTED_STYLES = {
|
|
319
|
+
...SUPPORTED_COLOR_STYLES,
|
|
320
|
+
borderBottomEndRadius: true,
|
|
321
|
+
borderBottomLeftRadius: true,
|
|
322
|
+
borderBottomRightRadius: true,
|
|
323
|
+
borderBottomStartRadius: true,
|
|
324
|
+
borderRadius: true,
|
|
325
|
+
borderTopEndRadius: true,
|
|
326
|
+
borderTopLeftRadius: true,
|
|
327
|
+
borderTopRightRadius: true,
|
|
328
|
+
borderTopStartRadius: true,
|
|
329
|
+
elevation: true,
|
|
330
|
+
opacity: true,
|
|
331
|
+
transform: true,
|
|
332
|
+
zIndex: true,
|
|
333
|
+
/* ios styles */
|
|
334
|
+
shadowOpacity: true,
|
|
335
|
+
shadowRadius: true,
|
|
336
|
+
/* legacy android transform properties */
|
|
337
|
+
scaleX: true,
|
|
338
|
+
scaleY: true,
|
|
339
|
+
translateX: true,
|
|
340
|
+
translateY: true,
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
const SUPPORTED_TRANSFORMS = {
|
|
344
|
+
translateX: true,
|
|
345
|
+
translateY: true,
|
|
346
|
+
scale: true,
|
|
347
|
+
scaleX: true,
|
|
348
|
+
scaleY: true,
|
|
349
|
+
rotate: true,
|
|
350
|
+
rotateX: true,
|
|
351
|
+
rotateY: true,
|
|
352
|
+
rotateZ: true,
|
|
353
|
+
perspective: true,
|
|
354
|
+
}
|
|
355
|
+
|
|
356
|
+
const SUPPORTED_INTERPOLATION_PARAMS = {
|
|
357
|
+
inputRange: true,
|
|
358
|
+
outputRange: true,
|
|
359
|
+
extrapolate: true,
|
|
360
|
+
extrapolateRight: true,
|
|
361
|
+
extrapolateLeft: true,
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
function addWhitelistedStyleProp(prop) {
|
|
365
|
+
SUPPORTED_STYLES[prop] = true
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
function addWhitelistedTransformProp(prop) {
|
|
369
|
+
SUPPORTED_TRANSFORMS[prop] = true
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
function addWhitelistedInterpolationParam(param) {
|
|
373
|
+
SUPPORTED_INTERPOLATION_PARAMS[param] = true
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
function isSupportedColorStyleProp(prop) {
|
|
377
|
+
return SUPPORTED_COLOR_STYLES.hasOwnProperty(prop)
|
|
378
|
+
}
|
|
379
|
+
|
|
380
|
+
function isSupportedStyleProp(prop) {
|
|
381
|
+
return SUPPORTED_STYLES.hasOwnProperty(prop)
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
function isSupportedTransformProp(prop) {
|
|
385
|
+
return SUPPORTED_TRANSFORMS.hasOwnProperty(prop)
|
|
386
|
+
}
|
|
387
|
+
|
|
388
|
+
function isSupportedInterpolationParam(param) {
|
|
389
|
+
return SUPPORTED_INTERPOLATION_PARAMS.hasOwnProperty(param)
|
|
390
|
+
}
|
|
391
|
+
|
|
392
|
+
function validateTransform(configs) {
|
|
393
|
+
configs.forEach((config) => {
|
|
394
|
+
if (!isSupportedTransformProp(config.property)) {
|
|
395
|
+
throw new Error(
|
|
396
|
+
`Property '${config.property}' is not supported by native animated module`
|
|
397
|
+
)
|
|
398
|
+
}
|
|
399
|
+
})
|
|
400
|
+
}
|
|
401
|
+
|
|
402
|
+
function validateStyles(styles) {
|
|
403
|
+
for (const key in styles) {
|
|
404
|
+
if (!isSupportedStyleProp(key)) {
|
|
405
|
+
throw new Error(
|
|
406
|
+
`Style property '${key}' is not supported by native animated module`
|
|
407
|
+
)
|
|
408
|
+
}
|
|
409
|
+
}
|
|
410
|
+
}
|
|
411
|
+
|
|
412
|
+
function validateInterpolation(config) {
|
|
413
|
+
for (const key in config) {
|
|
414
|
+
if (!isSupportedInterpolationParam(key)) {
|
|
415
|
+
throw new Error(
|
|
416
|
+
`Interpolation property '${key}' is not supported by native animated module`
|
|
417
|
+
)
|
|
418
|
+
}
|
|
419
|
+
}
|
|
420
|
+
}
|
|
421
|
+
|
|
422
|
+
function generateNewNodeTag() {
|
|
423
|
+
return __nativeAnimatedNodeTagCount++
|
|
424
|
+
}
|
|
425
|
+
|
|
426
|
+
function generateNewAnimationId() {
|
|
427
|
+
return __nativeAnimationIdCount++
|
|
428
|
+
}
|
|
429
|
+
|
|
430
|
+
function assertNativeAnimatedModule() {
|
|
431
|
+
invariant(NativeAnimatedModule, 'Native animated module is not available')
|
|
432
|
+
}
|
|
433
|
+
|
|
434
|
+
let _warnedMissingNativeAnimated = false
|
|
435
|
+
|
|
436
|
+
function shouldUseNativeDriver(config) {
|
|
437
|
+
if (config.useNativeDriver == null) {
|
|
438
|
+
console.warn(
|
|
439
|
+
'Animated: `useNativeDriver` was not specified. This is a required ' +
|
|
440
|
+
'option and must be explicitly set to `true` or `false`'
|
|
441
|
+
)
|
|
442
|
+
}
|
|
443
|
+
|
|
444
|
+
if (config.useNativeDriver === true && !NativeAnimatedModule) {
|
|
445
|
+
if (!_warnedMissingNativeAnimated) {
|
|
446
|
+
console.warn(
|
|
447
|
+
'Animated: `useNativeDriver` is not supported because the native ' +
|
|
448
|
+
'animated module is missing. Falling back to JS-based animation. To ' +
|
|
449
|
+
'resolve this, add `RCTAnimation` module to this app, or remove ' +
|
|
450
|
+
'`useNativeDriver`. ' +
|
|
451
|
+
'Make sure to run `bundle exec pod install` first. Read more about autolinking: https://github.com/react-native-community/cli/blob/master/docs/autolinking.md'
|
|
452
|
+
)
|
|
453
|
+
_warnedMissingNativeAnimated = true
|
|
454
|
+
}
|
|
455
|
+
return false
|
|
456
|
+
}
|
|
457
|
+
|
|
458
|
+
return config.useNativeDriver || false
|
|
459
|
+
}
|
|
460
|
+
|
|
461
|
+
function transformDataType(value) {
|
|
462
|
+
// Change the string type to number type so we can reuse the same logic in
|
|
463
|
+
// iOS and Android platform
|
|
464
|
+
if (typeof value !== 'string') {
|
|
465
|
+
return value
|
|
466
|
+
}
|
|
467
|
+
if (/deg$/.test(value)) {
|
|
468
|
+
const degrees = parseFloat(value) || 0
|
|
469
|
+
const radians = (degrees * Math.PI) / 180.0
|
|
470
|
+
return radians
|
|
471
|
+
} else {
|
|
472
|
+
return value
|
|
473
|
+
}
|
|
474
|
+
}
|
|
475
|
+
|
|
476
|
+
export {
|
|
477
|
+
API,
|
|
478
|
+
isSupportedColorStyleProp,
|
|
479
|
+
isSupportedStyleProp,
|
|
480
|
+
isSupportedTransformProp,
|
|
481
|
+
isSupportedInterpolationParam,
|
|
482
|
+
addWhitelistedStyleProp,
|
|
483
|
+
addWhitelistedTransformProp,
|
|
484
|
+
addWhitelistedInterpolationParam,
|
|
485
|
+
validateStyles,
|
|
486
|
+
validateTransform,
|
|
487
|
+
validateInterpolation,
|
|
488
|
+
generateNewNodeTag,
|
|
489
|
+
generateNewAnimationId,
|
|
490
|
+
assertNativeAnimatedModule,
|
|
491
|
+
shouldUseNativeDriver,
|
|
492
|
+
transformDataType,
|
|
493
|
+
}
|
|
494
|
+
|
|
495
|
+
const NativeAnimatedHelper = {
|
|
496
|
+
API,
|
|
497
|
+
isSupportedColorStyleProp,
|
|
498
|
+
isSupportedStyleProp,
|
|
499
|
+
isSupportedTransformProp,
|
|
500
|
+
isSupportedInterpolationParam,
|
|
501
|
+
addWhitelistedStyleProp,
|
|
502
|
+
addWhitelistedTransformProp,
|
|
503
|
+
addWhitelistedInterpolationParam,
|
|
504
|
+
validateStyles,
|
|
505
|
+
validateTransform,
|
|
506
|
+
validateInterpolation,
|
|
507
|
+
generateNewNodeTag,
|
|
508
|
+
generateNewAnimationId,
|
|
509
|
+
assertNativeAnimatedModule,
|
|
510
|
+
shouldUseNativeDriver,
|
|
511
|
+
transformDataType,
|
|
512
|
+
get nativeEventEmitter() {
|
|
513
|
+
if (!nativeEventEmitter) {
|
|
514
|
+
nativeEventEmitter = new NativeEventEmitter(
|
|
515
|
+
// T88715063: NativeEventEmitter only used this parameter on iOS. Now it uses it on all platforms, so this code was modified automatically to preserve its behavior
|
|
516
|
+
// If you want to use the native module on other platforms, please remove this condition and test its behavior
|
|
517
|
+
Platform.OS !== 'ios' ? null : NativeAnimatedModule
|
|
518
|
+
)
|
|
519
|
+
}
|
|
520
|
+
return nativeEventEmitter
|
|
521
|
+
},
|
|
522
|
+
}
|
|
523
|
+
|
|
524
|
+
export { NativeAnimatedHelper }
|
|
525
|
+
export default NativeAnimatedHelper
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*
|
|
7
|
+
* @format
|
|
8
|
+
* @format
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
import * as TurboModuleRegistry from '../TurboModule/TurboModuleRegistry'
|
|
12
|
+
|
|
13
|
+
// Type definitions
|
|
14
|
+
export const EventMapping = {}
|
|
15
|
+
export const AnimatedNodeConfig = {}
|
|
16
|
+
export const AnimatingNodeConfig = {}
|
|
17
|
+
export const SaveValueCallback = () => {}
|
|
18
|
+
export const EndCallback = () => {}
|
|
19
|
+
|
|
20
|
+
// The config has different keys depending on the type of the Node
|
|
21
|
+
// TODO(T54896888): Make these types strict
|
|
22
|
+
|
|
23
|
+
const spec = {
|
|
24
|
+
startOperationBatch: () => {},
|
|
25
|
+
finishOperationBatch: () => {},
|
|
26
|
+
createAnimatedNode: (tag, config) => {},
|
|
27
|
+
updateAnimatedNodeConfig: (tag, config) => {},
|
|
28
|
+
getValue: (tag, saveValueCallback) => {},
|
|
29
|
+
startListeningToAnimatedNodeValue: (tag) => {},
|
|
30
|
+
stopListeningToAnimatedNodeValue: (tag) => {},
|
|
31
|
+
connectAnimatedNodes: (parentTag, childTag) => {},
|
|
32
|
+
disconnectAnimatedNodes: (parentTag, childTag) => {},
|
|
33
|
+
startAnimatingNode: (animationId, nodeTag, config, endCallback) => {},
|
|
34
|
+
stopAnimation: (animationId) => {},
|
|
35
|
+
setAnimatedNodeValue: (nodeTag, value) => {},
|
|
36
|
+
setAnimatedNodeOffset: (nodeTag, offset) => {},
|
|
37
|
+
flattenAnimatedNodeOffset: (nodeTag) => {},
|
|
38
|
+
extractAnimatedNodeOffset: (nodeTag) => {},
|
|
39
|
+
connectAnimatedNodeToView: (nodeTag, viewTag) => {},
|
|
40
|
+
disconnectAnimatedNodeFromView: (nodeTag, viewTag) => {},
|
|
41
|
+
restoreDefaultValues: (nodeTag) => {},
|
|
42
|
+
dropAnimatedNode: (tag) => {},
|
|
43
|
+
addAnimatedEventToView: (viewTag, eventName, eventMapping) => {},
|
|
44
|
+
removeAnimatedEventFromView: (viewTag, eventName, animatedNodeTag) => {},
|
|
45
|
+
|
|
46
|
+
// Events
|
|
47
|
+
addListener: (eventName) => {},
|
|
48
|
+
removeListeners: (count) => {},
|
|
49
|
+
|
|
50
|
+
// All of the above in a batched mode
|
|
51
|
+
queueAndExecuteBatchedOperations: (operationsAndArgs) => {},
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
const NativeAnimatedNonTurboModule =
|
|
55
|
+
TurboModuleRegistry.get('NativeAnimatedModule') || spec
|
|
56
|
+
export { NativeAnimatedNonTurboModule }
|
|
57
|
+
export default NativeAnimatedNonTurboModule
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*
|
|
7
|
+
* @format
|
|
8
|
+
* @format
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
import * as TurboModuleRegistry from '../TurboModule/TurboModuleRegistry'
|
|
12
|
+
|
|
13
|
+
// Type definitions
|
|
14
|
+
export const EventMapping = {}
|
|
15
|
+
export const AnimatedNodeConfig = {}
|
|
16
|
+
export const AnimatingNodeConfig = {}
|
|
17
|
+
export const SaveValueCallback = () => {}
|
|
18
|
+
export const EndCallback = () => {}
|
|
19
|
+
|
|
20
|
+
// The config has different keys depending on the type of the Node
|
|
21
|
+
// TODO(T54896888): Make these types strict
|
|
22
|
+
|
|
23
|
+
const spec = {
|
|
24
|
+
startOperationBatch: () => {},
|
|
25
|
+
finishOperationBatch: () => {},
|
|
26
|
+
createAnimatedNode: (tag, config) => {},
|
|
27
|
+
getValue: (tag, saveValueCallback) => {},
|
|
28
|
+
startListeningToAnimatedNodeValue: (tag) => {},
|
|
29
|
+
stopListeningToAnimatedNodeValue: (tag) => {},
|
|
30
|
+
connectAnimatedNodes: (parentTag, childTag) => {},
|
|
31
|
+
disconnectAnimatedNodes: (parentTag, childTag) => {},
|
|
32
|
+
startAnimatingNode: (animationId, nodeTag, config, endCallback) => {},
|
|
33
|
+
stopAnimation: (animationId) => {},
|
|
34
|
+
setAnimatedNodeValue: (nodeTag, value) => {},
|
|
35
|
+
setAnimatedNodeOffset: (nodeTag, offset) => {},
|
|
36
|
+
flattenAnimatedNodeOffset: (nodeTag) => {},
|
|
37
|
+
extractAnimatedNodeOffset: (nodeTag) => {},
|
|
38
|
+
connectAnimatedNodeToView: (nodeTag, viewTag) => {},
|
|
39
|
+
disconnectAnimatedNodeFromView: (nodeTag, viewTag) => {},
|
|
40
|
+
restoreDefaultValues: (nodeTag) => {},
|
|
41
|
+
dropAnimatedNode: (tag) => {},
|
|
42
|
+
addAnimatedEventToView: (viewTag, eventName, eventMapping) => {},
|
|
43
|
+
removeAnimatedEventFromView: (viewTag, eventName, animatedNodeTag) => {},
|
|
44
|
+
|
|
45
|
+
// Events
|
|
46
|
+
addListener: (eventName) => {},
|
|
47
|
+
removeListeners: (count) => {},
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
const NativeAnimatedTurboModule =
|
|
51
|
+
TurboModuleRegistry.get('NativeAnimatedTurboModule') || spec
|
|
52
|
+
export { NativeAnimatedTurboModule }
|
|
53
|
+
export default NativeAnimatedTurboModule
|