@hanzogui/react-native-web-lite 2.0.0-rc.41-hanzoai.5
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 +109 -0
- package/dist/cjs/ActivityIndicator/__tests__/index-test.cjs +209 -0
- package/dist/cjs/ActivityIndicator/index.cjs +130 -0
- package/dist/cjs/Alert/index.cjs +30 -0
- package/dist/cjs/AppRegistry/AppContainer.cjs +75 -0
- package/dist/cjs/AppRegistry/__tests__/index-test.cjs +97 -0
- package/dist/cjs/AppRegistry/__tests__/index-test.node.cjs +162 -0
- package/dist/cjs/AppRegistry/index.cjs +100 -0
- package/dist/cjs/AppRegistry/renderApplication.cjs +74 -0
- package/dist/cjs/AppState/__tests__/index-test.cjs +38 -0
- package/dist/cjs/AppState/index.cjs +85 -0
- package/dist/cjs/Appearance/index.cjs +64 -0
- package/dist/cjs/BackHandler/index.cjs +37 -0
- package/dist/cjs/Clipboard/index.cjs +64 -0
- package/dist/cjs/DeviceEmitter.cjs +29 -0
- package/dist/cjs/DeviceInfo/index.cjs +76 -0
- package/dist/cjs/Dimensions/__tests__/index-test.cjs +67 -0
- package/dist/cjs/Dimensions/index.cjs +112 -0
- package/dist/cjs/FlatList.cjs +241 -0
- package/dist/cjs/I18nManager/index.cjs +40 -0
- package/dist/cjs/Image/index.cjs +355 -0
- package/dist/cjs/Image/types.cjs +18 -0
- package/dist/cjs/ImageBackground/__tests__/index-test.cjs +72 -0
- package/dist/cjs/ImageBackground/index.cjs +69 -0
- package/dist/cjs/InteractionManager/TaskQueue.cjs +111 -0
- package/dist/cjs/InteractionManager/index.cjs +141 -0
- package/dist/cjs/Keyboard/index.cjs +40 -0
- package/dist/cjs/KeyboardAvoidingView/index.cjs +72 -0
- package/dist/cjs/Libraries/Pressability/Pressability.cjs +28 -0
- package/dist/cjs/Libraries/Pressability/usePressability.cjs +28 -0
- package/dist/cjs/Linking/__tests__/index-test.cjs +56 -0
- package/dist/cjs/Linking/index.cjs +103 -0
- package/dist/cjs/LogBox/index.cjs +35 -0
- package/dist/cjs/Modal/ModalAnimation.cjs +174 -0
- package/dist/cjs/Modal/ModalContent.cjs +95 -0
- package/dist/cjs/Modal/ModalPortal.cjs +63 -0
- package/dist/cjs/Modal/index.cjs +28 -0
- package/dist/cjs/NativeModules/index.cjs +31 -0
- package/dist/cjs/PanResponder/index.cjs +39 -0
- package/dist/cjs/PixelRatio/index.cjs +59 -0
- package/dist/cjs/Pressable/index.cjs +172 -0
- package/dist/cjs/RefreshControl/index.cjs +51 -0
- package/dist/cjs/SafeAreaView/index.cjs +70 -0
- package/dist/cjs/ScrollView/ScrollViewBase.cjs +167 -0
- package/dist/cjs/ScrollView/index.cjs +672 -0
- package/dist/cjs/SectionList.cjs +41 -0
- package/dist/cjs/Share/index.cjs +58 -0
- package/dist/cjs/StatusBar/index.cjs +38 -0
- package/dist/cjs/Text/index.cjs +197 -0
- package/dist/cjs/Text/types.cjs +18 -0
- package/dist/cjs/TextInput/index.cjs +396 -0
- package/dist/cjs/TextInput/types.cjs +18 -0
- package/dist/cjs/TouchableNativeFeedback.cjs +28 -0
- package/dist/cjs/TouchableOpacity.cjs +125 -0
- package/dist/cjs/TouchableWithoutFeedback.cjs +95 -0
- package/dist/cjs/UnimplementedView.cjs +52 -0
- package/dist/cjs/Vibration/index.cjs +40 -0
- package/dist/cjs/View/index.cjs +144 -0
- package/dist/cjs/View/types.cjs +18 -0
- package/dist/cjs/VirtualizedList.cjs +41 -0
- package/dist/cjs/codegenNativeCommand.cjs +31 -0
- package/dist/cjs/codegenNativeComponent.cjs +31 -0
- package/dist/cjs/createElement/__tests__/index-test.cjs +828 -0
- package/dist/cjs/createElement/index.cjs +94 -0
- package/dist/cjs/createReactDOMStyle.cjs +30 -0
- package/dist/cjs/index.cjs +174 -0
- package/dist/cjs/modules/requestIdleCallback.cjs +45 -0
- package/dist/cjs/preprocess.cjs +32 -0
- package/dist/cjs/render/index.cjs +34 -0
- package/dist/cjs/styleTypes.cjs +18 -0
- package/dist/cjs/types.cjs +18 -0
- package/dist/cjs/useColorScheme/index.cjs +53 -0
- package/dist/cjs/useLocaleContext/index.cjs +28 -0
- package/dist/cjs/useWindowDimensions/index.cjs +58 -0
- package/dist/cjs/vendor/react-native/Animated/Animated.cjs +48 -0
- package/dist/cjs/vendor/react-native/Animated/AnimatedEvent.cjs +164 -0
- package/dist/cjs/vendor/react-native/Animated/AnimatedImplementation.cjs +587 -0
- package/dist/cjs/vendor/react-native/Animated/AnimatedMock.cjs +147 -0
- package/dist/cjs/vendor/react-native/Animated/AnimatedPlatformConfig.cjs +1 -0
- package/dist/cjs/vendor/react-native/Animated/Easing.cjs +199 -0
- package/dist/cjs/vendor/react-native/Animated/NativeAnimatedHelper.cjs +402 -0
- package/dist/cjs/vendor/react-native/Animated/NativeAnimatedModule.cjs +80 -0
- package/dist/cjs/vendor/react-native/Animated/NativeAnimatedTurboModule.cjs +77 -0
- package/dist/cjs/vendor/react-native/Animated/SpringConfig.cjs +86 -0
- package/dist/cjs/vendor/react-native/Animated/animations/Animation.cjs +72 -0
- package/dist/cjs/vendor/react-native/Animated/animations/DecayAnimation.cjs +95 -0
- package/dist/cjs/vendor/react-native/Animated/animations/SpringAnimation.cjs +233 -0
- package/dist/cjs/vendor/react-native/Animated/animations/TimingAnimation.cjs +134 -0
- package/dist/cjs/vendor/react-native/Animated/bezier.cjs +124 -0
- package/dist/cjs/vendor/react-native/Animated/components/AnimatedFlatList.cjs +50 -0
- package/dist/cjs/vendor/react-native/Animated/components/AnimatedImage.cjs +44 -0
- package/dist/cjs/vendor/react-native/Animated/components/AnimatedScrollView.cjs +50 -0
- package/dist/cjs/vendor/react-native/Animated/components/AnimatedSectionList.cjs +50 -0
- package/dist/cjs/vendor/react-native/Animated/components/AnimatedText.cjs +32 -0
- package/dist/cjs/vendor/react-native/Animated/components/AnimatedView.cjs +32 -0
- package/dist/cjs/vendor/react-native/Animated/createAnimatedComponent.cjs +65 -0
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedAddition.cjs +69 -0
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedColor.cjs +274 -0
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedDiffClamp.cjs +74 -0
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedDivision.cjs +84 -0
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedInterpolation.cjs +225 -0
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedModulo.cjs +64 -0
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedMultiplication.cjs +69 -0
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedNode.cjs +174 -0
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedProps.cjs +151 -0
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedStyle.cjs +136 -0
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedSubtraction.cjs +69 -0
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedTracking.cjs +90 -0
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedTransform.cjs +127 -0
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedValue.cjs +239 -0
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedValueXY.cjs +119 -0
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedWithChildren.cjs +87 -0
- package/dist/cjs/vendor/react-native/Animated/useAnimatedProps.cjs +104 -0
- package/dist/cjs/vendor/react-native/Batchinator/index.cjs +72 -0
- package/dist/cjs/vendor/react-native/EventEmitter/NativeEventEmitter.cjs +73 -0
- package/dist/cjs/vendor/react-native/EventEmitter/RCTDeviceEventEmitter.cjs +31 -0
- package/dist/cjs/vendor/react-native/FeatureFlags.cjs +35 -0
- package/dist/cjs/vendor/react-native/FillRateHelper/index.cjs +189 -0
- package/dist/cjs/vendor/react-native/FlatList/index.cjs +324 -0
- package/dist/cjs/vendor/react-native/JSEventLoopWatchdog/index.cjs +93 -0
- package/dist/cjs/vendor/react-native/LayoutAnimation/index.cjs +116 -0
- package/dist/cjs/vendor/react-native/PanResponder/index.cjs +207 -0
- package/dist/cjs/vendor/react-native/PooledClass/index.cjs +62 -0
- package/dist/cjs/vendor/react-native/ReactNative/ReactNativeFeatureFlags.cjs +36 -0
- package/dist/cjs/vendor/react-native/SectionList/index.cjs +128 -0
- package/dist/cjs/vendor/react-native/StaticContainer/index.cjs +52 -0
- package/dist/cjs/vendor/react-native/StaticRenderer/index.cjs +51 -0
- package/dist/cjs/vendor/react-native/TouchHistoryMath/index.cjs +125 -0
- package/dist/cjs/vendor/react-native/TurboModule/RCTExport.cjs +36 -0
- package/dist/cjs/vendor/react-native/TurboModule/TurboModuleRegistry.cjs +39 -0
- package/dist/cjs/vendor/react-native/Types/CoreEventTypes.cjs +158 -0
- package/dist/cjs/vendor/react-native/Utilities/Platform.cjs +30 -0
- package/dist/cjs/vendor/react-native/Utilities/clamp.cjs +40 -0
- package/dist/cjs/vendor/react-native/Utilities/setAndForwardRef.cjs +45 -0
- package/dist/cjs/vendor/react-native/Utilities/useMergeRefs.cjs +45 -0
- package/dist/cjs/vendor/react-native/Utilities/useRefEffect.cjs +42 -0
- package/dist/cjs/vendor/react-native/ViewabilityHelper/index.cjs +184 -0
- package/dist/cjs/vendor/react-native/ViewabilityHelper.cjs +175 -0
- package/dist/cjs/vendor/react-native/VirtualizeUtils/index.cjs +144 -0
- package/dist/cjs/vendor/react-native/VirtualizedList/CellRenderMask.cjs +110 -0
- package/dist/cjs/vendor/react-native/VirtualizedList/ChildListCollection.cjs +77 -0
- package/dist/cjs/vendor/react-native/VirtualizedList/StateSafePureComponent.cjs +92 -0
- package/dist/cjs/vendor/react-native/VirtualizedList/VirtualizedListCellRenderer.cjs +182 -0
- package/dist/cjs/vendor/react-native/VirtualizedList/VirtualizedListContext.cjs +89 -0
- package/dist/cjs/vendor/react-native/VirtualizedList/VirtualizedListProps.cjs +66 -0
- package/dist/cjs/vendor/react-native/VirtualizedList/index.cjs +310 -0
- package/dist/cjs/vendor/react-native/VirtualizedSectionList/index.cjs +165 -0
- package/dist/cjs/vendor/react-native/deepDiffer/index.cjs +74 -0
- package/dist/cjs/vendor/react-native/emitter/EventEmitter.cjs +32 -0
- package/dist/cjs/vendor/react-native/emitter/EventSubscription.cjs +1 -0
- package/dist/cjs/vendor/react-native/emitter/_EmitterSubscription.cjs +59 -0
- package/dist/cjs/vendor/react-native/emitter/_EventEmitter.cjs +136 -0
- package/dist/cjs/vendor/react-native/emitter/_EventSubscription.cjs +46 -0
- package/dist/cjs/vendor/react-native/emitter/_EventSubscriptionVendor.cjs +96 -0
- package/dist/cjs/vendor/react-native/infoLog/index.cjs +34 -0
- package/dist/cjs/vendor/react-native/useRefEffect.cjs +42 -0
- package/dist/cjs/vendor/react-native/vendor/emitter/EventEmitter.cjs +103 -0
- package/dist/cjs/without-animated.cjs +348 -0
- package/dist/esm/AccessibilityInfo/index.mjs +84 -0
- package/dist/esm/AccessibilityInfo/index.mjs.map +1 -0
- package/dist/esm/ActivityIndicator/__tests__/index-test.mjs +186 -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 +38 -0
- package/dist/esm/AppRegistry/AppContainer.mjs.map +1 -0
- package/dist/esm/AppRegistry/__tests__/index-test.mjs +74 -0
- package/dist/esm/AppRegistry/__tests__/index-test.mjs.map +1 -0
- package/dist/esm/AppRegistry/__tests__/index-test.node.mjs +139 -0
- package/dist/esm/AppRegistry/__tests__/index-test.node.mjs.map +1 -0
- package/dist/esm/AppRegistry/index.mjs +75 -0
- package/dist/esm/AppRegistry/index.mjs.map +1 -0
- package/dist/esm/AppRegistry/renderApplication.mjs +48 -0
- package/dist/esm/AppRegistry/renderApplication.mjs.map +1 -0
- package/dist/esm/AppState/__tests__/index-test.mjs +15 -0
- package/dist/esm/AppState/__tests__/index-test.mjs.map +1 -0
- package/dist/esm/AppState/index.mjs +60 -0
- package/dist/esm/AppState/index.mjs.map +1 -0
- package/dist/esm/Appearance/index.mjs +39 -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 +39 -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 +51 -0
- package/dist/esm/DeviceInfo/index.mjs.map +1 -0
- package/dist/esm/Dimensions/__tests__/index-test.mjs +44 -0
- package/dist/esm/Dimensions/__tests__/index-test.mjs.map +1 -0
- package/dist/esm/Dimensions/index.mjs +86 -0
- package/dist/esm/Dimensions/index.mjs.map +1 -0
- package/dist/esm/FlatList.mjs +204 -0
- package/dist/esm/FlatList.mjs.map +1 -0
- package/dist/esm/I18nManager/index.mjs +15 -0
- package/dist/esm/I18nManager/index.mjs.map +1 -0
- package/dist/esm/Image/index.mjs +318 -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 +49 -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 +86 -0
- package/dist/esm/InteractionManager/TaskQueue.mjs.map +1 -0
- package/dist/esm/InteractionManager/index.mjs +105 -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 +35 -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 +33 -0
- package/dist/esm/Linking/__tests__/index-test.mjs.map +1 -0
- package/dist/esm/Linking/index.mjs +78 -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 +138 -0
- package/dist/esm/Modal/ModalAnimation.mjs.map +1 -0
- package/dist/esm/Modal/ModalContent.mjs +59 -0
- package/dist/esm/Modal/ModalContent.mjs.map +1 -0
- package/dist/esm/Modal/ModalPortal.mjs +27 -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 +133 -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 +33 -0
- package/dist/esm/SafeAreaView/index.mjs.map +1 -0
- package/dist/esm/ScrollView/ScrollViewBase.mjs +130 -0
- package/dist/esm/ScrollView/ScrollViewBase.mjs.map +1 -0
- package/dist/esm/ScrollView/index.mjs +635 -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 +33 -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 +160 -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 +359 -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 +87 -0
- package/dist/esm/TouchableOpacity.mjs.map +1 -0
- package/dist/esm/TouchableWithoutFeedback.mjs +59 -0
- package/dist/esm/TouchableWithoutFeedback.mjs.map +1 -0
- package/dist/esm/UnimplementedView.mjs +16 -0
- package/dist/esm/UnimplementedView.mjs.map +1 -0
- package/dist/esm/Vibration/index.mjs +15 -0
- package/dist/esm/Vibration/index.mjs.map +1 -0
- package/dist/esm/View/index.mjs +107 -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 +6 -0
- package/dist/esm/codegenNativeCommand.mjs.map +1 -0
- package/dist/esm/codegenNativeComponent.mjs +6 -0
- package/dist/esm/codegenNativeComponent.mjs.map +1 -0
- package/dist/esm/createElement/__tests__/index-test.mjs +805 -0
- package/dist/esm/createElement/__tests__/index-test.mjs.map +1 -0
- package/dist/esm/createElement/index.mjs +57 -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 +17 -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 +22 -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 +136 -0
- package/dist/esm/vendor/react-native/Animated/AnimatedEvent.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Animated/AnimatedImplementation.mjs +558 -0
- package/dist/esm/vendor/react-native/Animated/AnimatedImplementation.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Animated/AnimatedMock.mjs +118 -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 +171 -0
- package/dist/esm/vendor/react-native/Animated/Easing.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Animated/NativeAnimatedHelper.mjs +360 -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 +60 -0
- package/dist/esm/vendor/react-native/Animated/SpringConfig.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Animated/animations/Animation.mjs +44 -0
- package/dist/esm/vendor/react-native/Animated/animations/Animation.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Animated/animations/DecayAnimation.mjs +67 -0
- package/dist/esm/vendor/react-native/Animated/animations/DecayAnimation.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Animated/animations/SpringAnimation.mjs +205 -0
- package/dist/esm/vendor/react-native/Animated/animations/SpringAnimation.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Animated/animations/TimingAnimation.mjs +108 -0
- package/dist/esm/vendor/react-native/Animated/animations/TimingAnimation.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Animated/bezier.mjs +96 -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 +28 -0
- package/dist/esm/vendor/react-native/Animated/createAnimatedComponent.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedAddition.mjs +41 -0
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedAddition.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedColor.mjs +248 -0
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedColor.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedDiffClamp.mjs +48 -0
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedDiffClamp.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedDivision.mjs +56 -0
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedDivision.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedInterpolation.mjs +197 -0
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedInterpolation.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedModulo.mjs +38 -0
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedModulo.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedMultiplication.mjs +41 -0
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedMultiplication.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedNode.mjs +146 -0
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedNode.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedProps.mjs +125 -0
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedProps.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedStyle.mjs +110 -0
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedStyle.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedSubtraction.mjs +41 -0
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedSubtraction.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedTracking.mjs +64 -0
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedTracking.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedTransform.mjs +99 -0
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedTransform.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedValue.mjs +211 -0
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedValue.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedValueXY.mjs +93 -0
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedValueXY.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedWithChildren.mjs +59 -0
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedWithChildren.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Animated/useAnimatedProps.mjs +76 -0
- package/dist/esm/vendor/react-native/Animated/useAnimatedProps.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Batchinator/index.mjs +44 -0
- package/dist/esm/vendor/react-native/Batchinator/index.mjs.map +1 -0
- package/dist/esm/vendor/react-native/EventEmitter/NativeEventEmitter.mjs +45 -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 +163 -0
- package/dist/esm/vendor/react-native/FillRateHelper/index.mjs.map +1 -0
- package/dist/esm/vendor/react-native/FlatList/index.mjs +287 -0
- package/dist/esm/vendor/react-native/FlatList/index.mjs.map +1 -0
- package/dist/esm/vendor/react-native/JSEventLoopWatchdog/index.mjs +65 -0
- package/dist/esm/vendor/react-native/JSEventLoopWatchdog/index.mjs.map +1 -0
- package/dist/esm/vendor/react-native/LayoutAnimation/index.mjs +88 -0
- package/dist/esm/vendor/react-native/LayoutAnimation/index.mjs.map +1 -0
- package/dist/esm/vendor/react-native/PanResponder/index.mjs +170 -0
- package/dist/esm/vendor/react-native/PanResponder/index.mjs.map +1 -0
- package/dist/esm/vendor/react-native/PooledClass/index.mjs +36 -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 +91 -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 +99 -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 +11 -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 +12 -0
- package/dist/esm/vendor/react-native/Utilities/clamp.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Utilities/setAndForwardRef.mjs +17 -0
- package/dist/esm/vendor/react-native/Utilities/setAndForwardRef.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Utilities/useMergeRefs.mjs +19 -0
- package/dist/esm/vendor/react-native/Utilities/useMergeRefs.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Utilities/useRefEffect.mjs +16 -0
- package/dist/esm/vendor/react-native/Utilities/useRefEffect.mjs.map +1 -0
- package/dist/esm/vendor/react-native/ViewabilityHelper/index.mjs +156 -0
- package/dist/esm/vendor/react-native/ViewabilityHelper/index.mjs.map +1 -0
- package/dist/esm/vendor/react-native/ViewabilityHelper.mjs +149 -0
- package/dist/esm/vendor/react-native/ViewabilityHelper.mjs.map +1 -0
- package/dist/esm/vendor/react-native/VirtualizeUtils/index.mjs +116 -0
- package/dist/esm/vendor/react-native/VirtualizeUtils/index.mjs.map +1 -0
- package/dist/esm/vendor/react-native/VirtualizedList/CellRenderMask.mjs +85 -0
- package/dist/esm/vendor/react-native/VirtualizedList/CellRenderMask.mjs.map +1 -0
- package/dist/esm/vendor/react-native/VirtualizedList/ChildListCollection.mjs +51 -0
- package/dist/esm/vendor/react-native/VirtualizedList/ChildListCollection.mjs.map +1 -0
- package/dist/esm/vendor/react-native/VirtualizedList/StateSafePureComponent.mjs +55 -0
- package/dist/esm/vendor/react-native/VirtualizedList/StateSafePureComponent.mjs.map +1 -0
- package/dist/esm/vendor/react-native/VirtualizedList/VirtualizedListCellRenderer.mjs +145 -0
- package/dist/esm/vendor/react-native/VirtualizedList/VirtualizedListCellRenderer.mjs.map +1 -0
- package/dist/esm/vendor/react-native/VirtualizedList/VirtualizedListContext.mjs +50 -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 +284 -0
- package/dist/esm/vendor/react-native/VirtualizedList/index.mjs.map +1 -0
- package/dist/esm/vendor/react-native/VirtualizedSectionList/index.mjs +128 -0
- package/dist/esm/vendor/react-native/VirtualizedSectionList/index.mjs.map +1 -0
- package/dist/esm/vendor/react-native/deepDiffer/index.mjs +46 -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 +31 -0
- package/dist/esm/vendor/react-native/emitter/_EmitterSubscription.mjs.map +1 -0
- package/dist/esm/vendor/react-native/emitter/_EventEmitter.mjs +110 -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 +68 -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 +16 -0
- package/dist/esm/vendor/react-native/useRefEffect.mjs.map +1 -0
- package/dist/esm/vendor/react-native/vendor/emitter/EventEmitter.mjs +75 -0
- package/dist/esm/vendor/react-native/vendor/emitter/EventEmitter.mjs.map +1 -0
- package/dist/esm/without-animated.mjs +234 -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,190 @@
|
|
|
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
|
+
*/
|
|
9
|
+
|
|
10
|
+
'use strict'
|
|
11
|
+
|
|
12
|
+
import { NativeAnimatedHelper } from '../NativeAnimatedHelper'
|
|
13
|
+
import { invariant } from '@hanzogui/react-native-web-internals'
|
|
14
|
+
|
|
15
|
+
const NativeAnimatedAPI = NativeAnimatedHelper.API
|
|
16
|
+
|
|
17
|
+
let _uniqueId = 1
|
|
18
|
+
|
|
19
|
+
// Note(vjeux): this would be better as an interface but flow doesn't
|
|
20
|
+
// support them yet
|
|
21
|
+
class AnimatedNode {
|
|
22
|
+
_listeners
|
|
23
|
+
_platformConfig
|
|
24
|
+
__nativeAnimatedValueListener
|
|
25
|
+
__attach() {}
|
|
26
|
+
__detach() {
|
|
27
|
+
if (this.__isNative && this.__nativeTag != null) {
|
|
28
|
+
NativeAnimatedHelper.API.dropAnimatedNode(this.__nativeTag)
|
|
29
|
+
this.__nativeTag = undefined
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
__getValue() {}
|
|
33
|
+
__getAnimatedValue() {
|
|
34
|
+
return this.__getValue()
|
|
35
|
+
}
|
|
36
|
+
__addChild(child) {}
|
|
37
|
+
__removeChild(child) {}
|
|
38
|
+
__getChildren() {
|
|
39
|
+
return []
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/* Methods and props used by native Animated impl */
|
|
43
|
+
__isNative
|
|
44
|
+
__nativeTag
|
|
45
|
+
__shouldUpdateListenersForNewNativeTag
|
|
46
|
+
|
|
47
|
+
constructor() {
|
|
48
|
+
this._listeners = {}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
__makeNative(platformConfig) {
|
|
52
|
+
if (!this.__isNative) {
|
|
53
|
+
throw new Error('This node cannot be made a "native" animated node')
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
this._platformConfig = platformConfig
|
|
57
|
+
if (this.hasListeners()) {
|
|
58
|
+
this._startListeningToNativeValueUpdates()
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* Adds an asynchronous listener to the value so you can observe updates from
|
|
64
|
+
* animations. This is useful because there is no way to
|
|
65
|
+
* synchronously read the value because it might be driven natively.
|
|
66
|
+
*
|
|
67
|
+
* See https://reactnative.dev/docs/animatedvalue#addlistener
|
|
68
|
+
*/
|
|
69
|
+
addListener(callback) {
|
|
70
|
+
const id = String(_uniqueId++)
|
|
71
|
+
this._listeners[id] = callback
|
|
72
|
+
if (this.__isNative) {
|
|
73
|
+
this._startListeningToNativeValueUpdates()
|
|
74
|
+
}
|
|
75
|
+
return id
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* Unregister a listener. The `id` param shall match the identifier
|
|
80
|
+
* previously returned by `addListener()`.
|
|
81
|
+
*
|
|
82
|
+
* See https://reactnative.dev/docs/animatedvalue#removelistener
|
|
83
|
+
*/
|
|
84
|
+
removeListener(id) {
|
|
85
|
+
delete this._listeners[id]
|
|
86
|
+
if (this.__isNative && !this.hasListeners()) {
|
|
87
|
+
this._stopListeningForNativeValueUpdates()
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* Remove all registered listeners.
|
|
93
|
+
*
|
|
94
|
+
* See https://reactnative.dev/docs/animatedvalue#removealllisteners
|
|
95
|
+
*/
|
|
96
|
+
removeAllListeners() {
|
|
97
|
+
this._listeners = {}
|
|
98
|
+
if (this.__isNative) {
|
|
99
|
+
this._stopListeningForNativeValueUpdates()
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
hasListeners() {
|
|
104
|
+
return !!Object.keys(this._listeners).length
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
_startListeningToNativeValueUpdates() {
|
|
108
|
+
if (
|
|
109
|
+
this.__nativeAnimatedValueListener &&
|
|
110
|
+
!this.__shouldUpdateListenersForNewNativeTag
|
|
111
|
+
) {
|
|
112
|
+
return
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
if (this.__shouldUpdateListenersForNewNativeTag) {
|
|
116
|
+
this.__shouldUpdateListenersForNewNativeTag = false
|
|
117
|
+
this._stopListeningForNativeValueUpdates()
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
NativeAnimatedAPI.startListeningToAnimatedNodeValue(this.__getNativeTag())
|
|
121
|
+
this.__nativeAnimatedValueListener =
|
|
122
|
+
NativeAnimatedHelper.nativeEventEmitter.addListener(
|
|
123
|
+
'onAnimatedValueUpdate',
|
|
124
|
+
(data) => {
|
|
125
|
+
if (data.tag !== this.__getNativeTag()) {
|
|
126
|
+
return
|
|
127
|
+
}
|
|
128
|
+
this.__onAnimatedValueUpdateReceived(data.value)
|
|
129
|
+
}
|
|
130
|
+
)
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
__onAnimatedValueUpdateReceived(value) {
|
|
134
|
+
this.__callListeners(value)
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
__callListeners(value) {
|
|
138
|
+
for (const key in this._listeners) {
|
|
139
|
+
this._listeners[key]({ value })
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
_stopListeningForNativeValueUpdates() {
|
|
144
|
+
if (!this.__nativeAnimatedValueListener) {
|
|
145
|
+
return
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
this.__nativeAnimatedValueListener.remove()
|
|
149
|
+
this.__nativeAnimatedValueListener = null
|
|
150
|
+
NativeAnimatedAPI.stopListeningToAnimatedNodeValue(this.__getNativeTag())
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
__getNativeTag() {
|
|
154
|
+
NativeAnimatedHelper.assertNativeAnimatedModule()
|
|
155
|
+
invariant(
|
|
156
|
+
this.__isNative,
|
|
157
|
+
'Attempt to get native tag from node not marked as "native"'
|
|
158
|
+
)
|
|
159
|
+
|
|
160
|
+
const nativeTag = this.__nativeTag ?? NativeAnimatedHelper.generateNewNodeTag()
|
|
161
|
+
|
|
162
|
+
if (this.__nativeTag == null) {
|
|
163
|
+
this.__nativeTag = nativeTag
|
|
164
|
+
const config = this.__getNativeConfig()
|
|
165
|
+
if (this._platformConfig) {
|
|
166
|
+
config.platformConfig = this._platformConfig
|
|
167
|
+
}
|
|
168
|
+
NativeAnimatedHelper.API.createAnimatedNode(nativeTag, config)
|
|
169
|
+
this.__shouldUpdateListenersForNewNativeTag = true
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
return nativeTag
|
|
173
|
+
}
|
|
174
|
+
__getNativeConfig() {
|
|
175
|
+
throw new Error('This JS animated node type cannot be used as native animated node')
|
|
176
|
+
}
|
|
177
|
+
toJSON() {
|
|
178
|
+
return this.__getValue()
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
__getPlatformConfig() {
|
|
182
|
+
return this._platformConfig
|
|
183
|
+
}
|
|
184
|
+
__setPlatformConfig(platformConfig) {
|
|
185
|
+
this._platformConfig = platformConfig
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
export { AnimatedNode }
|
|
190
|
+
export default AnimatedNode
|
|
@@ -0,0 +1,160 @@
|
|
|
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 { AnimatedEvent } from '../AnimatedEvent'
|
|
12
|
+
import { AnimatedNode } from './AnimatedNode'
|
|
13
|
+
import { AnimatedStyle } from './AnimatedStyle'
|
|
14
|
+
import { NativeAnimatedHelper } from '../NativeAnimatedHelper'
|
|
15
|
+
|
|
16
|
+
import { invariant } from '@hanzogui/react-native-web-internals'
|
|
17
|
+
|
|
18
|
+
class AnimatedProps extends AnimatedNode {
|
|
19
|
+
constructor(props, callback) {
|
|
20
|
+
super()
|
|
21
|
+
if (props.style) {
|
|
22
|
+
props = {
|
|
23
|
+
...props,
|
|
24
|
+
style: new AnimatedStyle(props.style),
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
this._props = props
|
|
28
|
+
this._callback = callback
|
|
29
|
+
this.__attach()
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
__getValue() {
|
|
33
|
+
const props = {}
|
|
34
|
+
for (const key in this._props) {
|
|
35
|
+
const value = this._props[key]
|
|
36
|
+
if (value instanceof AnimatedNode) {
|
|
37
|
+
if (!value.__isNative || value instanceof AnimatedStyle) {
|
|
38
|
+
// We cannot use value of natively driven nodes this way as the value we have access from
|
|
39
|
+
// JS may not be up to date.
|
|
40
|
+
props[key] = value.__getValue()
|
|
41
|
+
}
|
|
42
|
+
} else if (value instanceof AnimatedEvent) {
|
|
43
|
+
props[key] = value.__getHandler()
|
|
44
|
+
} else {
|
|
45
|
+
props[key] = value
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
return props
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
__getAnimatedValue() {
|
|
52
|
+
const props = {}
|
|
53
|
+
for (const key in this._props) {
|
|
54
|
+
const value = this._props[key]
|
|
55
|
+
if (value instanceof AnimatedNode) {
|
|
56
|
+
props[key] = value.__getAnimatedValue()
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
return props
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
__attach() {
|
|
63
|
+
for (const key in this._props) {
|
|
64
|
+
const value = this._props[key]
|
|
65
|
+
if (value instanceof AnimatedNode) {
|
|
66
|
+
value.__addChild(this)
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
__detach() {
|
|
72
|
+
if (this.__isNative && this._animatedView) {
|
|
73
|
+
this.__disconnectAnimatedView()
|
|
74
|
+
}
|
|
75
|
+
for (const key in this._props) {
|
|
76
|
+
const value = this._props[key]
|
|
77
|
+
if (value instanceof AnimatedNode) {
|
|
78
|
+
value.__removeChild(this)
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
super.__detach()
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
update() {
|
|
85
|
+
this._callback()
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
__makeNative() {
|
|
89
|
+
if (!this.__isNative) {
|
|
90
|
+
this.__isNative = true
|
|
91
|
+
for (const key in this._props) {
|
|
92
|
+
const value = this._props[key]
|
|
93
|
+
if (value instanceof AnimatedNode) {
|
|
94
|
+
value.__makeNative()
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
if (this._animatedView) {
|
|
98
|
+
this.__connectAnimatedView()
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
setNativeView(animatedView) {
|
|
104
|
+
if (this._animatedView === animatedView) {
|
|
105
|
+
return
|
|
106
|
+
}
|
|
107
|
+
this._animatedView = animatedView
|
|
108
|
+
if (this.__isNative) {
|
|
109
|
+
this.__connectAnimatedView()
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
__connectAnimatedView() {
|
|
114
|
+
invariant(this.__isNative, 'Expected node to be marked as "native"')
|
|
115
|
+
const nativeViewTag = this._animatedView
|
|
116
|
+
invariant(nativeViewTag != null, 'Unable to locate attached view in the native tree')
|
|
117
|
+
NativeAnimatedHelper.API.connectAnimatedNodeToView(
|
|
118
|
+
this.__getNativeTag(),
|
|
119
|
+
nativeViewTag
|
|
120
|
+
)
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
__disconnectAnimatedView() {
|
|
124
|
+
invariant(this.__isNative, 'Expected node to be marked as "native"')
|
|
125
|
+
const nativeViewTag = this._animatedView
|
|
126
|
+
invariant(nativeViewTag != null, 'Unable to locate attached view in the native tree')
|
|
127
|
+
NativeAnimatedHelper.API.disconnectAnimatedNodeFromView(
|
|
128
|
+
this.__getNativeTag(),
|
|
129
|
+
nativeViewTag
|
|
130
|
+
)
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
__restoreDefaultValues() {
|
|
134
|
+
// When using the native driver, view properties need to be restored to
|
|
135
|
+
// their default values manually since react no longer tracks them. This
|
|
136
|
+
// is needed to handle cases where a prop driven by native animated is removed
|
|
137
|
+
// after having been changed natively by an animation.
|
|
138
|
+
if (this.__isNative) {
|
|
139
|
+
NativeAnimatedHelper.API.restoreDefaultValues(this.__getNativeTag())
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
__getNativeConfig() {
|
|
144
|
+
const propsConfig = {}
|
|
145
|
+
for (const propKey in this._props) {
|
|
146
|
+
const value = this._props[propKey]
|
|
147
|
+
if (value instanceof AnimatedNode) {
|
|
148
|
+
value.__makeNative()
|
|
149
|
+
propsConfig[propKey] = value.__getNativeTag()
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
return {
|
|
153
|
+
type: 'props',
|
|
154
|
+
props: propsConfig,
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
export { AnimatedProps }
|
|
160
|
+
export default AnimatedProps
|
|
@@ -0,0 +1,137 @@
|
|
|
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 { AnimatedNode } from './AnimatedNode'
|
|
12
|
+
import { AnimatedTransform } from './AnimatedTransform'
|
|
13
|
+
import { AnimatedWithChildren } from './AnimatedWithChildren'
|
|
14
|
+
import { NativeAnimatedHelper } from '../NativeAnimatedHelper'
|
|
15
|
+
|
|
16
|
+
import { StyleSheet } from '@hanzogui/react-native-web-internals'
|
|
17
|
+
|
|
18
|
+
const flattenStyle = StyleSheet.flatten
|
|
19
|
+
|
|
20
|
+
function createAnimatedStyle(inputStyle) {
|
|
21
|
+
const style = flattenStyle(inputStyle)
|
|
22
|
+
const animatedStyles = {}
|
|
23
|
+
for (const key in style) {
|
|
24
|
+
const value = style[key]
|
|
25
|
+
if (key === 'transform' && Array.isArray(value)) {
|
|
26
|
+
animatedStyles[key] = new AnimatedTransform(value)
|
|
27
|
+
} else if (value instanceof AnimatedNode) {
|
|
28
|
+
animatedStyles[key] = value
|
|
29
|
+
} else if (value && !Array.isArray(value) && typeof value === 'object') {
|
|
30
|
+
animatedStyles[key] = createAnimatedStyle(value)
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
return animatedStyles
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
class AnimatedStyle extends AnimatedWithChildren {
|
|
37
|
+
_inputStyle
|
|
38
|
+
_style
|
|
39
|
+
|
|
40
|
+
constructor(style) {
|
|
41
|
+
super()
|
|
42
|
+
this._inputStyle = style
|
|
43
|
+
this._style = createAnimatedStyle(style)
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
// Recursively get values for nested styles (like iOS's shadowOffset)
|
|
47
|
+
_walkStyleAndGetValues(style) {
|
|
48
|
+
const updatedStyle = {}
|
|
49
|
+
for (const key in style) {
|
|
50
|
+
const value = style[key]
|
|
51
|
+
if (value instanceof AnimatedNode) {
|
|
52
|
+
if (!value.__isNative) {
|
|
53
|
+
// We cannot use value of natively driven nodes this way as the value we have access from
|
|
54
|
+
// JS may not be up to date.
|
|
55
|
+
updatedStyle[key] = value.__getValue()
|
|
56
|
+
}
|
|
57
|
+
} else if (value && !Array.isArray(value) && typeof value === 'object') {
|
|
58
|
+
// Support animating nested values (for example: shadowOffset.height)
|
|
59
|
+
updatedStyle[key] = this._walkStyleAndGetValues(value)
|
|
60
|
+
} else {
|
|
61
|
+
updatedStyle[key] = value
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
return updatedStyle
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
__getValue() {
|
|
68
|
+
return [this._inputStyle, this._walkStyleAndGetValues(this._style)]
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
// Recursively get animated values for nested styles (like iOS's shadowOffset)
|
|
72
|
+
_walkStyleAndGetAnimatedValues(style) {
|
|
73
|
+
const updatedStyle = {}
|
|
74
|
+
for (const key in style) {
|
|
75
|
+
const value = style[key]
|
|
76
|
+
if (value instanceof AnimatedNode) {
|
|
77
|
+
updatedStyle[key] = value.__getAnimatedValue()
|
|
78
|
+
} else if (value && !Array.isArray(value) && typeof value === 'object') {
|
|
79
|
+
// Support animating nested values (for example: shadowOffset.height)
|
|
80
|
+
updatedStyle[key] = this._walkStyleAndGetAnimatedValues(value)
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
return updatedStyle
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
__getAnimatedValue() {
|
|
87
|
+
return this._walkStyleAndGetAnimatedValues(this._style)
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
__attach() {
|
|
91
|
+
for (const key in this._style) {
|
|
92
|
+
const value = this._style[key]
|
|
93
|
+
if (value instanceof AnimatedNode) {
|
|
94
|
+
value.__addChild(this)
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
__detach() {
|
|
100
|
+
for (const key in this._style) {
|
|
101
|
+
const value = this._style[key]
|
|
102
|
+
if (value instanceof AnimatedNode) {
|
|
103
|
+
value.__removeChild(this)
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
super.__detach()
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
__makeNative() {
|
|
110
|
+
for (const key in this._style) {
|
|
111
|
+
const value = this._style[key]
|
|
112
|
+
if (value instanceof AnimatedNode) {
|
|
113
|
+
value.__makeNative()
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
super.__makeNative()
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
__getNativeConfig() {
|
|
120
|
+
const styleConfig = {}
|
|
121
|
+
for (const styleKey in this._style) {
|
|
122
|
+
if (this._style[styleKey] instanceof AnimatedNode) {
|
|
123
|
+
const style = this._style[styleKey]
|
|
124
|
+
style.__makeNative()
|
|
125
|
+
styleConfig[styleKey] = style.__getNativeTag()
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
NativeAnimatedHelper.validateStyles(styleConfig)
|
|
129
|
+
return {
|
|
130
|
+
type: 'style',
|
|
131
|
+
style: styleConfig,
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
export { AnimatedStyle }
|
|
137
|
+
export default AnimatedStyle
|
|
@@ -0,0 +1,60 @@
|
|
|
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
|
+
*/
|
|
9
|
+
|
|
10
|
+
'use strict'
|
|
11
|
+
|
|
12
|
+
import { AnimatedInterpolation } from './AnimatedInterpolation'
|
|
13
|
+
import { AnimatedValue } from './AnimatedValue'
|
|
14
|
+
import { AnimatedWithChildren } from './AnimatedWithChildren'
|
|
15
|
+
|
|
16
|
+
class AnimatedSubtraction extends AnimatedWithChildren {
|
|
17
|
+
_a
|
|
18
|
+
_b
|
|
19
|
+
|
|
20
|
+
constructor(a, b) {
|
|
21
|
+
super()
|
|
22
|
+
this._a = typeof a === 'number' ? new AnimatedValue(a) : a
|
|
23
|
+
this._b = typeof b === 'number' ? new AnimatedValue(b) : b
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
__makeNative(platformConfig) {
|
|
27
|
+
this._a.__makeNative(platformConfig)
|
|
28
|
+
this._b.__makeNative(platformConfig)
|
|
29
|
+
super.__makeNative(platformConfig)
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
__getValue() {
|
|
33
|
+
return this._a.__getValue() - this._b.__getValue()
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
interpolate(config) {
|
|
37
|
+
return new AnimatedInterpolation(this, config)
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
__attach() {
|
|
41
|
+
this._a.__addChild(this)
|
|
42
|
+
this._b.__addChild(this)
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
__detach() {
|
|
46
|
+
this._a.__removeChild(this)
|
|
47
|
+
this._b.__removeChild(this)
|
|
48
|
+
super.__detach()
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
__getNativeConfig() {
|
|
52
|
+
return {
|
|
53
|
+
type: 'subtraction',
|
|
54
|
+
input: [this._a.__getNativeTag(), this._b.__getNativeTag()],
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export { AnimatedSubtraction }
|
|
60
|
+
export default AnimatedSubtraction
|
|
@@ -0,0 +1,90 @@
|
|
|
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 { AnimatedValue } from './AnimatedValue'
|
|
12
|
+
import { AnimatedNode } from './AnimatedNode'
|
|
13
|
+
import { generateNewAnimationId, shouldUseNativeDriver } from '../NativeAnimatedHelper'
|
|
14
|
+
|
|
15
|
+
class AnimatedTracking extends AnimatedNode {
|
|
16
|
+
_value
|
|
17
|
+
_parent
|
|
18
|
+
_callback
|
|
19
|
+
_animationConfig
|
|
20
|
+
_animationClass
|
|
21
|
+
_useNativeDriver
|
|
22
|
+
|
|
23
|
+
constructor(value, parent, animationClass, animationConfig, callback) {
|
|
24
|
+
super()
|
|
25
|
+
this._value = value
|
|
26
|
+
this._parent = parent
|
|
27
|
+
this._animationClass = animationClass
|
|
28
|
+
this._animationConfig = animationConfig
|
|
29
|
+
this._useNativeDriver = shouldUseNativeDriver(animationConfig)
|
|
30
|
+
this._callback = callback
|
|
31
|
+
this.__attach()
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
__makeNative() {
|
|
35
|
+
this.__isNative = true
|
|
36
|
+
this._parent.__makeNative()
|
|
37
|
+
super.__makeNative()
|
|
38
|
+
this._value.__makeNative()
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
__getValue() {
|
|
42
|
+
return this._parent.__getValue()
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
__attach() {
|
|
46
|
+
this._parent.__addChild(this)
|
|
47
|
+
if (this._useNativeDriver) {
|
|
48
|
+
// when the tracking starts we need to convert this node to a "native node"
|
|
49
|
+
// so that the parent node will be made "native" too. This is necessary as
|
|
50
|
+
// if we don't do this `update` method will get called. At that point it
|
|
51
|
+
// may be too late as it would mean the JS driver has already started
|
|
52
|
+
// updating node values
|
|
53
|
+
this.__makeNative()
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
__detach() {
|
|
58
|
+
this._parent.__removeChild(this)
|
|
59
|
+
super.__detach()
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
update() {
|
|
63
|
+
this._value.animate(
|
|
64
|
+
new this._animationClass({
|
|
65
|
+
...this._animationConfig,
|
|
66
|
+
toValue: this._animationConfig.toValue.__getValue(),
|
|
67
|
+
}),
|
|
68
|
+
this._callback
|
|
69
|
+
)
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
__getNativeConfig() {
|
|
73
|
+
const animation = new this._animationClass({
|
|
74
|
+
...this._animationConfig,
|
|
75
|
+
// remove toValue from the config as it's a ref to Animated.Value
|
|
76
|
+
toValue: undefined,
|
|
77
|
+
})
|
|
78
|
+
const animationConfig = animation.__getNativeAnimationConfig()
|
|
79
|
+
return {
|
|
80
|
+
type: 'tracking',
|
|
81
|
+
animationId: generateNewAnimationId(),
|
|
82
|
+
animationConfig,
|
|
83
|
+
toValue: this._parent.__getNativeTag(),
|
|
84
|
+
value: this._value.__getNativeTag(),
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
export { AnimatedTracking }
|
|
90
|
+
export default AnimatedTracking
|