@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,518 @@
|
|
|
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 { View } from '../../../View'
|
|
12
|
+
import { deepDiffer } from '../deepDiffer'
|
|
13
|
+
import { Platform } from '../../../exports/Platform'
|
|
14
|
+
import { invariant, StyleSheet } from '@hanzogui/react-native-web-internals'
|
|
15
|
+
import * as React from 'react'
|
|
16
|
+
|
|
17
|
+
import { VirtualizedList } from '../VirtualizedList'
|
|
18
|
+
import { keyExtractor as defaultKeyExtractor } from '../VirtualizeUtils'
|
|
19
|
+
|
|
20
|
+
import memoizeOne from 'memoize-one'
|
|
21
|
+
|
|
22
|
+
// Props interface removed - Flow types converted
|
|
23
|
+
/**
|
|
24
|
+
* Takes an item from `data` and renders it into the list. Example usage:
|
|
25
|
+
*
|
|
26
|
+
* <FlatList
|
|
27
|
+
* ItemSeparatorComponent={Platform.OS !== 'android' && ({highlighted}) => (
|
|
28
|
+
*
|
|
29
|
+
* )}
|
|
30
|
+
* data={[{title: 'Title Text', key: 'item1'}]}
|
|
31
|
+
* renderItem={({item, separators}) => (
|
|
32
|
+
* <TouchableHighlight
|
|
33
|
+
* onPress={() => this._onPress(item)}
|
|
34
|
+
* onShowUnderlay={separators.highlight}
|
|
35
|
+
* onHideUnderlay={separators.unhighlight}>
|
|
36
|
+
*
|
|
37
|
+
* <Text>{item.title}</Text>
|
|
38
|
+
* </View>
|
|
39
|
+
* </TouchableHighlight>
|
|
40
|
+
* )}
|
|
41
|
+
* />
|
|
42
|
+
*
|
|
43
|
+
* Provides additional metadata like `index` if you need it, as well as a more generic
|
|
44
|
+
* `separators.updateProps` function which let's you set whatever props you want to change the
|
|
45
|
+
* rendering of either the leading separator or trailing separator in case the more common
|
|
46
|
+
* `highlight` and `unhighlight` (which set the `highlighted: boolean` prop) are insufficient for
|
|
47
|
+
* your use-case.
|
|
48
|
+
*/
|
|
49
|
+
// Props interface removed - Flow types converted
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* Default Props Helper Functions
|
|
53
|
+
* Use the following helper functions for default values
|
|
54
|
+
*/
|
|
55
|
+
|
|
56
|
+
// removeClippedSubviewsOrDefault(this.props.removeClippedSubviews)
|
|
57
|
+
function removeClippedSubviewsOrDefault(removeClippedSubviews) {
|
|
58
|
+
return removeClippedSubviews ?? Platform.OS === 'android'
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
// numColumnsOrDefault(this.props.numColumns)
|
|
62
|
+
function numColumnsOrDefault(numColumns) {
|
|
63
|
+
return numColumns ?? 1
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
function isArrayLike(data) {
|
|
67
|
+
return typeof Object(data).length === 'number'
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
// Complex type definitions removed - Flow types converted
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* A performant interface for rendering simple, flat lists, supporting the most handy features:
|
|
74
|
+
*
|
|
75
|
+
* - Fully cross-platform.
|
|
76
|
+
* - Optional horizontal mode.
|
|
77
|
+
* - Configurable viewability callbacks.
|
|
78
|
+
* - Header support.
|
|
79
|
+
* - Footer support.
|
|
80
|
+
* - Separator support.
|
|
81
|
+
* - Pull to Refresh.
|
|
82
|
+
* - Scroll loading.
|
|
83
|
+
* - ScrollToIndex support.
|
|
84
|
+
*
|
|
85
|
+
* If you need section support, use [`<SectionList>`](docs/sectionlist.html).
|
|
86
|
+
*
|
|
87
|
+
* Minimal Example:
|
|
88
|
+
*
|
|
89
|
+
* <FlatList
|
|
90
|
+
* data={[{key: 'a'}, {key: 'b'}]}
|
|
91
|
+
* renderItem={({item}) => <Text>{item.key}</Text>}
|
|
92
|
+
* />
|
|
93
|
+
*
|
|
94
|
+
* More complex, multi-select example demonstrating `PureComponent` usage for perf optimization and avoiding bugs.
|
|
95
|
+
*
|
|
96
|
+
* - By binding the `onPressItem` handler, the props will remain `===` and `PureComponent` will
|
|
97
|
+
* prevent wasteful re-renders unless the actual `id`, `selected`, or `title` props change, even
|
|
98
|
+
* if the components rendered in `MyListItem` did not have such optimizations.
|
|
99
|
+
* - By passing `extraData={this.state}` to `FlatList` we make sure `FlatList` itself will re-render
|
|
100
|
+
* when the `state.selected` changes. Without setting this prop, `FlatList` would not know it
|
|
101
|
+
* needs to re-render any items because it is also a `PureComponent` and the prop comparison will
|
|
102
|
+
* not show any changes.
|
|
103
|
+
* - `keyExtractor` tells the list to use the `id`s for the react keys instead of the default `key` property.
|
|
104
|
+
*
|
|
105
|
+
*
|
|
106
|
+
* class MyListItem extends React.PureComponent {
|
|
107
|
+
* _onPress = () => {
|
|
108
|
+
* this.props.onPressItem(this.props.id);
|
|
109
|
+
* };
|
|
110
|
+
*
|
|
111
|
+
* render() {
|
|
112
|
+
* const textColor = this.props.selected ? "red" : "black";
|
|
113
|
+
* return (
|
|
114
|
+
* <TouchableOpacity onPress={this._onPress}>
|
|
115
|
+
* <View>
|
|
116
|
+
*
|
|
117
|
+
* {this.props.title}
|
|
118
|
+
* </Text>
|
|
119
|
+
* </View>
|
|
120
|
+
* </TouchableOpacity>
|
|
121
|
+
* );
|
|
122
|
+
* }
|
|
123
|
+
* }
|
|
124
|
+
*
|
|
125
|
+
* class MultiSelectList extends React.PureComponent {
|
|
126
|
+
* state = {selected: new Map()};
|
|
127
|
+
*
|
|
128
|
+
* _keyExtractor = (item, index) => item.id;
|
|
129
|
+
*
|
|
130
|
+
* _onPressItem = (id) => {
|
|
131
|
+
* // updater functions are preferred for transactional updates
|
|
132
|
+
* this.setState((state) => {
|
|
133
|
+
* // copy the map rather than modifying state.
|
|
134
|
+
* const selected = new Map(state.selected);
|
|
135
|
+
* selected.set(id, !selected.get(id)); // toggle
|
|
136
|
+
* return {selected};
|
|
137
|
+
* });
|
|
138
|
+
* };
|
|
139
|
+
*
|
|
140
|
+
* _renderItem = ({item}) => (
|
|
141
|
+
* <MyListItem
|
|
142
|
+
* id={item.id}
|
|
143
|
+
* onPressItem={this._onPressItem}
|
|
144
|
+
* selected={!!this.state.selected.get(item.id)}
|
|
145
|
+
* title={item.title}
|
|
146
|
+
* />
|
|
147
|
+
* );
|
|
148
|
+
*
|
|
149
|
+
* render() {
|
|
150
|
+
* return (
|
|
151
|
+
* <FlatList
|
|
152
|
+
* data={this.props.data}
|
|
153
|
+
* extraData={this.state}
|
|
154
|
+
* keyExtractor={this._keyExtractor}
|
|
155
|
+
* renderItem={this._renderItem}
|
|
156
|
+
* />
|
|
157
|
+
* );
|
|
158
|
+
* }
|
|
159
|
+
* }
|
|
160
|
+
*
|
|
161
|
+
* This is a convenience wrapper around [`<VirtualizedList>`](docs/virtualizedlist.html),
|
|
162
|
+
* and thus inherits its props (as well as those of `ScrollView`) that aren't explicitly listed
|
|
163
|
+
* here, along with the following caveats:
|
|
164
|
+
*
|
|
165
|
+
* - Internal state is not preserved when content scrolls out of the render window. Make sure all
|
|
166
|
+
* your data is captured in the item data or external stores like Flux, Redux, or Relay.
|
|
167
|
+
* - This is a `PureComponent` which means that it will not re-render if `props` remain shallow-
|
|
168
|
+
* equal. Make sure that everything your `renderItem` function depends on is passed as a prop
|
|
169
|
+
* (e.g. `extraData`) that is not `===` after updates, otherwise your UI may not update on
|
|
170
|
+
* changes. This includes the `data` prop and parent component state.
|
|
171
|
+
* - In order to constrain memory and enable smooth scrolling, content is rendered asynchronously
|
|
172
|
+
* offscreen. This means it's possible to scroll faster than the fill rate ands momentarily see
|
|
173
|
+
* blank content. This is a tradeoff that can be adjusted to suit the needs of each application,
|
|
174
|
+
* and we are working on improving it behind the scenes.
|
|
175
|
+
* - By default, the list looks for a `key` prop on each item and uses that for the React key.
|
|
176
|
+
* Alternatively, you can provide a custom `keyExtractor` prop.
|
|
177
|
+
*
|
|
178
|
+
* Also inherits [ScrollView Props](docs/scrollview.html#props), unless it is nested in another FlatList of same orientation.
|
|
179
|
+
*/
|
|
180
|
+
class FlatList extends React.PureComponent {
|
|
181
|
+
/**
|
|
182
|
+
* Scrolls to the end of the content. May be janky without `getItemLayout` prop.
|
|
183
|
+
*/
|
|
184
|
+
scrollToEnd(params) {
|
|
185
|
+
if (this._listRef) {
|
|
186
|
+
this._listRef.scrollToEnd(params)
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
/**
|
|
191
|
+
* Scrolls to the item at the specified index such that it is positioned in the viewable area
|
|
192
|
+
* such that `viewPosition` 0 places it at the top, 1 at the bottom, and 0.5 centered in the
|
|
193
|
+
* middle. `viewOffset` is a fixed number of pixels to offset the final target position.
|
|
194
|
+
*
|
|
195
|
+
* Note: cannot scroll to locations outside the render window without specifying the
|
|
196
|
+
* `getItemLayout` prop.
|
|
197
|
+
*/
|
|
198
|
+
scrollToIndex(params) {
|
|
199
|
+
if (this._listRef) {
|
|
200
|
+
this._listRef.scrollToIndex(params)
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
/**
|
|
205
|
+
* Requires linear scan through data - use `scrollToIndex` instead if possible.
|
|
206
|
+
*
|
|
207
|
+
* Note: cannot scroll to locations outside the render window without specifying the
|
|
208
|
+
* `getItemLayout` prop.
|
|
209
|
+
*/
|
|
210
|
+
scrollToItem(params) {
|
|
211
|
+
if (this._listRef) {
|
|
212
|
+
this._listRef.scrollToItem(params)
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
/**
|
|
217
|
+
* Scroll to a specific content pixel offset in the list.
|
|
218
|
+
*
|
|
219
|
+
* Check out [scrollToOffset](docs/virtualizedlist.html#scrolltooffset) of VirtualizedList
|
|
220
|
+
*/
|
|
221
|
+
scrollToOffset(params) {
|
|
222
|
+
if (this._listRef) {
|
|
223
|
+
this._listRef.scrollToOffset(params)
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
/**
|
|
228
|
+
* Tells the list an interaction has occurred, which should trigger viewability calculations, e.g.
|
|
229
|
+
* if `waitForInteractions` is true and the user has not scrolled. This is typically called by
|
|
230
|
+
* taps on items or by navigation actions.
|
|
231
|
+
*/
|
|
232
|
+
recordInteraction() {
|
|
233
|
+
if (this._listRef) {
|
|
234
|
+
this._listRef.recordInteraction()
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
/**
|
|
239
|
+
* Displays the scroll indicators momentarily.
|
|
240
|
+
*
|
|
241
|
+
* @platform ios
|
|
242
|
+
*/
|
|
243
|
+
flashScrollIndicators() {
|
|
244
|
+
if (this._listRef) {
|
|
245
|
+
this._listRef.flashScrollIndicators()
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
/**
|
|
250
|
+
* Provides a handle to the underlying scroll responder.
|
|
251
|
+
*/
|
|
252
|
+
getScrollResponder() {
|
|
253
|
+
if (this._listRef) {
|
|
254
|
+
return this._listRef.getScrollResponder()
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
/**
|
|
259
|
+
* Provides a reference to the underlying host component
|
|
260
|
+
*/
|
|
261
|
+
getNativeScrollRef() {
|
|
262
|
+
if (this._listRef) {
|
|
263
|
+
return this._listRef.getScrollRef()
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
getScrollableNode() {
|
|
268
|
+
if (this._listRef) {
|
|
269
|
+
return this._listRef.getScrollableNode()
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
constructor(props) {
|
|
274
|
+
super(props)
|
|
275
|
+
this._checkProps(this.props)
|
|
276
|
+
if (this.props.viewabilityConfigCallbackPairs) {
|
|
277
|
+
this._virtualizedListPairs = this.props.viewabilityConfigCallbackPairs.map(
|
|
278
|
+
(pair) => ({
|
|
279
|
+
viewabilityConfig: pair.viewabilityConfig,
|
|
280
|
+
onViewableItemsChanged: this._createOnViewableItemsChanged(
|
|
281
|
+
pair.onViewableItemsChanged
|
|
282
|
+
),
|
|
283
|
+
})
|
|
284
|
+
)
|
|
285
|
+
} else if (this.props.onViewableItemsChanged) {
|
|
286
|
+
this._virtualizedListPairs.push({
|
|
287
|
+
viewabilityConfig: this.props.viewabilityConfig,
|
|
288
|
+
onViewableItemsChanged: this._createOnViewableItemsChanged(
|
|
289
|
+
this.props.onViewableItemsChanged
|
|
290
|
+
),
|
|
291
|
+
})
|
|
292
|
+
}
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
componentDidUpdate(prevProps) {
|
|
296
|
+
invariant(
|
|
297
|
+
prevProps.numColumns === this.props.numColumns,
|
|
298
|
+
'Changing numColumns on the fly is not supported. Change the key prop on FlatList when ' +
|
|
299
|
+
'changing the number of columns to force a fresh render of the component.'
|
|
300
|
+
)
|
|
301
|
+
invariant(
|
|
302
|
+
prevProps.onViewableItemsChanged === this.props.onViewableItemsChanged,
|
|
303
|
+
'Changing onViewableItemsChanged on the fly is not supported'
|
|
304
|
+
)
|
|
305
|
+
invariant(
|
|
306
|
+
!deepDiffer(prevProps.viewabilityConfig, this.props.viewabilityConfig),
|
|
307
|
+
'Changing viewabilityConfig on the fly is not supported'
|
|
308
|
+
)
|
|
309
|
+
invariant(
|
|
310
|
+
prevProps.viewabilityConfigCallbackPairs ===
|
|
311
|
+
this.props.viewabilityConfigCallbackPairs,
|
|
312
|
+
'Changing viewabilityConfigCallbackPairs on the fly is not supported'
|
|
313
|
+
)
|
|
314
|
+
|
|
315
|
+
this._checkProps(this.props)
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
_listRef
|
|
319
|
+
_virtualizedListPairs = []
|
|
320
|
+
|
|
321
|
+
_captureRef = (ref) => {
|
|
322
|
+
this._listRef = ref
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
_checkProps(props) {
|
|
326
|
+
const {
|
|
327
|
+
getItem,
|
|
328
|
+
getItemCount,
|
|
329
|
+
horizontal,
|
|
330
|
+
columnWrapperStyle,
|
|
331
|
+
onViewableItemsChanged,
|
|
332
|
+
viewabilityConfigCallbackPairs,
|
|
333
|
+
} = props
|
|
334
|
+
const numColumns = numColumnsOrDefault(this.props.numColumns)
|
|
335
|
+
invariant(!getItem && !getItemCount, 'FlatList does not support custom data formats.')
|
|
336
|
+
if (numColumns > 1) {
|
|
337
|
+
invariant(!horizontal, 'numColumns does not support horizontal.')
|
|
338
|
+
} else {
|
|
339
|
+
invariant(
|
|
340
|
+
!columnWrapperStyle,
|
|
341
|
+
'columnWrapperStyle not supported for single column lists'
|
|
342
|
+
)
|
|
343
|
+
}
|
|
344
|
+
invariant(
|
|
345
|
+
!(onViewableItemsChanged && viewabilityConfigCallbackPairs),
|
|
346
|
+
'FlatList does not support setting both onViewableItemsChanged and ' +
|
|
347
|
+
'viewabilityConfigCallbackPairs.'
|
|
348
|
+
)
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
_getItem = (data, index) => {
|
|
352
|
+
const numColumns = numColumnsOrDefault(this.props.numColumns)
|
|
353
|
+
if (numColumns > 1) {
|
|
354
|
+
const ret = []
|
|
355
|
+
for (let kk = 0; kk < numColumns; kk++) {
|
|
356
|
+
const itemIndex = index * numColumns + kk
|
|
357
|
+
if (itemIndex < data.length) {
|
|
358
|
+
const item = data[itemIndex]
|
|
359
|
+
ret.push(item)
|
|
360
|
+
}
|
|
361
|
+
}
|
|
362
|
+
return ret
|
|
363
|
+
} else {
|
|
364
|
+
return data[index]
|
|
365
|
+
}
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
_getItemCount = (data) => {
|
|
369
|
+
// Legacy behavior of FlatList was to forward "undefined" length if invalid
|
|
370
|
+
// data like a non-arraylike object is passed. VirtualizedList would then
|
|
371
|
+
// coerce this, and the math would work out to no-op. For compatibility, if
|
|
372
|
+
// invalid data is passed, we tell VirtualizedList there are zero items
|
|
373
|
+
// available to prevent it from trying to read from the invalid data
|
|
374
|
+
// (without propagating invalidly typed data).
|
|
375
|
+
if (data != null && isArrayLike(data)) {
|
|
376
|
+
const numColumns = numColumnsOrDefault(this.props.numColumns)
|
|
377
|
+
return numColumns > 1 ? Math.ceil(data.length / numColumns) : data.length
|
|
378
|
+
} else {
|
|
379
|
+
return 0
|
|
380
|
+
}
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
_keyExtractor = (items, index) => {
|
|
384
|
+
const numColumns = numColumnsOrDefault(this.props.numColumns)
|
|
385
|
+
const keyExtractor = this.props.keyExtractor ?? defaultKeyExtractor
|
|
386
|
+
|
|
387
|
+
if (numColumns > 1) {
|
|
388
|
+
invariant(
|
|
389
|
+
Array.isArray(items),
|
|
390
|
+
'FlatList: Encountered internal consistency error, expected each item to consist of an ' +
|
|
391
|
+
'array with 1-%s columns; instead, received a single item.',
|
|
392
|
+
numColumns
|
|
393
|
+
)
|
|
394
|
+
return items
|
|
395
|
+
.map((item, kk) => keyExtractor(item, index * numColumns + kk))
|
|
396
|
+
.join(':')
|
|
397
|
+
}
|
|
398
|
+
|
|
399
|
+
return keyExtractor(items, index)
|
|
400
|
+
}
|
|
401
|
+
|
|
402
|
+
_pushMultiColumnViewable(arr, v) {
|
|
403
|
+
const numColumns = numColumnsOrDefault(this.props.numColumns)
|
|
404
|
+
const keyExtractor = this.props.keyExtractor ?? defaultKeyExtractor
|
|
405
|
+
v.item.forEach((item, ii) => {
|
|
406
|
+
invariant(v.index != null, 'Missing index!')
|
|
407
|
+
const index = v.index * numColumns + ii
|
|
408
|
+
arr.push({ ...v, item, key: keyExtractor(item, index), index })
|
|
409
|
+
})
|
|
410
|
+
}
|
|
411
|
+
|
|
412
|
+
_createOnViewableItemsChanged(onViewableItemsChanged) {
|
|
413
|
+
return (info) => {
|
|
414
|
+
const numColumns = numColumnsOrDefault(this.props.numColumns)
|
|
415
|
+
if (onViewableItemsChanged) {
|
|
416
|
+
if (numColumns > 1) {
|
|
417
|
+
const changed = []
|
|
418
|
+
const viewableItems = []
|
|
419
|
+
info.viewableItems.forEach((v) =>
|
|
420
|
+
this._pushMultiColumnViewable(viewableItems, v)
|
|
421
|
+
)
|
|
422
|
+
info.changed.forEach((v) => this._pushMultiColumnViewable(changed, v))
|
|
423
|
+
onViewableItemsChanged({ viewableItems, changed })
|
|
424
|
+
} else {
|
|
425
|
+
onViewableItemsChanged(info)
|
|
426
|
+
}
|
|
427
|
+
}
|
|
428
|
+
}
|
|
429
|
+
}
|
|
430
|
+
|
|
431
|
+
_renderer = (
|
|
432
|
+
ListItemComponent,
|
|
433
|
+
renderItem,
|
|
434
|
+
columnWrapperStyle,
|
|
435
|
+
numColumns,
|
|
436
|
+
extraData
|
|
437
|
+
) => {
|
|
438
|
+
const cols = numColumnsOrDefault(numColumns)
|
|
439
|
+
|
|
440
|
+
const render = (props) => {
|
|
441
|
+
if (ListItemComponent) {
|
|
442
|
+
return <ListItemComponent {...props} />
|
|
443
|
+
} else if (renderItem) {
|
|
444
|
+
return renderItem(props)
|
|
445
|
+
} else {
|
|
446
|
+
return null
|
|
447
|
+
}
|
|
448
|
+
}
|
|
449
|
+
|
|
450
|
+
const renderProp = (info) => {
|
|
451
|
+
if (cols > 1) {
|
|
452
|
+
const { item, index } = info
|
|
453
|
+
invariant(Array.isArray(item), 'Expected array of items with numColumns > 1')
|
|
454
|
+
return (
|
|
455
|
+
<View style={[styles.row, columnWrapperStyle]}>
|
|
456
|
+
{item.map((it, kk) => {
|
|
457
|
+
const element = render({
|
|
458
|
+
item: it,
|
|
459
|
+
index: index * cols + kk,
|
|
460
|
+
separators: info.separators,
|
|
461
|
+
})
|
|
462
|
+
return element != null ? (
|
|
463
|
+
<React.Fragment key={kk}>{element}</React.Fragment>
|
|
464
|
+
) : null
|
|
465
|
+
})}
|
|
466
|
+
</View>
|
|
467
|
+
)
|
|
468
|
+
} else {
|
|
469
|
+
return render(info)
|
|
470
|
+
}
|
|
471
|
+
}
|
|
472
|
+
|
|
473
|
+
return ListItemComponent
|
|
474
|
+
? { ListItemComponent: renderProp }
|
|
475
|
+
: { renderItem: renderProp }
|
|
476
|
+
}
|
|
477
|
+
|
|
478
|
+
// $FlowFixMe[missing-local-annot]
|
|
479
|
+
_memoizedRenderer = memoizeOne(this._renderer)
|
|
480
|
+
|
|
481
|
+
render() {
|
|
482
|
+
const {
|
|
483
|
+
numColumns,
|
|
484
|
+
columnWrapperStyle,
|
|
485
|
+
removeClippedSubviews: _removeClippedSubviews,
|
|
486
|
+
strictMode = false,
|
|
487
|
+
...restProps
|
|
488
|
+
} = this.props
|
|
489
|
+
|
|
490
|
+
const renderer = strictMode ? this._memoizedRenderer : this._renderer
|
|
491
|
+
|
|
492
|
+
return (
|
|
493
|
+
<VirtualizedList
|
|
494
|
+
{...restProps}
|
|
495
|
+
getItem={this._getItem}
|
|
496
|
+
getItemCount={this._getItemCount}
|
|
497
|
+
keyExtractor={this._keyExtractor}
|
|
498
|
+
ref={this._captureRef}
|
|
499
|
+
viewabilityConfigCallbackPairs={this._virtualizedListPairs}
|
|
500
|
+
removeClippedSubviews={removeClippedSubviewsOrDefault(_removeClippedSubviews)}
|
|
501
|
+
{...renderer(
|
|
502
|
+
this.props.ListItemComponent,
|
|
503
|
+
this.props.renderItem,
|
|
504
|
+
columnWrapperStyle,
|
|
505
|
+
numColumns,
|
|
506
|
+
this.props.extraData
|
|
507
|
+
)}
|
|
508
|
+
/>
|
|
509
|
+
)
|
|
510
|
+
}
|
|
511
|
+
}
|
|
512
|
+
|
|
513
|
+
const styles = StyleSheet.create({
|
|
514
|
+
row: { flexDirection: 'row' },
|
|
515
|
+
})
|
|
516
|
+
|
|
517
|
+
export { FlatList }
|
|
518
|
+
export default FlatList
|
|
@@ -0,0 +1,85 @@
|
|
|
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
|
+
'use strict'
|
|
12
|
+
|
|
13
|
+
import { infoLog } from '../infoLog'
|
|
14
|
+
|
|
15
|
+
// Handler interface removed
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* A utility for tracking stalls in the JS event loop that prevent timers and
|
|
19
|
+
* other events from being processed in a timely manner.
|
|
20
|
+
*
|
|
21
|
+
* The "stall" time is defined as the amount of time in access of the acceptable
|
|
22
|
+
* threshold, which is typically around 100-200ms. So if the treshold is set to
|
|
23
|
+
* 100 and a timer fires 150 ms later than it was scheduled because the event
|
|
24
|
+
* loop was tied up, that would be considered a 50ms stall.
|
|
25
|
+
*
|
|
26
|
+
* By default, logs stall events to the console when installed. Can also be
|
|
27
|
+
* queried with `getStats`.
|
|
28
|
+
*/
|
|
29
|
+
const JSEventLoopWatchdog = {
|
|
30
|
+
getStats: function () {
|
|
31
|
+
return { stallCount, totalStallTime, longestStall, acceptableBusyTime }
|
|
32
|
+
},
|
|
33
|
+
reset: function () {
|
|
34
|
+
infoLog('JSEventLoopWatchdog: reset')
|
|
35
|
+
totalStallTime = 0
|
|
36
|
+
stallCount = 0
|
|
37
|
+
longestStall = 0
|
|
38
|
+
lastInterval = window.performance.now()
|
|
39
|
+
},
|
|
40
|
+
addHandler: function (handler) {
|
|
41
|
+
handlers.push(handler)
|
|
42
|
+
},
|
|
43
|
+
install: function ({ thresholdMS }) {
|
|
44
|
+
acceptableBusyTime = thresholdMS
|
|
45
|
+
if (installed) {
|
|
46
|
+
return
|
|
47
|
+
}
|
|
48
|
+
installed = true
|
|
49
|
+
lastInterval = window.performance.now()
|
|
50
|
+
function iteration() {
|
|
51
|
+
const now = window.performance.now()
|
|
52
|
+
const busyTime = now - lastInterval
|
|
53
|
+
if (busyTime >= thresholdMS) {
|
|
54
|
+
const stallTime = busyTime - thresholdMS
|
|
55
|
+
stallCount++
|
|
56
|
+
totalStallTime += stallTime
|
|
57
|
+
longestStall = Math.max(longestStall, stallTime)
|
|
58
|
+
let msg =
|
|
59
|
+
`JSEventLoopWatchdog: JS thread busy for ${busyTime}ms. ` +
|
|
60
|
+
`${totalStallTime}ms in ${stallCount} stalls so far. `
|
|
61
|
+
handlers.forEach((handler) => {
|
|
62
|
+
msg += handler.onStall({ lastInterval, busyTime }) || ''
|
|
63
|
+
})
|
|
64
|
+
infoLog(msg)
|
|
65
|
+
}
|
|
66
|
+
handlers.forEach((handler) => {
|
|
67
|
+
handler.onIterate && handler.onIterate()
|
|
68
|
+
})
|
|
69
|
+
lastInterval = now
|
|
70
|
+
setTimeout(iteration, thresholdMS / 5)
|
|
71
|
+
}
|
|
72
|
+
iteration()
|
|
73
|
+
},
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
let acceptableBusyTime = 0
|
|
77
|
+
let installed = false
|
|
78
|
+
let totalStallTime = 0
|
|
79
|
+
let stallCount = 0
|
|
80
|
+
let longestStall = 0
|
|
81
|
+
let lastInterval = 0
|
|
82
|
+
const handlers = []
|
|
83
|
+
|
|
84
|
+
export { JSEventLoopWatchdog }
|
|
85
|
+
export default JSEventLoopWatchdog
|