@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,31 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all) __defProp(target, name, {
|
|
7
|
+
get: all[name],
|
|
8
|
+
enumerable: true
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
14
|
+
get: () => from[key],
|
|
15
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
21
|
+
value: true
|
|
22
|
+
}), mod);
|
|
23
|
+
var RCTDeviceEventEmitter_exports = {};
|
|
24
|
+
__export(RCTDeviceEventEmitter_exports, {
|
|
25
|
+
RCTDeviceEventEmitter: () => RCTDeviceEventEmitter,
|
|
26
|
+
default: () => RCTDeviceEventEmitter_default
|
|
27
|
+
});
|
|
28
|
+
module.exports = __toCommonJS(RCTDeviceEventEmitter_exports);
|
|
29
|
+
var import_EventEmitter = require("../emitter/EventEmitter.cjs");
|
|
30
|
+
const RCTDeviceEventEmitter = new import_EventEmitter.EventEmitter();
|
|
31
|
+
var RCTDeviceEventEmitter_default = RCTDeviceEventEmitter;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all) __defProp(target, name, {
|
|
7
|
+
get: all[name],
|
|
8
|
+
enumerable: true
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
14
|
+
get: () => from[key],
|
|
15
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
21
|
+
value: true
|
|
22
|
+
}), mod);
|
|
23
|
+
var FeatureFlags_exports = {};
|
|
24
|
+
__export(FeatureFlags_exports, {
|
|
25
|
+
ReactNativeFeatureFlags: () => ReactNativeFeatureFlags
|
|
26
|
+
});
|
|
27
|
+
module.exports = __toCommonJS(FeatureFlags_exports);
|
|
28
|
+
const ReactNativeFeatureFlags = {
|
|
29
|
+
isLayoutAnimationEnabled: () => true,
|
|
30
|
+
shouldEmitW3CPointerEvents: () => false,
|
|
31
|
+
shouldPressibilityUseW3CPointerEventsForHover: () => false,
|
|
32
|
+
animatedShouldDebounceQueueFlush: () => false,
|
|
33
|
+
animatedShouldUseSingleOp: () => false,
|
|
34
|
+
enableCppComponents: () => false
|
|
35
|
+
};
|
|
@@ -0,0 +1,189 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all) __defProp(target, name, {
|
|
7
|
+
get: all[name],
|
|
8
|
+
enumerable: true
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
14
|
+
get: () => from[key],
|
|
15
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
21
|
+
value: true
|
|
22
|
+
}), mod);
|
|
23
|
+
var FillRateHelper_exports = {};
|
|
24
|
+
__export(FillRateHelper_exports, {
|
|
25
|
+
FillRateHelper: () => FillRateHelper,
|
|
26
|
+
default: () => FillRateHelper_default
|
|
27
|
+
});
|
|
28
|
+
module.exports = __toCommonJS(FillRateHelper_exports);
|
|
29
|
+
class Info {
|
|
30
|
+
any_blank_count = 0;
|
|
31
|
+
any_blank_ms = 0;
|
|
32
|
+
any_blank_speed_sum = 0;
|
|
33
|
+
mostly_blank_count = 0;
|
|
34
|
+
mostly_blank_ms = 0;
|
|
35
|
+
pixels_blank = 0;
|
|
36
|
+
pixels_sampled = 0;
|
|
37
|
+
pixels_scrolled = 0;
|
|
38
|
+
total_time_spent = 0;
|
|
39
|
+
sample_count = 0;
|
|
40
|
+
}
|
|
41
|
+
const DEBUG = false;
|
|
42
|
+
let _listeners = [];
|
|
43
|
+
let _minSampleCount = 10;
|
|
44
|
+
let _sampleRate = DEBUG ? 1 : null;
|
|
45
|
+
class FillRateHelper {
|
|
46
|
+
_anyBlankStartTime = null;
|
|
47
|
+
_enabled = false;
|
|
48
|
+
_getFrameMetrics;
|
|
49
|
+
_info = new Info();
|
|
50
|
+
_mostlyBlankStartTime = null;
|
|
51
|
+
_samplesStartTime = null;
|
|
52
|
+
static addListener(callback) {
|
|
53
|
+
if (_sampleRate === null) {
|
|
54
|
+
console.warn("Call `FillRateHelper.setSampleRate` before `addListener`.");
|
|
55
|
+
}
|
|
56
|
+
_listeners.push(callback);
|
|
57
|
+
return {
|
|
58
|
+
remove: () => {
|
|
59
|
+
_listeners = _listeners.filter(listener => callback !== listener);
|
|
60
|
+
}
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
static setSampleRate(sampleRate) {
|
|
64
|
+
_sampleRate = sampleRate;
|
|
65
|
+
}
|
|
66
|
+
static setMinSampleCount(minSampleCount) {
|
|
67
|
+
_minSampleCount = minSampleCount;
|
|
68
|
+
}
|
|
69
|
+
constructor(getFrameMetrics) {
|
|
70
|
+
this._getFrameMetrics = getFrameMetrics;
|
|
71
|
+
this._enabled = (_sampleRate || 0) > Math.random();
|
|
72
|
+
this._resetData();
|
|
73
|
+
}
|
|
74
|
+
activate() {
|
|
75
|
+
if (this._enabled && this._samplesStartTime == null) {
|
|
76
|
+
DEBUG && console.debug("FillRateHelper: activate");
|
|
77
|
+
this._samplesStartTime = global.performance.now();
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
deactivateAndFlush() {
|
|
81
|
+
if (!this._enabled) {
|
|
82
|
+
return;
|
|
83
|
+
}
|
|
84
|
+
const start = this._samplesStartTime;
|
|
85
|
+
if (start == null) {
|
|
86
|
+
DEBUG && console.debug("FillRateHelper: bail on deactivate with no start time");
|
|
87
|
+
return;
|
|
88
|
+
}
|
|
89
|
+
if (this._info.sample_count < _minSampleCount) {
|
|
90
|
+
this._resetData();
|
|
91
|
+
return;
|
|
92
|
+
}
|
|
93
|
+
const total_time_spent = global.performance.now() - start;
|
|
94
|
+
const info = {
|
|
95
|
+
...this._info,
|
|
96
|
+
total_time_spent
|
|
97
|
+
};
|
|
98
|
+
if (DEBUG) {
|
|
99
|
+
const derived = {
|
|
100
|
+
avg_blankness: this._info.pixels_blank / this._info.pixels_sampled,
|
|
101
|
+
avg_speed: this._info.pixels_scrolled / (total_time_spent / 1e3),
|
|
102
|
+
avg_speed_when_any_blank: this._info.any_blank_speed_sum / this._info.any_blank_count,
|
|
103
|
+
any_blank_per_min: this._info.any_blank_count / (total_time_spent / 1e3 / 60),
|
|
104
|
+
any_blank_time_frac: this._info.any_blank_ms / total_time_spent,
|
|
105
|
+
mostly_blank_per_min: this._info.mostly_blank_count / (total_time_spent / 1e3 / 60),
|
|
106
|
+
mostly_blank_time_frac: this._info.mostly_blank_ms / total_time_spent
|
|
107
|
+
};
|
|
108
|
+
for (const key in derived) {
|
|
109
|
+
derived[key] = Math.round(1e3 * derived[key]) / 1e3;
|
|
110
|
+
}
|
|
111
|
+
console.debug("FillRateHelper deactivateAndFlush: ", {
|
|
112
|
+
derived,
|
|
113
|
+
info
|
|
114
|
+
});
|
|
115
|
+
}
|
|
116
|
+
_listeners.forEach(listener => listener(info));
|
|
117
|
+
this._resetData();
|
|
118
|
+
}
|
|
119
|
+
computeBlankness(props, cellsAroundViewport, scrollMetrics) {
|
|
120
|
+
if (!this._enabled || props.getItemCount(props.data) === 0 || cellsAroundViewport.last < cellsAroundViewport.first || this._samplesStartTime == null) {
|
|
121
|
+
return 0;
|
|
122
|
+
}
|
|
123
|
+
const {
|
|
124
|
+
dOffset,
|
|
125
|
+
offset,
|
|
126
|
+
velocity,
|
|
127
|
+
visibleLength
|
|
128
|
+
} = scrollMetrics;
|
|
129
|
+
this._info.sample_count++;
|
|
130
|
+
this._info.pixels_sampled += Math.round(visibleLength);
|
|
131
|
+
this._info.pixels_scrolled += Math.round(Math.abs(dOffset));
|
|
132
|
+
const scrollSpeed = Math.round(Math.abs(velocity) * 1e3);
|
|
133
|
+
const now = global.performance.now();
|
|
134
|
+
if (this._anyBlankStartTime != null) {
|
|
135
|
+
this._info.any_blank_ms += now - this._anyBlankStartTime;
|
|
136
|
+
}
|
|
137
|
+
this._anyBlankStartTime = null;
|
|
138
|
+
if (this._mostlyBlankStartTime != null) {
|
|
139
|
+
this._info.mostly_blank_ms += now - this._mostlyBlankStartTime;
|
|
140
|
+
}
|
|
141
|
+
this._mostlyBlankStartTime = null;
|
|
142
|
+
let blankTop = 0;
|
|
143
|
+
let first = cellsAroundViewport.first;
|
|
144
|
+
let firstFrame = this._getFrameMetrics(first, props);
|
|
145
|
+
while (first <= cellsAroundViewport.last && (!firstFrame || !firstFrame.inLayout)) {
|
|
146
|
+
firstFrame = this._getFrameMetrics(first, props);
|
|
147
|
+
first++;
|
|
148
|
+
}
|
|
149
|
+
if (firstFrame && first > 0) {
|
|
150
|
+
blankTop = Math.min(visibleLength, Math.max(0, firstFrame.offset - offset));
|
|
151
|
+
}
|
|
152
|
+
let blankBottom = 0;
|
|
153
|
+
let last = cellsAroundViewport.last;
|
|
154
|
+
let lastFrame = this._getFrameMetrics(last, props);
|
|
155
|
+
while (last >= cellsAroundViewport.first && (!lastFrame || !lastFrame.inLayout)) {
|
|
156
|
+
lastFrame = this._getFrameMetrics(last, props);
|
|
157
|
+
last--;
|
|
158
|
+
}
|
|
159
|
+
if (lastFrame && last < props.getItemCount(props.data) - 1) {
|
|
160
|
+
const bottomEdge = lastFrame.offset + lastFrame.length;
|
|
161
|
+
blankBottom = Math.min(visibleLength, Math.max(0, offset + visibleLength - bottomEdge));
|
|
162
|
+
}
|
|
163
|
+
const pixels_blank = Math.round(blankTop + blankBottom);
|
|
164
|
+
const blankness = pixels_blank / visibleLength;
|
|
165
|
+
if (blankness > 0) {
|
|
166
|
+
this._anyBlankStartTime = now;
|
|
167
|
+
this._info.any_blank_speed_sum += scrollSpeed;
|
|
168
|
+
this._info.any_blank_count++;
|
|
169
|
+
this._info.pixels_blank += pixels_blank;
|
|
170
|
+
if (blankness > 0.5) {
|
|
171
|
+
this._mostlyBlankStartTime = now;
|
|
172
|
+
this._info.mostly_blank_count++;
|
|
173
|
+
}
|
|
174
|
+
} else if (scrollSpeed < 0.01 || Math.abs(dOffset) < 1) {
|
|
175
|
+
this.deactivateAndFlush();
|
|
176
|
+
}
|
|
177
|
+
return blankness;
|
|
178
|
+
}
|
|
179
|
+
enabled() {
|
|
180
|
+
return this._enabled;
|
|
181
|
+
}
|
|
182
|
+
_resetData() {
|
|
183
|
+
this._anyBlankStartTime = null;
|
|
184
|
+
this._info = new Info();
|
|
185
|
+
this._mostlyBlankStartTime = null;
|
|
186
|
+
this._samplesStartTime = null;
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
var FillRateHelper_default = FillRateHelper;
|
|
@@ -0,0 +1,324 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all) __defProp(target, name, {
|
|
9
|
+
get: all[name],
|
|
10
|
+
enumerable: true
|
|
11
|
+
});
|
|
12
|
+
};
|
|
13
|
+
var __copyProps = (to, from, except, desc) => {
|
|
14
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
15
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
16
|
+
get: () => from[key],
|
|
17
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
return to;
|
|
21
|
+
};
|
|
22
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
23
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
24
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
25
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
26
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
27
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
28
|
+
value: mod,
|
|
29
|
+
enumerable: true
|
|
30
|
+
}) : target, mod));
|
|
31
|
+
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
32
|
+
value: true
|
|
33
|
+
}), mod);
|
|
34
|
+
var FlatList_exports = {};
|
|
35
|
+
__export(FlatList_exports, {
|
|
36
|
+
FlatList: () => FlatList,
|
|
37
|
+
default: () => FlatList_default
|
|
38
|
+
});
|
|
39
|
+
module.exports = __toCommonJS(FlatList_exports);
|
|
40
|
+
var import_View = require("../../../View/index.cjs");
|
|
41
|
+
var import_deepDiffer = require("../deepDiffer/index.cjs");
|
|
42
|
+
var import_Platform = require("../../../exports/Platform");
|
|
43
|
+
var import_react_native_web_internals = require("@hanzogui/react-native-web-internals");
|
|
44
|
+
var React = __toESM(require("react"), 1);
|
|
45
|
+
var import_VirtualizedList = require("../VirtualizedList/index.cjs");
|
|
46
|
+
var import_VirtualizeUtils = require("../VirtualizeUtils/index.cjs");
|
|
47
|
+
var import_memoize_one = __toESM(require("memoize-one"), 1);
|
|
48
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
49
|
+
function removeClippedSubviewsOrDefault(removeClippedSubviews) {
|
|
50
|
+
return removeClippedSubviews ?? import_Platform.Platform.OS === "android";
|
|
51
|
+
}
|
|
52
|
+
function numColumnsOrDefault(numColumns) {
|
|
53
|
+
return numColumns ?? 1;
|
|
54
|
+
}
|
|
55
|
+
function isArrayLike(data) {
|
|
56
|
+
return typeof Object(data).length === "number";
|
|
57
|
+
}
|
|
58
|
+
class FlatList extends React.PureComponent {
|
|
59
|
+
/**
|
|
60
|
+
* Scrolls to the end of the content. May be janky without `getItemLayout` prop.
|
|
61
|
+
*/
|
|
62
|
+
scrollToEnd(params) {
|
|
63
|
+
if (this._listRef) {
|
|
64
|
+
this._listRef.scrollToEnd(params);
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* Scrolls to the item at the specified index such that it is positioned in the viewable area
|
|
69
|
+
* such that `viewPosition` 0 places it at the top, 1 at the bottom, and 0.5 centered in the
|
|
70
|
+
* middle. `viewOffset` is a fixed number of pixels to offset the final target position.
|
|
71
|
+
*
|
|
72
|
+
* Note: cannot scroll to locations outside the render window without specifying the
|
|
73
|
+
* `getItemLayout` prop.
|
|
74
|
+
*/
|
|
75
|
+
scrollToIndex(params) {
|
|
76
|
+
if (this._listRef) {
|
|
77
|
+
this._listRef.scrollToIndex(params);
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* Requires linear scan through data - use `scrollToIndex` instead if possible.
|
|
82
|
+
*
|
|
83
|
+
* Note: cannot scroll to locations outside the render window without specifying the
|
|
84
|
+
* `getItemLayout` prop.
|
|
85
|
+
*/
|
|
86
|
+
scrollToItem(params) {
|
|
87
|
+
if (this._listRef) {
|
|
88
|
+
this._listRef.scrollToItem(params);
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* Scroll to a specific content pixel offset in the list.
|
|
93
|
+
*
|
|
94
|
+
* Check out [scrollToOffset](docs/virtualizedlist.html#scrolltooffset) of VirtualizedList
|
|
95
|
+
*/
|
|
96
|
+
scrollToOffset(params) {
|
|
97
|
+
if (this._listRef) {
|
|
98
|
+
this._listRef.scrollToOffset(params);
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* Tells the list an interaction has occurred, which should trigger viewability calculations, e.g.
|
|
103
|
+
* if `waitForInteractions` is true and the user has not scrolled. This is typically called by
|
|
104
|
+
* taps on items or by navigation actions.
|
|
105
|
+
*/
|
|
106
|
+
recordInteraction() {
|
|
107
|
+
if (this._listRef) {
|
|
108
|
+
this._listRef.recordInteraction();
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
/**
|
|
112
|
+
* Displays the scroll indicators momentarily.
|
|
113
|
+
*
|
|
114
|
+
* @platform ios
|
|
115
|
+
*/
|
|
116
|
+
flashScrollIndicators() {
|
|
117
|
+
if (this._listRef) {
|
|
118
|
+
this._listRef.flashScrollIndicators();
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
/**
|
|
122
|
+
* Provides a handle to the underlying scroll responder.
|
|
123
|
+
*/
|
|
124
|
+
getScrollResponder() {
|
|
125
|
+
if (this._listRef) {
|
|
126
|
+
return this._listRef.getScrollResponder();
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
/**
|
|
130
|
+
* Provides a reference to the underlying host component
|
|
131
|
+
*/
|
|
132
|
+
getNativeScrollRef() {
|
|
133
|
+
if (this._listRef) {
|
|
134
|
+
return this._listRef.getScrollRef();
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
getScrollableNode() {
|
|
138
|
+
if (this._listRef) {
|
|
139
|
+
return this._listRef.getScrollableNode();
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
constructor(props) {
|
|
143
|
+
super(props);
|
|
144
|
+
this._checkProps(this.props);
|
|
145
|
+
if (this.props.viewabilityConfigCallbackPairs) {
|
|
146
|
+
this._virtualizedListPairs = this.props.viewabilityConfigCallbackPairs.map(pair => ({
|
|
147
|
+
viewabilityConfig: pair.viewabilityConfig,
|
|
148
|
+
onViewableItemsChanged: this._createOnViewableItemsChanged(pair.onViewableItemsChanged)
|
|
149
|
+
}));
|
|
150
|
+
} else if (this.props.onViewableItemsChanged) {
|
|
151
|
+
this._virtualizedListPairs.push({
|
|
152
|
+
viewabilityConfig: this.props.viewabilityConfig,
|
|
153
|
+
onViewableItemsChanged: this._createOnViewableItemsChanged(this.props.onViewableItemsChanged)
|
|
154
|
+
});
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
componentDidUpdate(prevProps) {
|
|
158
|
+
(0, import_react_native_web_internals.invariant)(prevProps.numColumns === this.props.numColumns, "Changing numColumns on the fly is not supported. Change the key prop on FlatList when changing the number of columns to force a fresh render of the component.");
|
|
159
|
+
(0, import_react_native_web_internals.invariant)(prevProps.onViewableItemsChanged === this.props.onViewableItemsChanged, "Changing onViewableItemsChanged on the fly is not supported");
|
|
160
|
+
(0, import_react_native_web_internals.invariant)(!(0, import_deepDiffer.deepDiffer)(prevProps.viewabilityConfig, this.props.viewabilityConfig), "Changing viewabilityConfig on the fly is not supported");
|
|
161
|
+
(0, import_react_native_web_internals.invariant)(prevProps.viewabilityConfigCallbackPairs === this.props.viewabilityConfigCallbackPairs, "Changing viewabilityConfigCallbackPairs on the fly is not supported");
|
|
162
|
+
this._checkProps(this.props);
|
|
163
|
+
}
|
|
164
|
+
_listRef;
|
|
165
|
+
_virtualizedListPairs = [];
|
|
166
|
+
_captureRef = ref => {
|
|
167
|
+
this._listRef = ref;
|
|
168
|
+
};
|
|
169
|
+
_checkProps(props) {
|
|
170
|
+
const {
|
|
171
|
+
getItem,
|
|
172
|
+
getItemCount,
|
|
173
|
+
horizontal,
|
|
174
|
+
columnWrapperStyle,
|
|
175
|
+
onViewableItemsChanged,
|
|
176
|
+
viewabilityConfigCallbackPairs
|
|
177
|
+
} = props;
|
|
178
|
+
const numColumns = numColumnsOrDefault(this.props.numColumns);
|
|
179
|
+
(0, import_react_native_web_internals.invariant)(!getItem && !getItemCount, "FlatList does not support custom data formats.");
|
|
180
|
+
if (numColumns > 1) {
|
|
181
|
+
(0, import_react_native_web_internals.invariant)(!horizontal, "numColumns does not support horizontal.");
|
|
182
|
+
} else {
|
|
183
|
+
(0, import_react_native_web_internals.invariant)(!columnWrapperStyle, "columnWrapperStyle not supported for single column lists");
|
|
184
|
+
}
|
|
185
|
+
(0, import_react_native_web_internals.invariant)(!(onViewableItemsChanged && viewabilityConfigCallbackPairs), "FlatList does not support setting both onViewableItemsChanged and viewabilityConfigCallbackPairs.");
|
|
186
|
+
}
|
|
187
|
+
_getItem = (data, index) => {
|
|
188
|
+
const numColumns = numColumnsOrDefault(this.props.numColumns);
|
|
189
|
+
if (numColumns > 1) {
|
|
190
|
+
const ret = [];
|
|
191
|
+
for (let kk = 0; kk < numColumns; kk++) {
|
|
192
|
+
const itemIndex = index * numColumns + kk;
|
|
193
|
+
if (itemIndex < data.length) {
|
|
194
|
+
const item = data[itemIndex];
|
|
195
|
+
ret.push(item);
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
return ret;
|
|
199
|
+
} else {
|
|
200
|
+
return data[index];
|
|
201
|
+
}
|
|
202
|
+
};
|
|
203
|
+
_getItemCount = data => {
|
|
204
|
+
if (data != null && isArrayLike(data)) {
|
|
205
|
+
const numColumns = numColumnsOrDefault(this.props.numColumns);
|
|
206
|
+
return numColumns > 1 ? Math.ceil(data.length / numColumns) : data.length;
|
|
207
|
+
} else {
|
|
208
|
+
return 0;
|
|
209
|
+
}
|
|
210
|
+
};
|
|
211
|
+
_keyExtractor = (items, index) => {
|
|
212
|
+
const numColumns = numColumnsOrDefault(this.props.numColumns);
|
|
213
|
+
const keyExtractor = this.props.keyExtractor ?? import_VirtualizeUtils.keyExtractor;
|
|
214
|
+
if (numColumns > 1) {
|
|
215
|
+
(0, import_react_native_web_internals.invariant)(Array.isArray(items), "FlatList: Encountered internal consistency error, expected each item to consist of an array with 1-%s columns; instead, received a single item.", numColumns);
|
|
216
|
+
return items.map((item, kk) => keyExtractor(item, index * numColumns + kk)).join(":");
|
|
217
|
+
}
|
|
218
|
+
return keyExtractor(items, index);
|
|
219
|
+
};
|
|
220
|
+
_pushMultiColumnViewable(arr, v) {
|
|
221
|
+
const numColumns = numColumnsOrDefault(this.props.numColumns);
|
|
222
|
+
const keyExtractor = this.props.keyExtractor ?? import_VirtualizeUtils.keyExtractor;
|
|
223
|
+
v.item.forEach((item, ii) => {
|
|
224
|
+
(0, import_react_native_web_internals.invariant)(v.index != null, "Missing index!");
|
|
225
|
+
const index = v.index * numColumns + ii;
|
|
226
|
+
arr.push({
|
|
227
|
+
...v,
|
|
228
|
+
item,
|
|
229
|
+
key: keyExtractor(item, index),
|
|
230
|
+
index
|
|
231
|
+
});
|
|
232
|
+
});
|
|
233
|
+
}
|
|
234
|
+
_createOnViewableItemsChanged(onViewableItemsChanged) {
|
|
235
|
+
return info => {
|
|
236
|
+
const numColumns = numColumnsOrDefault(this.props.numColumns);
|
|
237
|
+
if (onViewableItemsChanged) {
|
|
238
|
+
if (numColumns > 1) {
|
|
239
|
+
const changed = [];
|
|
240
|
+
const viewableItems = [];
|
|
241
|
+
info.viewableItems.forEach(v => this._pushMultiColumnViewable(viewableItems, v));
|
|
242
|
+
info.changed.forEach(v => this._pushMultiColumnViewable(changed, v));
|
|
243
|
+
onViewableItemsChanged({
|
|
244
|
+
viewableItems,
|
|
245
|
+
changed
|
|
246
|
+
});
|
|
247
|
+
} else {
|
|
248
|
+
onViewableItemsChanged(info);
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
};
|
|
252
|
+
}
|
|
253
|
+
_renderer = (ListItemComponent, renderItem, columnWrapperStyle, numColumns, extraData) => {
|
|
254
|
+
const cols = numColumnsOrDefault(numColumns);
|
|
255
|
+
const render = props => {
|
|
256
|
+
if (ListItemComponent) {
|
|
257
|
+
return /* @__PURE__ */(0, import_jsx_runtime.jsx)(ListItemComponent, {
|
|
258
|
+
...props
|
|
259
|
+
});
|
|
260
|
+
} else if (renderItem) {
|
|
261
|
+
return renderItem(props);
|
|
262
|
+
} else {
|
|
263
|
+
return null;
|
|
264
|
+
}
|
|
265
|
+
};
|
|
266
|
+
const renderProp = info => {
|
|
267
|
+
if (cols > 1) {
|
|
268
|
+
const {
|
|
269
|
+
item,
|
|
270
|
+
index
|
|
271
|
+
} = info;
|
|
272
|
+
(0, import_react_native_web_internals.invariant)(Array.isArray(item), "Expected array of items with numColumns > 1");
|
|
273
|
+
return /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_View.View, {
|
|
274
|
+
style: [styles.row, columnWrapperStyle],
|
|
275
|
+
children: item.map((it, kk) => {
|
|
276
|
+
const element = render({
|
|
277
|
+
item: it,
|
|
278
|
+
index: index * cols + kk,
|
|
279
|
+
separators: info.separators
|
|
280
|
+
});
|
|
281
|
+
return element != null ? /* @__PURE__ */(0, import_jsx_runtime.jsx)(React.Fragment, {
|
|
282
|
+
children: element
|
|
283
|
+
}, kk) : null;
|
|
284
|
+
})
|
|
285
|
+
});
|
|
286
|
+
} else {
|
|
287
|
+
return render(info);
|
|
288
|
+
}
|
|
289
|
+
};
|
|
290
|
+
return ListItemComponent ? {
|
|
291
|
+
ListItemComponent: renderProp
|
|
292
|
+
} : {
|
|
293
|
+
renderItem: renderProp
|
|
294
|
+
};
|
|
295
|
+
};
|
|
296
|
+
// $FlowFixMe[missing-local-annot]
|
|
297
|
+
_memoizedRenderer = (0, import_memoize_one.default)(this._renderer);
|
|
298
|
+
render() {
|
|
299
|
+
const {
|
|
300
|
+
numColumns,
|
|
301
|
+
columnWrapperStyle,
|
|
302
|
+
removeClippedSubviews: _removeClippedSubviews,
|
|
303
|
+
strictMode = false,
|
|
304
|
+
...restProps
|
|
305
|
+
} = this.props;
|
|
306
|
+
const renderer = strictMode ? this._memoizedRenderer : this._renderer;
|
|
307
|
+
return /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_VirtualizedList.VirtualizedList, {
|
|
308
|
+
...restProps,
|
|
309
|
+
getItem: this._getItem,
|
|
310
|
+
getItemCount: this._getItemCount,
|
|
311
|
+
keyExtractor: this._keyExtractor,
|
|
312
|
+
ref: this._captureRef,
|
|
313
|
+
viewabilityConfigCallbackPairs: this._virtualizedListPairs,
|
|
314
|
+
removeClippedSubviews: removeClippedSubviewsOrDefault(_removeClippedSubviews),
|
|
315
|
+
...renderer(this.props.ListItemComponent, this.props.renderItem, columnWrapperStyle, numColumns, this.props.extraData)
|
|
316
|
+
});
|
|
317
|
+
}
|
|
318
|
+
}
|
|
319
|
+
const styles = import_react_native_web_internals.StyleSheet.create({
|
|
320
|
+
row: {
|
|
321
|
+
flexDirection: "row"
|
|
322
|
+
}
|
|
323
|
+
});
|
|
324
|
+
var FlatList_default = FlatList;
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all) __defProp(target, name, {
|
|
9
|
+
get: all[name],
|
|
10
|
+
enumerable: true
|
|
11
|
+
});
|
|
12
|
+
};
|
|
13
|
+
var __copyProps = (to, from, except, desc) => {
|
|
14
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
15
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
16
|
+
get: () => from[key],
|
|
17
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
return to;
|
|
21
|
+
};
|
|
22
|
+
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
23
|
+
value: true
|
|
24
|
+
}), mod);
|
|
25
|
+
var JSEventLoopWatchdog_exports = {};
|
|
26
|
+
__export(JSEventLoopWatchdog_exports, {
|
|
27
|
+
JSEventLoopWatchdog: () => JSEventLoopWatchdog,
|
|
28
|
+
default: () => JSEventLoopWatchdog_default
|
|
29
|
+
});
|
|
30
|
+
module.exports = __toCommonJS(JSEventLoopWatchdog_exports);
|
|
31
|
+
var import_infoLog = require("../infoLog/index.cjs");
|
|
32
|
+
const JSEventLoopWatchdog = {
|
|
33
|
+
getStats: function () {
|
|
34
|
+
return {
|
|
35
|
+
stallCount,
|
|
36
|
+
totalStallTime,
|
|
37
|
+
longestStall,
|
|
38
|
+
acceptableBusyTime
|
|
39
|
+
};
|
|
40
|
+
},
|
|
41
|
+
reset: function () {
|
|
42
|
+
(0, import_infoLog.infoLog)("JSEventLoopWatchdog: reset");
|
|
43
|
+
totalStallTime = 0;
|
|
44
|
+
stallCount = 0;
|
|
45
|
+
longestStall = 0;
|
|
46
|
+
lastInterval = window.performance.now();
|
|
47
|
+
},
|
|
48
|
+
addHandler: function (handler) {
|
|
49
|
+
handlers.push(handler);
|
|
50
|
+
},
|
|
51
|
+
install: function ({
|
|
52
|
+
thresholdMS
|
|
53
|
+
}) {
|
|
54
|
+
acceptableBusyTime = thresholdMS;
|
|
55
|
+
if (installed) {
|
|
56
|
+
return;
|
|
57
|
+
}
|
|
58
|
+
installed = true;
|
|
59
|
+
lastInterval = window.performance.now();
|
|
60
|
+
function iteration() {
|
|
61
|
+
const now = window.performance.now();
|
|
62
|
+
const busyTime = now - lastInterval;
|
|
63
|
+
if (busyTime >= thresholdMS) {
|
|
64
|
+
const stallTime = busyTime - thresholdMS;
|
|
65
|
+
stallCount++;
|
|
66
|
+
totalStallTime += stallTime;
|
|
67
|
+
longestStall = Math.max(longestStall, stallTime);
|
|
68
|
+
let msg = `JSEventLoopWatchdog: JS thread busy for ${busyTime}ms. ${totalStallTime}ms in ${stallCount} stalls so far. `;
|
|
69
|
+
handlers.forEach(handler => {
|
|
70
|
+
msg += handler.onStall({
|
|
71
|
+
lastInterval,
|
|
72
|
+
busyTime
|
|
73
|
+
}) || "";
|
|
74
|
+
});
|
|
75
|
+
(0, import_infoLog.infoLog)(msg);
|
|
76
|
+
}
|
|
77
|
+
handlers.forEach(handler => {
|
|
78
|
+
handler.onIterate && handler.onIterate();
|
|
79
|
+
});
|
|
80
|
+
lastInterval = now;
|
|
81
|
+
setTimeout(iteration, thresholdMS / 5);
|
|
82
|
+
}
|
|
83
|
+
iteration();
|
|
84
|
+
}
|
|
85
|
+
};
|
|
86
|
+
let acceptableBusyTime = 0;
|
|
87
|
+
let installed = false;
|
|
88
|
+
let totalStallTime = 0;
|
|
89
|
+
let stallCount = 0;
|
|
90
|
+
let longestStall = 0;
|
|
91
|
+
let lastInterval = 0;
|
|
92
|
+
const handlers = [];
|
|
93
|
+
var JSEventLoopWatchdog_default = JSEventLoopWatchdog;
|