@tamagui/react-native-web-lite 1.129.13 → 1.129.15
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/dist/cjs/InteractionManager/index.cjs +3 -2
- package/dist/cjs/InteractionManager/index.js +2 -2
- package/dist/cjs/InteractionManager/index.js.map +2 -2
- package/dist/cjs/InteractionManager/index.native.js +2 -2
- package/dist/cjs/InteractionManager/index.native.js.map +1 -1
- package/dist/cjs/ScrollView/index.cjs +172 -4
- package/dist/cjs/ScrollView/index.js +153 -5
- package/dist/cjs/ScrollView/index.js.map +2 -2
- package/dist/cjs/ScrollView/index.native.js +155 -7
- package/dist/cjs/ScrollView/index.native.js.map +2 -2
- package/dist/cjs/SectionList.cjs +38 -0
- package/dist/cjs/SectionList.js +29 -0
- package/dist/cjs/SectionList.js.map +6 -0
- package/dist/cjs/SectionList.native.js +30 -0
- package/dist/cjs/SectionList.native.js.map +6 -0
- package/dist/cjs/TextInput/index.cjs +18 -2
- package/dist/cjs/TextInput/index.js +20 -3
- package/dist/cjs/TextInput/index.js.map +1 -1
- package/dist/cjs/TextInput/index.native.js +19 -4
- package/dist/cjs/TextInput/index.native.js.map +2 -2
- package/dist/cjs/TouchableNativeFeedback.cjs +38 -0
- package/dist/cjs/TouchableNativeFeedback.js +29 -0
- package/dist/cjs/TouchableNativeFeedback.js.map +6 -0
- package/dist/cjs/TouchableNativeFeedback.native.js +30 -0
- package/dist/cjs/TouchableNativeFeedback.native.js.map +6 -0
- package/dist/cjs/VirtualizedList.cjs +38 -0
- package/dist/cjs/VirtualizedList.js +29 -0
- package/dist/cjs/VirtualizedList.js.map +6 -0
- package/dist/cjs/VirtualizedList.native.js +30 -0
- package/dist/cjs/VirtualizedList.native.js.map +6 -0
- package/dist/cjs/createElement/index.cjs +3 -3
- package/dist/cjs/createElement/index.js +3 -3
- package/dist/cjs/createElement/index.js.map +1 -1
- package/dist/cjs/createElement/index.native.js +3 -3
- package/dist/cjs/createElement/index.native.js.map +1 -1
- package/dist/cjs/index.cjs +6 -4
- package/dist/cjs/index.js +3 -3
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/index.native.js +3 -3
- package/dist/cjs/index.native.js.map +1 -1
- package/dist/cjs/modules/requestIdleCallback.cjs +44 -0
- package/dist/cjs/modules/requestIdleCallback.js +35 -0
- package/dist/cjs/modules/requestIdleCallback.js.map +6 -0
- package/dist/cjs/modules/requestIdleCallback.native.js +39 -0
- package/dist/cjs/modules/requestIdleCallback.native.js.map +6 -0
- package/dist/cjs/vendor/react-native/Animated/Animated.cjs +15 -12
- package/dist/cjs/vendor/react-native/Animated/Animated.js +6 -2
- package/dist/cjs/vendor/react-native/Animated/Animated.js.map +2 -2
- package/dist/cjs/vendor/react-native/Animated/Animated.native.js +4 -2
- package/dist/cjs/vendor/react-native/Animated/Animated.native.js.map +2 -2
- package/dist/cjs/vendor/react-native/Animated/AnimatedEvent.cjs +26 -27
- package/dist/cjs/vendor/react-native/Animated/AnimatedEvent.js +24 -28
- package/dist/cjs/vendor/react-native/Animated/AnimatedEvent.js.map +2 -2
- package/dist/cjs/vendor/react-native/Animated/AnimatedEvent.native.js +23 -20
- package/dist/cjs/vendor/react-native/Animated/AnimatedEvent.native.js.map +2 -2
- package/dist/cjs/vendor/react-native/Animated/AnimatedImplementation.cjs +236 -234
- package/dist/cjs/vendor/react-native/Animated/AnimatedImplementation.js +59 -79
- package/dist/cjs/vendor/react-native/Animated/AnimatedImplementation.js.map +2 -2
- package/dist/cjs/vendor/react-native/Animated/AnimatedImplementation.native.js +34 -29
- package/dist/cjs/vendor/react-native/Animated/AnimatedImplementation.native.js.map +2 -2
- package/dist/cjs/vendor/react-native/Animated/AnimatedMock.cjs +39 -40
- package/dist/cjs/vendor/react-native/Animated/AnimatedMock.js +13 -18
- package/dist/cjs/vendor/react-native/Animated/AnimatedMock.js.map +1 -1
- package/dist/cjs/vendor/react-native/Animated/AnimatedMock.native.js +6 -4
- package/dist/cjs/vendor/react-native/Animated/AnimatedMock.native.js.map +2 -2
- package/dist/cjs/vendor/react-native/Animated/Easing.cjs +11 -12
- package/dist/cjs/vendor/react-native/Animated/Easing.js +11 -11
- package/dist/cjs/vendor/react-native/Animated/Easing.js.map +2 -2
- package/dist/cjs/vendor/react-native/Animated/Easing.native.js +11 -11
- package/dist/cjs/vendor/react-native/Animated/Easing.native.js.map +2 -2
- package/dist/cjs/vendor/react-native/Animated/NativeAnimatedHelper.cjs +28 -36
- package/dist/cjs/vendor/react-native/Animated/NativeAnimatedHelper.js +26 -33
- package/dist/cjs/vendor/react-native/Animated/NativeAnimatedHelper.js.map +2 -2
- package/dist/cjs/vendor/react-native/Animated/NativeAnimatedHelper.native.js +48 -48
- package/dist/cjs/vendor/react-native/Animated/NativeAnimatedHelper.native.js.map +2 -2
- package/dist/cjs/vendor/react-native/Animated/NativeAnimatedModule.cjs +40 -2
- package/dist/cjs/vendor/react-native/Animated/NativeAnimatedModule.js +61 -1
- package/dist/cjs/vendor/react-native/Animated/NativeAnimatedModule.js.map +1 -1
- package/dist/cjs/vendor/react-native/Animated/NativeAnimatedModule.native.js +67 -1
- package/dist/cjs/vendor/react-native/Animated/NativeAnimatedModule.native.js.map +2 -2
- package/dist/cjs/vendor/react-native/Animated/NativeAnimatedTurboModule.cjs +37 -2
- package/dist/cjs/vendor/react-native/Animated/NativeAnimatedTurboModule.js +56 -1
- package/dist/cjs/vendor/react-native/Animated/NativeAnimatedTurboModule.js.map +1 -1
- package/dist/cjs/vendor/react-native/Animated/NativeAnimatedTurboModule.native.js +62 -1
- package/dist/cjs/vendor/react-native/Animated/NativeAnimatedTurboModule.native.js.map +2 -2
- package/dist/cjs/vendor/react-native/Animated/SpringConfig.cjs +5 -7
- package/dist/cjs/vendor/react-native/Animated/SpringConfig.js +5 -6
- package/dist/cjs/vendor/react-native/Animated/SpringConfig.js.map +1 -1
- package/dist/cjs/vendor/react-native/Animated/SpringConfig.native.js.map +2 -2
- package/dist/cjs/vendor/react-native/Animated/animations/Animation.cjs +10 -5
- package/dist/cjs/vendor/react-native/Animated/animations/Animation.js +16 -6
- package/dist/cjs/vendor/react-native/Animated/animations/Animation.js.map +1 -1
- package/dist/cjs/vendor/react-native/Animated/animations/Animation.native.js +10 -2
- package/dist/cjs/vendor/react-native/Animated/animations/Animation.native.js.map +2 -2
- package/dist/cjs/vendor/react-native/Animated/animations/DecayAnimation.cjs +12 -5
- package/dist/cjs/vendor/react-native/Animated/animations/DecayAnimation.js +13 -10
- package/dist/cjs/vendor/react-native/Animated/animations/DecayAnimation.js.map +1 -1
- package/dist/cjs/vendor/react-native/Animated/animations/DecayAnimation.native.js +17 -3
- package/dist/cjs/vendor/react-native/Animated/animations/DecayAnimation.native.js.map +2 -2
- package/dist/cjs/vendor/react-native/Animated/animations/SpringAnimation.cjs +53 -42
- package/dist/cjs/vendor/react-native/Animated/animations/SpringAnimation.js +55 -39
- package/dist/cjs/vendor/react-native/Animated/animations/SpringAnimation.js.map +1 -1
- package/dist/cjs/vendor/react-native/Animated/animations/SpringAnimation.native.js +41 -13
- package/dist/cjs/vendor/react-native/Animated/animations/SpringAnimation.native.js.map +2 -2
- package/dist/cjs/vendor/react-native/Animated/animations/TimingAnimation.cjs +20 -9
- package/dist/cjs/vendor/react-native/Animated/animations/TimingAnimation.js +21 -16
- package/dist/cjs/vendor/react-native/Animated/animations/TimingAnimation.js.map +1 -1
- package/dist/cjs/vendor/react-native/Animated/animations/TimingAnimation.native.js +22 -3
- package/dist/cjs/vendor/react-native/Animated/animations/TimingAnimation.native.js.map +2 -2
- package/dist/cjs/vendor/react-native/Animated/bezier.cjs +16 -18
- package/dist/cjs/vendor/react-native/Animated/bezier.js +22 -13
- package/dist/cjs/vendor/react-native/Animated/bezier.js.map +1 -1
- package/dist/cjs/vendor/react-native/Animated/bezier.native.js.map +1 -1
- package/dist/cjs/vendor/react-native/Animated/components/AnimatedFlatList.cjs +46 -0
- package/dist/cjs/vendor/react-native/Animated/components/AnimatedFlatList.js +31 -0
- package/dist/cjs/vendor/react-native/Animated/components/AnimatedFlatList.js.map +6 -0
- package/dist/cjs/vendor/react-native/Animated/components/AnimatedFlatList.native.js +36 -0
- package/dist/cjs/vendor/react-native/Animated/components/AnimatedFlatList.native.js.map +6 -0
- package/dist/cjs/vendor/react-native/Animated/components/AnimatedImage.js +1 -1
- package/dist/cjs/vendor/react-native/Animated/components/AnimatedImage.js.map +1 -1
- package/dist/cjs/vendor/react-native/Animated/components/AnimatedImage.native.js +1 -1
- package/dist/cjs/vendor/react-native/Animated/components/AnimatedImage.native.js.map +1 -1
- package/dist/cjs/vendor/react-native/Animated/components/AnimatedScrollView.cjs +7 -6
- package/dist/cjs/vendor/react-native/Animated/components/AnimatedScrollView.js +3 -10
- package/dist/cjs/vendor/react-native/Animated/components/AnimatedScrollView.js.map +2 -2
- package/dist/cjs/vendor/react-native/Animated/components/AnimatedScrollView.native.js +2 -2
- package/dist/cjs/vendor/react-native/Animated/components/AnimatedScrollView.native.js.map +3 -3
- package/dist/cjs/vendor/react-native/Animated/components/AnimatedSectionList.cjs +46 -0
- package/dist/cjs/vendor/react-native/Animated/components/AnimatedSectionList.js +31 -0
- package/dist/cjs/vendor/react-native/Animated/components/AnimatedSectionList.js.map +6 -0
- package/dist/cjs/vendor/react-native/Animated/components/AnimatedSectionList.native.js +36 -0
- package/dist/cjs/vendor/react-native/Animated/components/AnimatedSectionList.native.js.map +6 -0
- package/dist/cjs/vendor/react-native/Animated/components/AnimatedText.cjs +1 -2
- package/dist/cjs/vendor/react-native/Animated/components/AnimatedText.js +1 -1
- package/dist/cjs/vendor/react-native/Animated/components/AnimatedText.js.map +1 -1
- package/dist/cjs/vendor/react-native/Animated/components/AnimatedText.native.js +1 -1
- package/dist/cjs/vendor/react-native/Animated/components/AnimatedText.native.js.map +1 -1
- package/dist/cjs/vendor/react-native/Animated/components/AnimatedView.cjs +1 -2
- package/dist/cjs/vendor/react-native/Animated/components/AnimatedView.js +1 -1
- package/dist/cjs/vendor/react-native/Animated/components/AnimatedView.js.map +1 -1
- package/dist/cjs/vendor/react-native/Animated/components/AnimatedView.native.js +1 -1
- package/dist/cjs/vendor/react-native/Animated/components/AnimatedView.native.js.map +1 -1
- package/dist/cjs/vendor/react-native/Animated/createAnimatedComponent.cjs +17 -18
- package/dist/cjs/vendor/react-native/Animated/createAnimatedComponent.js +14 -11
- package/dist/cjs/vendor/react-native/Animated/createAnimatedComponent.js.map +3 -3
- package/dist/cjs/vendor/react-native/Animated/createAnimatedComponent.native.js +3 -3
- package/dist/cjs/vendor/react-native/Animated/createAnimatedComponent.native.js.map +3 -3
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedAddition.cjs +2 -0
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedAddition.js +2 -0
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedAddition.js.map +1 -1
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedAddition.native.js +9 -1
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedAddition.native.js.map +2 -2
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedColor.cjs +35 -49
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedColor.js +32 -51
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedColor.js.map +2 -2
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedColor.native.js +23 -32
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedColor.native.js.map +2 -2
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedDiffClamp.cjs +6 -3
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedDiffClamp.js +6 -2
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedDiffClamp.js.map +1 -1
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedDiffClamp.native.js +10 -1
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedDiffClamp.native.js.map +1 -1
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedDivision.cjs +5 -2
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedDivision.js +5 -2
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedDivision.js.map +1 -1
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedDivision.native.js +9 -1
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedDivision.native.js.map +2 -2
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedInterpolation.cjs +26 -31
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedInterpolation.js +24 -25
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedInterpolation.js.map +3 -3
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedInterpolation.native.js +13 -13
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedInterpolation.native.js.map +2 -2
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedModulo.cjs +2 -2
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedModulo.js +2 -1
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedModulo.js.map +1 -1
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedModulo.native.js +10 -1
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedModulo.native.js.map +1 -1
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedMultiplication.cjs +2 -0
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedMultiplication.js +2 -0
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedMultiplication.js.map +1 -1
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedMultiplication.native.js +9 -1
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedMultiplication.native.js.map +2 -2
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedNode.cjs +14 -9
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedNode.js +14 -9
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedNode.js.map +1 -1
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedNode.native.js +13 -6
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedNode.native.js.map +2 -2
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedProps.cjs +21 -23
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedProps.js +22 -20
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedProps.js.map +1 -1
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedProps.native.js +2 -1
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedProps.native.js.map +1 -1
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedStyle.cjs +25 -25
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedStyle.js +23 -21
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedStyle.js.map +1 -1
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedStyle.native.js +12 -3
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedStyle.native.js.map +2 -2
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedSubtraction.cjs +2 -0
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedSubtraction.js +2 -0
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedSubtraction.js.map +1 -1
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedSubtraction.native.js +9 -1
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedSubtraction.native.js.map +2 -2
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedTracking.cjs +14 -9
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedTracking.js +12 -12
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedTracking.js.map +1 -1
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedTracking.native.js +14 -4
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedTracking.native.js.map +2 -2
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedTransform.cjs +20 -19
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedTransform.js +18 -17
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedTransform.js.map +1 -1
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedTransform.native.js +10 -2
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedTransform.native.js.map +1 -1
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedValue.cjs +12 -7
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedValue.js +10 -4
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedValue.js.map +1 -1
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedValue.native.js +10 -2
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedValue.native.js.map +2 -2
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedValueXY.cjs +8 -76
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedValueXY.js +5 -83
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedValueXY.js.map +1 -1
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedValueXY.native.js +4 -70
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedValueXY.native.js.map +2 -2
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedWithChildren.cjs +5 -11
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedWithChildren.js +17 -11
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedWithChildren.js.map +2 -2
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedWithChildren.native.js +42 -9
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedWithChildren.native.js.map +2 -2
- package/dist/cjs/vendor/react-native/Animated/useAnimatedProps.cjs +16 -25
- package/dist/cjs/vendor/react-native/Animated/useAnimatedProps.js +14 -22
- package/dist/cjs/vendor/react-native/Animated/useAnimatedProps.js.map +2 -2
- package/dist/cjs/vendor/react-native/Animated/useAnimatedProps.native.js +24 -16
- package/dist/cjs/vendor/react-native/Animated/useAnimatedProps.native.js.map +2 -2
- package/dist/cjs/{Batchinator → vendor/react-native/Batchinator}/index.cjs +9 -18
- package/dist/cjs/{Batchinator → vendor/react-native/Batchinator}/index.js +6 -13
- package/dist/cjs/vendor/react-native/Batchinator/index.js.map +6 -0
- package/dist/cjs/{Batchinator → vendor/react-native/Batchinator}/index.native.js +5 -14
- package/dist/cjs/vendor/react-native/Batchinator/index.native.js.map +6 -0
- package/dist/cjs/vendor/react-native/{NativeEventEmitter/index.cjs → EventEmitter/NativeEventEmitter.cjs} +8 -15
- package/dist/cjs/vendor/react-native/{NativeEventEmitter/index.js → EventEmitter/NativeEventEmitter.js} +10 -17
- package/dist/cjs/vendor/react-native/EventEmitter/NativeEventEmitter.js.map +6 -0
- package/dist/cjs/vendor/react-native/{NativeEventEmitter/index.native.js → EventEmitter/NativeEventEmitter.native.js} +19 -11
- package/dist/cjs/vendor/react-native/EventEmitter/NativeEventEmitter.native.js.map +6 -0
- package/dist/cjs/vendor/react-native/EventEmitter/RCTDeviceEventEmitter.js.map +6 -0
- package/dist/cjs/vendor/react-native/EventEmitter/RCTDeviceEventEmitter.native.js.map +6 -0
- package/dist/cjs/vendor/react-native/FillRateHelper/index.cjs +3 -3
- package/dist/cjs/vendor/react-native/FillRateHelper/index.js +3 -3
- package/dist/cjs/vendor/react-native/FillRateHelper/index.js.map +2 -2
- package/dist/cjs/vendor/react-native/FillRateHelper/index.native.js +5 -4
- package/dist/cjs/vendor/react-native/FillRateHelper/index.native.js.map +3 -3
- package/dist/cjs/vendor/react-native/FlatList/index.cjs +262 -0
- package/dist/cjs/vendor/react-native/FlatList/index.js +270 -0
- package/dist/cjs/vendor/react-native/FlatList/index.js.map +6 -0
- package/dist/cjs/vendor/react-native/FlatList/index.native.js +352 -0
- package/dist/cjs/vendor/react-native/FlatList/index.native.js.map +6 -0
- package/dist/cjs/vendor/react-native/JSEventLoopWatchdog/index.cjs +88 -0
- package/dist/cjs/vendor/react-native/JSEventLoopWatchdog/index.js +64 -0
- package/dist/cjs/vendor/react-native/JSEventLoopWatchdog/index.js.map +6 -0
- package/dist/cjs/vendor/react-native/JSEventLoopWatchdog/index.native.js +69 -0
- package/dist/cjs/vendor/react-native/JSEventLoopWatchdog/index.native.js.map +6 -0
- package/dist/cjs/vendor/react-native/LayoutAnimation/index.cjs +121 -0
- package/dist/cjs/vendor/react-native/LayoutAnimation/index.js +108 -0
- package/dist/cjs/vendor/react-native/LayoutAnimation/index.js.map +6 -0
- package/dist/cjs/vendor/react-native/LayoutAnimation/index.native.js +112 -0
- package/dist/cjs/vendor/react-native/LayoutAnimation/index.native.js.map +6 -0
- package/dist/cjs/vendor/react-native/PanResponder/index.cjs +22 -209
- package/dist/cjs/vendor/react-native/PanResponder/index.js +16 -212
- package/dist/cjs/vendor/react-native/PanResponder/index.js.map +3 -3
- package/dist/cjs/vendor/react-native/PanResponder/index.native.js +29 -200
- package/dist/cjs/vendor/react-native/PanResponder/index.native.js.map +3 -3
- package/dist/cjs/vendor/react-native/PooledClass/index.cjs +47 -0
- package/dist/cjs/vendor/react-native/PooledClass/index.js +37 -0
- package/dist/cjs/vendor/react-native/PooledClass/index.js.map +6 -0
- package/dist/cjs/vendor/react-native/PooledClass/index.native.js +38 -0
- package/dist/cjs/vendor/react-native/PooledClass/index.native.js.map +6 -0
- package/dist/cjs/vendor/react-native/ReactNative/ReactNativeFeatureFlags.cjs +33 -0
- package/dist/cjs/vendor/react-native/ReactNative/ReactNativeFeatureFlags.js +28 -0
- package/dist/cjs/vendor/react-native/ReactNative/ReactNativeFeatureFlags.js.map +6 -0
- package/dist/cjs/vendor/react-native/ReactNative/ReactNativeFeatureFlags.native.js +38 -0
- package/dist/cjs/vendor/react-native/ReactNative/ReactNativeFeatureFlags.native.js.map +6 -0
- package/dist/cjs/vendor/react-native/SectionList/index.cjs +102 -0
- package/dist/cjs/vendor/react-native/SectionList/index.js +85 -0
- package/dist/cjs/vendor/react-native/SectionList/index.js.map +6 -0
- package/dist/cjs/vendor/react-native/SectionList/index.native.js +190 -0
- package/dist/cjs/vendor/react-native/SectionList/index.native.js.map +6 -0
- package/dist/cjs/vendor/react-native/StaticContainer/index.cjs +49 -0
- package/dist/cjs/vendor/react-native/StaticContainer/index.js +40 -0
- package/dist/cjs/vendor/react-native/StaticContainer/index.js.map +6 -0
- package/dist/cjs/vendor/react-native/StaticContainer/index.native.js +110 -0
- package/dist/cjs/vendor/react-native/StaticContainer/index.native.js.map +6 -0
- package/dist/cjs/vendor/react-native/StaticRenderer/index.cjs +48 -0
- package/dist/cjs/vendor/react-native/StaticRenderer/index.js +39 -0
- package/dist/cjs/vendor/react-native/StaticRenderer/index.js.map +6 -0
- package/dist/cjs/vendor/react-native/StaticRenderer/index.native.js +109 -0
- package/dist/cjs/vendor/react-native/StaticRenderer/index.native.js.map +6 -0
- package/dist/cjs/vendor/react-native/TouchHistoryMath/index.js.map +2 -2
- package/dist/cjs/vendor/react-native/TouchHistoryMath/index.native.js.map +2 -2
- package/dist/cjs/vendor/react-native/TurboModule/RCTExport.cjs +34 -1
- package/dist/cjs/vendor/react-native/TurboModule/RCTExport.js +25 -0
- package/dist/cjs/vendor/react-native/TurboModule/RCTExport.js.map +2 -2
- package/dist/cjs/vendor/react-native/TurboModule/RCTExport.native.js +32 -0
- package/dist/cjs/vendor/react-native/TurboModule/RCTExport.native.js.map +3 -3
- package/dist/cjs/vendor/react-native/TurboModule/TurboModuleRegistry.cjs +3 -1
- package/dist/cjs/vendor/react-native/TurboModule/TurboModuleRegistry.js +6 -1
- package/dist/cjs/vendor/react-native/TurboModule/TurboModuleRegistry.js.map +2 -2
- package/dist/cjs/vendor/react-native/TurboModule/TurboModuleRegistry.native.js +3 -1
- package/dist/cjs/vendor/react-native/TurboModule/TurboModuleRegistry.native.js.map +2 -2
- package/dist/cjs/vendor/react-native/Types/CoreEventTypes.cjs +158 -8
- package/dist/cjs/vendor/react-native/Types/CoreEventTypes.js +123 -1
- package/dist/cjs/vendor/react-native/Types/CoreEventTypes.js.map +2 -2
- package/dist/cjs/vendor/react-native/Types/CoreEventTypes.native.js +159 -1
- package/dist/cjs/vendor/react-native/Types/CoreEventTypes.native.js.map +3 -3
- package/dist/cjs/vendor/react-native/Utilities/Platform.cjs +27 -0
- package/dist/cjs/vendor/react-native/Utilities/Platform.js +21 -0
- package/dist/cjs/vendor/react-native/Utilities/Platform.js.map +6 -0
- package/dist/cjs/vendor/react-native/Utilities/Platform.native.js +22 -0
- package/dist/cjs/vendor/react-native/Utilities/Platform.native.js.map +6 -0
- package/dist/cjs/vendor/react-native/Utilities/clamp.cjs +2 -0
- package/dist/cjs/vendor/react-native/Utilities/clamp.js +1 -0
- package/dist/cjs/vendor/react-native/Utilities/clamp.js.map +2 -2
- package/dist/cjs/vendor/react-native/Utilities/clamp.native.js.map +2 -2
- package/dist/cjs/vendor/react-native/Utilities/setAndForwardRef.cjs +5 -4
- package/dist/cjs/vendor/react-native/Utilities/setAndForwardRef.js +5 -3
- package/dist/cjs/vendor/react-native/Utilities/setAndForwardRef.js.map +1 -1
- package/dist/cjs/vendor/react-native/Utilities/setAndForwardRef.native.js +2 -2
- package/dist/cjs/vendor/react-native/Utilities/setAndForwardRef.native.js.map +2 -2
- package/dist/cjs/vendor/react-native/Utilities/useMergeRefs.cjs +33 -0
- package/dist/cjs/vendor/react-native/Utilities/useMergeRefs.js +31 -0
- package/dist/cjs/vendor/react-native/Utilities/useMergeRefs.js.map +6 -0
- package/dist/cjs/vendor/react-native/Utilities/useMergeRefs.native.js +46 -0
- package/dist/cjs/vendor/react-native/Utilities/useMergeRefs.native.js.map +6 -0
- package/dist/cjs/vendor/react-native/Utilities/useRefEffect.cjs +32 -0
- package/dist/cjs/vendor/react-native/Utilities/useRefEffect.js +30 -0
- package/dist/cjs/vendor/react-native/Utilities/useRefEffect.js.map +6 -0
- package/dist/cjs/vendor/react-native/Utilities/useRefEffect.native.js +30 -0
- package/dist/cjs/vendor/react-native/Utilities/useRefEffect.native.js.map +6 -0
- package/dist/cjs/vendor/react-native/ViewabilityHelper/index.cjs +142 -0
- package/dist/cjs/vendor/react-native/ViewabilityHelper/index.js +152 -0
- package/dist/cjs/vendor/react-native/ViewabilityHelper/index.js.map +6 -0
- package/dist/cjs/vendor/react-native/ViewabilityHelper/index.native.js +205 -0
- package/dist/cjs/vendor/react-native/ViewabilityHelper/index.native.js.map +6 -0
- package/dist/cjs/vendor/react-native/VirtualizeUtils/index.js.map +2 -2
- package/dist/cjs/vendor/react-native/VirtualizeUtils/index.native.js.map +2 -2
- package/dist/cjs/vendor/react-native/VirtualizedList/CellRenderMask.cjs +1 -3
- package/dist/cjs/vendor/react-native/VirtualizedList/CellRenderMask.js +2 -8
- package/dist/cjs/vendor/react-native/VirtualizedList/CellRenderMask.js.map +2 -2
- package/dist/cjs/vendor/react-native/VirtualizedList/CellRenderMask.native.js +1 -9
- package/dist/cjs/vendor/react-native/VirtualizedList/CellRenderMask.native.js.map +3 -3
- package/dist/cjs/vendor/react-native/VirtualizedList/ChildListCollection.js.map +2 -2
- package/dist/cjs/vendor/react-native/VirtualizedList/ChildListCollection.native.js.map +2 -2
- package/dist/cjs/vendor/react-native/VirtualizedList/StateSafePureComponent.cjs +3 -3
- package/dist/cjs/vendor/react-native/VirtualizedList/StateSafePureComponent.js +3 -3
- package/dist/cjs/vendor/react-native/VirtualizedList/StateSafePureComponent.js.map +3 -3
- package/dist/cjs/vendor/react-native/VirtualizedList/StateSafePureComponent.native.js +3 -3
- package/dist/cjs/vendor/react-native/VirtualizedList/StateSafePureComponent.native.js.map +2 -2
- package/dist/cjs/vendor/react-native/VirtualizedList/VirtualizedListCellRenderer.cjs +16 -9
- package/dist/cjs/vendor/react-native/VirtualizedList/VirtualizedListCellRenderer.js +16 -7
- package/dist/cjs/vendor/react-native/VirtualizedList/VirtualizedListCellRenderer.js.map +3 -3
- package/dist/cjs/vendor/react-native/VirtualizedList/VirtualizedListCellRenderer.native.js +19 -11
- package/dist/cjs/vendor/react-native/VirtualizedList/VirtualizedListCellRenderer.native.js.map +2 -2
- package/dist/cjs/vendor/react-native/VirtualizedList/VirtualizedListContext.cjs +4 -3
- package/dist/cjs/vendor/react-native/VirtualizedList/VirtualizedListContext.js +6 -13
- package/dist/cjs/vendor/react-native/VirtualizedList/VirtualizedListContext.js.map +2 -2
- package/dist/cjs/vendor/react-native/VirtualizedList/VirtualizedListContext.native.js +2 -1
- package/dist/cjs/vendor/react-native/VirtualizedList/VirtualizedListContext.native.js.map +3 -3
- package/dist/cjs/vendor/react-native/VirtualizedList/VirtualizedListProps.cjs +56 -8
- package/dist/cjs/vendor/react-native/VirtualizedList/VirtualizedListProps.js +46 -1
- package/dist/cjs/vendor/react-native/VirtualizedList/VirtualizedListProps.js.map +2 -2
- package/dist/cjs/vendor/react-native/VirtualizedList/VirtualizedListProps.native.js +49 -1
- package/dist/cjs/vendor/react-native/VirtualizedList/VirtualizedListProps.native.js.map +3 -3
- package/dist/cjs/vendor/react-native/VirtualizedList/index.cjs +136 -865
- package/dist/cjs/vendor/react-native/VirtualizedList/index.js +126 -894
- package/dist/cjs/vendor/react-native/VirtualizedList/index.js.map +3 -3
- package/dist/cjs/vendor/react-native/VirtualizedList/index.native.js +92 -853
- package/dist/cjs/vendor/react-native/VirtualizedList/index.native.js.map +3 -3
- package/dist/cjs/vendor/react-native/VirtualizedSectionList/index.cjs +129 -0
- package/dist/cjs/vendor/react-native/VirtualizedSectionList/index.js +118 -0
- package/dist/cjs/vendor/react-native/VirtualizedSectionList/index.js.map +6 -0
- package/dist/cjs/vendor/react-native/VirtualizedSectionList/index.native.js +219 -0
- package/dist/cjs/vendor/react-native/VirtualizedSectionList/index.native.js.map +6 -0
- package/dist/cjs/vendor/react-native/deepDiffer/index.cjs +5 -3
- package/dist/cjs/vendor/react-native/deepDiffer/index.js +4 -3
- package/dist/cjs/vendor/react-native/deepDiffer/index.js.map +3 -3
- package/dist/cjs/vendor/react-native/deepDiffer/index.native.js +3 -3
- package/dist/cjs/vendor/react-native/deepDiffer/index.native.js.map +2 -2
- package/dist/cjs/vendor/react-native/infoLog/index.js.map +2 -2
- package/dist/cjs/vendor/react-native/infoLog/index.native.js.map +2 -2
- package/dist/cjs/vendor/react-native/vendor/emitter/EventEmitter.cjs +86 -0
- package/dist/cjs/vendor/react-native/vendor/emitter/EventEmitter.js +85 -0
- package/dist/cjs/vendor/react-native/vendor/emitter/EventEmitter.js.map +6 -0
- package/dist/cjs/vendor/react-native/vendor/emitter/EventEmitter.native.js +163 -0
- package/dist/cjs/vendor/react-native/vendor/emitter/EventEmitter.native.js.map +6 -0
- package/dist/cjs/without-animated.cjs +1 -1
- package/dist/cjs/without-animated.js +1 -1
- package/dist/cjs/without-animated.js.map +1 -1
- package/dist/cjs/without-animated.native.js +1 -1
- package/dist/cjs/without-animated.native.js.map +1 -1
- package/dist/esm/InteractionManager/index.js +1 -0
- package/dist/esm/InteractionManager/index.js.map +1 -1
- package/dist/esm/InteractionManager/index.mjs +1 -0
- package/dist/esm/InteractionManager/index.mjs.map +1 -1
- package/dist/esm/InteractionManager/index.native.js +1 -0
- package/dist/esm/InteractionManager/index.native.js.map +1 -1
- package/dist/esm/ScrollView/index.js +155 -4
- package/dist/esm/ScrollView/index.js.map +1 -1
- package/dist/esm/ScrollView/index.mjs +173 -5
- package/dist/esm/ScrollView/index.mjs.map +1 -1
- package/dist/esm/ScrollView/index.native.js +176 -7
- package/dist/esm/ScrollView/index.native.js.map +1 -1
- package/dist/esm/SectionList.js +6 -0
- package/dist/esm/SectionList.js.map +6 -0
- package/dist/esm/SectionList.mjs +4 -0
- package/dist/esm/SectionList.mjs.map +1 -0
- package/dist/esm/SectionList.native.js +4 -0
- package/dist/esm/SectionList.native.js.map +1 -0
- package/dist/esm/TextInput/index.js +20 -3
- package/dist/esm/TextInput/index.js.map +1 -1
- package/dist/esm/TextInput/index.mjs +18 -2
- package/dist/esm/TextInput/index.mjs.map +1 -1
- package/dist/esm/TextInput/index.native.js +18 -2
- package/dist/esm/TextInput/index.native.js.map +1 -1
- package/dist/esm/TouchableNativeFeedback.js +6 -0
- package/dist/esm/TouchableNativeFeedback.js.map +6 -0
- package/dist/esm/TouchableNativeFeedback.mjs +4 -0
- package/dist/esm/TouchableNativeFeedback.mjs.map +1 -0
- package/dist/esm/TouchableNativeFeedback.native.js +4 -0
- package/dist/esm/TouchableNativeFeedback.native.js.map +1 -0
- package/dist/esm/VirtualizedList.js +6 -0
- package/dist/esm/VirtualizedList.js.map +6 -0
- package/dist/esm/VirtualizedList.mjs +4 -0
- package/dist/esm/VirtualizedList.mjs.map +1 -0
- package/dist/esm/VirtualizedList.native.js +4 -0
- package/dist/esm/VirtualizedList.native.js.map +1 -0
- package/dist/esm/createElement/index.js +3 -3
- package/dist/esm/createElement/index.js.map +1 -1
- package/dist/esm/createElement/index.mjs +3 -3
- package/dist/esm/createElement/index.mjs.map +1 -1
- package/dist/esm/createElement/index.native.js +3 -3
- package/dist/esm/createElement/index.native.js.map +1 -1
- package/dist/esm/index.js +12 -12
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/index.mjs +6 -4
- package/dist/esm/index.mjs.map +1 -1
- package/dist/esm/index.native.js +6 -4
- package/dist/esm/index.native.js.map +1 -1
- package/dist/esm/modules/requestIdleCallback.js +19 -0
- package/dist/esm/modules/requestIdleCallback.js.map +6 -0
- package/dist/esm/modules/requestIdleCallback.mjs +20 -0
- package/dist/esm/modules/requestIdleCallback.mjs.map +1 -0
- package/dist/esm/modules/requestIdleCallback.native.js +20 -0
- package/dist/esm/modules/requestIdleCallback.native.js.map +1 -0
- package/dist/esm/vendor/react-native/Animated/Animated.js +9 -5
- package/dist/esm/vendor/react-native/Animated/Animated.js.map +1 -1
- package/dist/esm/vendor/react-native/Animated/Animated.mjs +14 -11
- package/dist/esm/vendor/react-native/Animated/Animated.mjs.map +1 -1
- package/dist/esm/vendor/react-native/Animated/Animated.native.js +7 -4
- package/dist/esm/vendor/react-native/Animated/Animated.native.js.map +1 -1
- package/dist/esm/vendor/react-native/Animated/AnimatedEvent.js +25 -30
- package/dist/esm/vendor/react-native/Animated/AnimatedEvent.js.map +2 -2
- package/dist/esm/vendor/react-native/Animated/AnimatedEvent.mjs +25 -26
- package/dist/esm/vendor/react-native/Animated/AnimatedEvent.mjs.map +1 -1
- package/dist/esm/vendor/react-native/Animated/AnimatedEvent.native.js +21 -14
- package/dist/esm/vendor/react-native/Animated/AnimatedEvent.native.js.map +1 -1
- package/dist/esm/vendor/react-native/Animated/AnimatedImplementation.js +65 -84
- package/dist/esm/vendor/react-native/Animated/AnimatedImplementation.js.map +2 -2
- package/dist/esm/vendor/react-native/Animated/AnimatedImplementation.mjs +236 -234
- package/dist/esm/vendor/react-native/Animated/AnimatedImplementation.mjs.map +1 -1
- package/dist/esm/vendor/react-native/Animated/AnimatedImplementation.native.js +49 -43
- package/dist/esm/vendor/react-native/Animated/AnimatedImplementation.native.js.map +1 -1
- package/dist/esm/vendor/react-native/Animated/AnimatedMock.js +14 -20
- package/dist/esm/vendor/react-native/Animated/AnimatedMock.js.map +1 -1
- package/dist/esm/vendor/react-native/Animated/AnimatedMock.mjs +38 -39
- package/dist/esm/vendor/react-native/Animated/AnimatedMock.mjs.map +1 -1
- package/dist/esm/vendor/react-native/Animated/AnimatedMock.native.js +8 -7
- package/dist/esm/vendor/react-native/Animated/AnimatedMock.native.js.map +1 -1
- package/dist/esm/vendor/react-native/Animated/Easing.js +10 -11
- package/dist/esm/vendor/react-native/Animated/Easing.js.map +2 -2
- package/dist/esm/vendor/react-native/Animated/Easing.mjs +10 -11
- package/dist/esm/vendor/react-native/Animated/Easing.mjs.map +1 -1
- package/dist/esm/vendor/react-native/Animated/Easing.native.js +12 -11
- package/dist/esm/vendor/react-native/Animated/Easing.native.js.map +1 -1
- package/dist/esm/vendor/react-native/Animated/NativeAnimatedHelper.js +27 -34
- package/dist/esm/vendor/react-native/Animated/NativeAnimatedHelper.js.map +1 -1
- package/dist/esm/vendor/react-native/Animated/NativeAnimatedHelper.mjs +24 -32
- package/dist/esm/vendor/react-native/Animated/NativeAnimatedHelper.mjs.map +1 -1
- package/dist/esm/vendor/react-native/Animated/NativeAnimatedHelper.native.js +45 -44
- package/dist/esm/vendor/react-native/Animated/NativeAnimatedHelper.native.js.map +1 -1
- package/dist/esm/vendor/react-native/Animated/NativeAnimatedModule.js +60 -1
- package/dist/esm/vendor/react-native/Animated/NativeAnimatedModule.js.map +1 -1
- package/dist/esm/vendor/react-native/Animated/NativeAnimatedModule.mjs +35 -2
- package/dist/esm/vendor/react-native/Animated/NativeAnimatedModule.mjs.map +1 -1
- package/dist/esm/vendor/react-native/Animated/NativeAnimatedModule.native.js +35 -2
- package/dist/esm/vendor/react-native/Animated/NativeAnimatedModule.native.js.map +1 -1
- package/dist/esm/vendor/react-native/Animated/NativeAnimatedTurboModule.js +55 -1
- package/dist/esm/vendor/react-native/Animated/NativeAnimatedTurboModule.js.map +1 -1
- package/dist/esm/vendor/react-native/Animated/NativeAnimatedTurboModule.mjs +32 -2
- package/dist/esm/vendor/react-native/Animated/NativeAnimatedTurboModule.mjs.map +1 -1
- package/dist/esm/vendor/react-native/Animated/NativeAnimatedTurboModule.native.js +32 -2
- package/dist/esm/vendor/react-native/Animated/NativeAnimatedTurboModule.native.js.map +1 -1
- package/dist/esm/vendor/react-native/Animated/SpringConfig.js +5 -5
- package/dist/esm/vendor/react-native/Animated/SpringConfig.js.map +1 -1
- package/dist/esm/vendor/react-native/Animated/SpringConfig.mjs +5 -5
- package/dist/esm/vendor/react-native/Animated/SpringConfig.mjs.map +1 -1
- package/dist/esm/vendor/react-native/Animated/SpringConfig.native.js.map +1 -1
- package/dist/esm/vendor/react-native/Animated/animations/Animation.js +15 -6
- package/dist/esm/vendor/react-native/Animated/animations/Animation.js.map +1 -1
- package/dist/esm/vendor/react-native/Animated/animations/Animation.mjs +9 -4
- package/dist/esm/vendor/react-native/Animated/animations/Animation.mjs.map +1 -1
- package/dist/esm/vendor/react-native/Animated/animations/Animation.native.js +10 -2
- package/dist/esm/vendor/react-native/Animated/animations/Animation.native.js.map +1 -1
- package/dist/esm/vendor/react-native/Animated/animations/DecayAnimation.js +13 -10
- package/dist/esm/vendor/react-native/Animated/animations/DecayAnimation.js.map +1 -1
- package/dist/esm/vendor/react-native/Animated/animations/DecayAnimation.mjs +11 -4
- package/dist/esm/vendor/react-native/Animated/animations/DecayAnimation.mjs.map +1 -1
- package/dist/esm/vendor/react-native/Animated/animations/DecayAnimation.native.js +17 -3
- package/dist/esm/vendor/react-native/Animated/animations/DecayAnimation.native.js.map +1 -1
- package/dist/esm/vendor/react-native/Animated/animations/SpringAnimation.js +56 -40
- package/dist/esm/vendor/react-native/Animated/animations/SpringAnimation.js.map +1 -1
- package/dist/esm/vendor/react-native/Animated/animations/SpringAnimation.mjs +52 -41
- package/dist/esm/vendor/react-native/Animated/animations/SpringAnimation.mjs.map +1 -1
- package/dist/esm/vendor/react-native/Animated/animations/SpringAnimation.native.js +46 -16
- package/dist/esm/vendor/react-native/Animated/animations/SpringAnimation.native.js.map +1 -1
- package/dist/esm/vendor/react-native/Animated/animations/TimingAnimation.js +21 -16
- package/dist/esm/vendor/react-native/Animated/animations/TimingAnimation.js.map +1 -1
- package/dist/esm/vendor/react-native/Animated/animations/TimingAnimation.mjs +20 -7
- package/dist/esm/vendor/react-native/Animated/animations/TimingAnimation.mjs.map +1 -1
- package/dist/esm/vendor/react-native/Animated/animations/TimingAnimation.native.js +23 -3
- package/dist/esm/vendor/react-native/Animated/animations/TimingAnimation.native.js.map +1 -1
- package/dist/esm/vendor/react-native/Animated/bezier.js +22 -13
- package/dist/esm/vendor/react-native/Animated/bezier.js.map +1 -1
- package/dist/esm/vendor/react-native/Animated/bezier.mjs +16 -18
- package/dist/esm/vendor/react-native/Animated/bezier.mjs.map +1 -1
- package/dist/esm/vendor/react-native/Animated/bezier.native.js.map +1 -1
- package/dist/esm/vendor/react-native/Animated/components/AnimatedFlatList.js +10 -0
- package/dist/esm/vendor/react-native/Animated/components/AnimatedFlatList.js.map +6 -0
- package/dist/esm/vendor/react-native/Animated/components/AnimatedFlatList.mjs +12 -0
- package/dist/esm/vendor/react-native/Animated/components/AnimatedFlatList.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Animated/components/AnimatedFlatList.native.js +14 -0
- package/dist/esm/vendor/react-native/Animated/components/AnimatedFlatList.native.js.map +1 -0
- package/dist/esm/vendor/react-native/Animated/components/AnimatedImage.js +1 -1
- package/dist/esm/vendor/react-native/Animated/components/AnimatedImage.mjs +1 -1
- package/dist/esm/vendor/react-native/Animated/components/AnimatedImage.native.js +1 -1
- package/dist/esm/vendor/react-native/Animated/components/AnimatedScrollView.js +4 -11
- package/dist/esm/vendor/react-native/Animated/components/AnimatedScrollView.js.map +2 -2
- package/dist/esm/vendor/react-native/Animated/components/AnimatedScrollView.mjs +8 -7
- package/dist/esm/vendor/react-native/Animated/components/AnimatedScrollView.mjs.map +1 -1
- package/dist/esm/vendor/react-native/Animated/components/AnimatedScrollView.native.js +3 -2
- package/dist/esm/vendor/react-native/Animated/components/AnimatedScrollView.native.js.map +1 -1
- package/dist/esm/vendor/react-native/Animated/components/AnimatedSectionList.js +10 -0
- package/dist/esm/vendor/react-native/Animated/components/AnimatedSectionList.js.map +6 -0
- package/dist/esm/vendor/react-native/Animated/components/AnimatedSectionList.mjs +12 -0
- package/dist/esm/vendor/react-native/Animated/components/AnimatedSectionList.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Animated/components/AnimatedSectionList.native.js +14 -0
- package/dist/esm/vendor/react-native/Animated/components/AnimatedSectionList.native.js.map +1 -0
- package/dist/esm/vendor/react-native/Animated/components/AnimatedText.js +1 -2
- package/dist/esm/vendor/react-native/Animated/components/AnimatedText.js.map +1 -1
- package/dist/esm/vendor/react-native/Animated/components/AnimatedText.mjs +1 -2
- package/dist/esm/vendor/react-native/Animated/components/AnimatedText.mjs.map +1 -1
- package/dist/esm/vendor/react-native/Animated/components/AnimatedText.native.js +1 -2
- package/dist/esm/vendor/react-native/Animated/components/AnimatedText.native.js.map +1 -1
- package/dist/esm/vendor/react-native/Animated/components/AnimatedView.js +1 -2
- package/dist/esm/vendor/react-native/Animated/components/AnimatedView.js.map +1 -1
- package/dist/esm/vendor/react-native/Animated/components/AnimatedView.mjs +1 -2
- package/dist/esm/vendor/react-native/Animated/components/AnimatedView.mjs.map +1 -1
- package/dist/esm/vendor/react-native/Animated/components/AnimatedView.native.js +1 -2
- package/dist/esm/vendor/react-native/Animated/components/AnimatedView.native.js.map +1 -1
- package/dist/esm/vendor/react-native/Animated/createAnimatedComponent.js +16 -12
- package/dist/esm/vendor/react-native/Animated/createAnimatedComponent.js.map +2 -2
- package/dist/esm/vendor/react-native/Animated/createAnimatedComponent.mjs +15 -16
- package/dist/esm/vendor/react-native/Animated/createAnimatedComponent.mjs.map +1 -1
- package/dist/esm/vendor/react-native/Animated/createAnimatedComponent.native.js +11 -11
- package/dist/esm/vendor/react-native/Animated/createAnimatedComponent.native.js.map +1 -1
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedAddition.js +2 -0
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedAddition.js.map +1 -1
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedAddition.mjs +2 -0
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedAddition.mjs.map +1 -1
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedAddition.native.js +9 -1
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedAddition.native.js.map +1 -1
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedColor.js +33 -52
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedColor.js.map +1 -1
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedColor.mjs +34 -46
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedColor.mjs.map +1 -1
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedColor.native.js +27 -32
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedColor.native.js.map +1 -1
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedDiffClamp.js +6 -1
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedDiffClamp.js.map +1 -1
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedDiffClamp.mjs +6 -1
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedDiffClamp.mjs.map +1 -1
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedDiffClamp.native.js +11 -1
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedDiffClamp.native.js.map +1 -1
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedDivision.js +5 -2
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedDivision.js.map +1 -1
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedDivision.mjs +5 -2
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedDivision.mjs.map +1 -1
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedDivision.native.js +9 -1
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedDivision.native.js.map +1 -1
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedInterpolation.js +25 -28
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedInterpolation.js.map +2 -2
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedInterpolation.mjs +26 -31
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedInterpolation.mjs.map +1 -1
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedInterpolation.native.js +13 -12
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedInterpolation.native.js.map +1 -1
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedModulo.js +2 -0
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedModulo.js.map +1 -1
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedModulo.mjs +2 -0
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedModulo.mjs.map +1 -1
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedModulo.native.js +11 -1
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedModulo.native.js.map +1 -1
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedMultiplication.js +2 -0
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedMultiplication.js.map +1 -1
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedMultiplication.mjs +2 -0
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedMultiplication.mjs.map +1 -1
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedMultiplication.native.js +9 -1
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedMultiplication.native.js.map +1 -1
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedNode.js +14 -10
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedNode.js.map +1 -1
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedNode.mjs +13 -8
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedNode.mjs.map +1 -1
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedNode.native.js +13 -5
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedNode.native.js.map +1 -1
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedProps.js +23 -20
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedProps.js.map +1 -1
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedProps.mjs +19 -19
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedProps.mjs.map +1 -1
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedProps.native.js +4 -2
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedProps.native.js.map +1 -1
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedStyle.js +24 -22
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedStyle.js.map +1 -1
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedStyle.mjs +24 -22
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedStyle.mjs.map +1 -1
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedStyle.native.js +14 -4
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedStyle.native.js.map +1 -1
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedSubtraction.js +2 -0
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedSubtraction.js.map +1 -1
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedSubtraction.mjs +2 -0
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedSubtraction.mjs.map +1 -1
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedSubtraction.native.js +9 -1
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedSubtraction.native.js.map +1 -1
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedTracking.js +13 -11
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedTracking.js.map +1 -1
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedTracking.mjs +13 -6
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedTracking.mjs.map +1 -1
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedTracking.native.js +16 -4
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedTracking.native.js.map +1 -1
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedTransform.js +18 -17
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedTransform.js.map +1 -1
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedTransform.mjs +18 -17
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedTransform.mjs.map +1 -1
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedTransform.native.js +10 -2
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedTransform.native.js.map +1 -1
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedValue.js +11 -6
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedValue.js.map +1 -1
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedValue.mjs +11 -6
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedValue.mjs.map +1 -1
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedValue.native.js +11 -3
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedValue.native.js.map +1 -1
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedValueXY.js +5 -83
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedValueXY.js.map +1 -1
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedValueXY.mjs +7 -73
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedValueXY.mjs.map +1 -1
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedValueXY.native.js +7 -70
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedValueXY.native.js.map +1 -1
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedWithChildren.js +16 -11
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedWithChildren.js.map +1 -1
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedWithChildren.mjs +4 -10
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedWithChildren.mjs.map +1 -1
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedWithChildren.native.js +43 -8
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedWithChildren.native.js.map +1 -1
- package/dist/esm/vendor/react-native/Animated/useAnimatedProps.js +15 -31
- package/dist/esm/vendor/react-native/Animated/useAnimatedProps.js.map +1 -1
- package/dist/esm/vendor/react-native/Animated/useAnimatedProps.mjs +14 -23
- package/dist/esm/vendor/react-native/Animated/useAnimatedProps.mjs.map +1 -1
- package/dist/esm/vendor/react-native/Animated/useAnimatedProps.native.js +25 -19
- package/dist/esm/vendor/react-native/Animated/useAnimatedProps.native.js.map +1 -1
- package/dist/esm/{Batchinator → vendor/react-native/Batchinator}/index.js +2 -2
- package/dist/esm/vendor/react-native/Batchinator/index.js.map +6 -0
- package/dist/esm/{Batchinator → vendor/react-native/Batchinator}/index.mjs +2 -2
- package/dist/esm/vendor/react-native/Batchinator/index.mjs.map +1 -0
- package/dist/esm/{Batchinator → vendor/react-native/Batchinator}/index.native.js +2 -4
- package/dist/esm/vendor/react-native/Batchinator/index.native.js.map +1 -0
- package/dist/esm/vendor/react-native/EventEmitter/NativeEventEmitter.js +42 -0
- package/dist/esm/vendor/react-native/EventEmitter/NativeEventEmitter.js.map +6 -0
- package/dist/esm/vendor/react-native/EventEmitter/NativeEventEmitter.mjs +34 -0
- package/dist/esm/vendor/react-native/EventEmitter/NativeEventEmitter.mjs.map +1 -0
- package/dist/esm/vendor/react-native/{NativeEventEmitter/index.native.js → EventEmitter/NativeEventEmitter.native.js} +19 -12
- package/dist/esm/vendor/react-native/EventEmitter/NativeEventEmitter.native.js.map +1 -0
- package/dist/esm/vendor/react-native/EventEmitter/RCTDeviceEventEmitter.js.map +6 -0
- package/dist/esm/vendor/react-native/EventEmitter/RCTDeviceEventEmitter.mjs.map +1 -0
- package/dist/esm/vendor/react-native/EventEmitter/RCTDeviceEventEmitter.native.js.map +1 -0
- package/dist/esm/vendor/react-native/FillRateHelper/index.js +3 -3
- package/dist/esm/vendor/react-native/FillRateHelper/index.js.map +2 -2
- package/dist/esm/vendor/react-native/FillRateHelper/index.mjs +3 -3
- package/dist/esm/vendor/react-native/FillRateHelper/index.mjs.map +1 -1
- package/dist/esm/vendor/react-native/FillRateHelper/index.native.js +7 -7
- package/dist/esm/vendor/react-native/FillRateHelper/index.native.js.map +1 -1
- package/dist/esm/vendor/react-native/FlatList/index.js +254 -0
- package/dist/esm/vendor/react-native/FlatList/index.js.map +6 -0
- package/dist/esm/vendor/react-native/FlatList/index.mjs +228 -0
- package/dist/esm/vendor/react-native/FlatList/index.mjs.map +1 -0
- package/dist/esm/vendor/react-native/FlatList/index.native.js +330 -0
- package/dist/esm/vendor/react-native/FlatList/index.native.js.map +1 -0
- package/dist/esm/vendor/react-native/JSEventLoopWatchdog/index.js +39 -0
- package/dist/esm/vendor/react-native/JSEventLoopWatchdog/index.js.map +6 -0
- package/dist/esm/vendor/react-native/JSEventLoopWatchdog/index.mjs +52 -0
- package/dist/esm/vendor/react-native/JSEventLoopWatchdog/index.mjs.map +1 -0
- package/dist/esm/vendor/react-native/JSEventLoopWatchdog/index.native.js +53 -0
- package/dist/esm/vendor/react-native/JSEventLoopWatchdog/index.native.js.map +1 -0
- package/dist/esm/vendor/react-native/LayoutAnimation/index.js +84 -0
- package/dist/esm/vendor/react-native/LayoutAnimation/index.js.map +6 -0
- package/dist/esm/vendor/react-native/LayoutAnimation/index.mjs +85 -0
- package/dist/esm/vendor/react-native/LayoutAnimation/index.mjs.map +1 -0
- package/dist/esm/vendor/react-native/LayoutAnimation/index.native.js +86 -0
- package/dist/esm/vendor/react-native/LayoutAnimation/index.native.js.map +1 -0
- package/dist/esm/vendor/react-native/PanResponder/index.js +14 -202
- package/dist/esm/vendor/react-native/PanResponder/index.js.map +2 -2
- package/dist/esm/vendor/react-native/PanResponder/index.mjs +18 -192
- package/dist/esm/vendor/react-native/PanResponder/index.mjs.map +1 -1
- package/dist/esm/vendor/react-native/PanResponder/index.native.js +33 -192
- package/dist/esm/vendor/react-native/PanResponder/index.native.js.map +1 -1
- package/dist/esm/vendor/react-native/PooledClass/index.js +21 -0
- package/dist/esm/vendor/react-native/PooledClass/index.js.map +6 -0
- package/dist/esm/vendor/react-native/PooledClass/index.mjs +24 -0
- package/dist/esm/vendor/react-native/PooledClass/index.mjs.map +1 -0
- package/dist/esm/vendor/react-native/PooledClass/index.native.js +24 -0
- package/dist/esm/vendor/react-native/PooledClass/index.native.js.map +1 -0
- package/dist/esm/vendor/react-native/ReactNative/ReactNativeFeatureFlags.js +12 -0
- package/dist/esm/vendor/react-native/ReactNative/ReactNativeFeatureFlags.js.map +6 -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/ReactNative/ReactNativeFeatureFlags.native.js +20 -0
- package/dist/esm/vendor/react-native/ReactNative/ReactNativeFeatureFlags.native.js.map +1 -0
- package/dist/esm/vendor/react-native/SectionList/index.js +63 -0
- package/dist/esm/vendor/react-native/SectionList/index.js.map +6 -0
- package/dist/esm/vendor/react-native/SectionList/index.mjs +68 -0
- package/dist/esm/vendor/react-native/SectionList/index.mjs.map +1 -0
- package/dist/esm/vendor/react-native/SectionList/index.native.js +161 -0
- package/dist/esm/vendor/react-native/SectionList/index.native.js.map +1 -0
- package/dist/esm/vendor/react-native/StaticContainer/index.js +15 -0
- package/dist/esm/vendor/react-native/StaticContainer/index.js.map +6 -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/StaticContainer/index.native.js +77 -0
- package/dist/esm/vendor/react-native/StaticContainer/index.native.js.map +1 -0
- package/dist/esm/vendor/react-native/StaticRenderer/index.js +14 -0
- package/dist/esm/vendor/react-native/StaticRenderer/index.js.map +6 -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/StaticRenderer/index.native.js +76 -0
- package/dist/esm/vendor/react-native/StaticRenderer/index.native.js.map +1 -0
- package/dist/esm/vendor/react-native/TouchHistoryMath/index.js.map +2 -2
- package/dist/esm/vendor/react-native/TouchHistoryMath/index.mjs.map +1 -1
- package/dist/esm/vendor/react-native/TouchHistoryMath/index.native.js.map +1 -1
- package/dist/esm/vendor/react-native/TurboModule/RCTExport.js +9 -0
- package/dist/esm/vendor/react-native/TurboModule/RCTExport.js.map +2 -2
- package/dist/esm/vendor/react-native/TurboModule/RCTExport.mjs +7 -1
- package/dist/esm/vendor/react-native/TurboModule/RCTExport.mjs.map +1 -1
- package/dist/esm/vendor/react-native/TurboModule/RCTExport.native.js +9 -1
- package/dist/esm/vendor/react-native/TurboModule/RCTExport.native.js.map +1 -1
- package/dist/esm/vendor/react-native/TurboModule/TurboModuleRegistry.js +6 -1
- package/dist/esm/vendor/react-native/TurboModule/TurboModuleRegistry.js.map +1 -1
- package/dist/esm/vendor/react-native/TurboModule/TurboModuleRegistry.mjs +3 -1
- package/dist/esm/vendor/react-native/TurboModule/TurboModuleRegistry.mjs.map +1 -1
- package/dist/esm/vendor/react-native/TurboModule/TurboModuleRegistry.native.js +3 -1
- package/dist/esm/vendor/react-native/TurboModule/TurboModuleRegistry.native.js.map +1 -1
- package/dist/esm/vendor/react-native/Types/CoreEventTypes.js +119 -0
- package/dist/esm/vendor/react-native/Types/CoreEventTypes.js.map +2 -2
- package/dist/esm/vendor/react-native/Types/CoreEventTypes.mjs +131 -1
- package/dist/esm/vendor/react-native/Types/CoreEventTypes.mjs.map +1 -1
- package/dist/esm/vendor/react-native/Types/CoreEventTypes.native.js +135 -1
- package/dist/esm/vendor/react-native/Types/CoreEventTypes.native.js.map +1 -1
- package/dist/esm/vendor/react-native/Utilities/Platform.js +6 -0
- package/dist/esm/vendor/react-native/Utilities/Platform.js.map +6 -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/Platform.native.js +4 -0
- package/dist/esm/vendor/react-native/Utilities/Platform.native.js.map +1 -0
- package/dist/esm/vendor/react-native/Utilities/clamp.js.map +2 -2
- package/dist/esm/vendor/react-native/Utilities/clamp.mjs.map +1 -1
- package/dist/esm/vendor/react-native/Utilities/clamp.native.js.map +1 -1
- package/dist/esm/vendor/react-native/Utilities/setAndForwardRef.js +5 -3
- package/dist/esm/vendor/react-native/Utilities/setAndForwardRef.js.map +1 -1
- package/dist/esm/vendor/react-native/Utilities/setAndForwardRef.mjs +5 -4
- package/dist/esm/vendor/react-native/Utilities/setAndForwardRef.mjs.map +1 -1
- package/dist/esm/vendor/react-native/Utilities/setAndForwardRef.native.js +5 -3
- package/dist/esm/vendor/react-native/Utilities/setAndForwardRef.native.js.map +1 -1
- package/dist/esm/vendor/react-native/Utilities/useMergeRefs.js +15 -0
- package/dist/esm/vendor/react-native/Utilities/useMergeRefs.js.map +6 -0
- package/dist/esm/vendor/react-native/Utilities/useMergeRefs.mjs +10 -0
- package/dist/esm/vendor/react-native/Utilities/useMergeRefs.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Utilities/useMergeRefs.native.js +25 -0
- package/dist/esm/vendor/react-native/Utilities/useMergeRefs.native.js.map +1 -0
- package/dist/esm/vendor/react-native/Utilities/useRefEffect.js +14 -0
- package/dist/esm/vendor/react-native/Utilities/useRefEffect.js.map +6 -0
- package/dist/esm/vendor/react-native/Utilities/useRefEffect.mjs +9 -0
- package/dist/esm/vendor/react-native/Utilities/useRefEffect.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Utilities/useRefEffect.native.js +9 -0
- package/dist/esm/vendor/react-native/Utilities/useRefEffect.native.js.map +1 -0
- package/dist/esm/vendor/react-native/ViewabilityHelper/index.js +135 -0
- package/dist/esm/vendor/react-native/ViewabilityHelper/index.js.map +6 -0
- package/dist/esm/vendor/react-native/ViewabilityHelper/index.mjs +117 -0
- package/dist/esm/vendor/react-native/ViewabilityHelper/index.mjs.map +1 -0
- package/dist/esm/vendor/react-native/ViewabilityHelper/index.native.js +185 -0
- package/dist/esm/vendor/react-native/ViewabilityHelper/index.native.js.map +1 -0
- package/dist/esm/vendor/react-native/VirtualizeUtils/index.js.map +2 -2
- package/dist/esm/vendor/react-native/VirtualizeUtils/index.mjs.map +1 -1
- package/dist/esm/vendor/react-native/VirtualizeUtils/index.native.js.map +1 -1
- package/dist/esm/vendor/react-native/VirtualizedList/CellRenderMask.js +2 -8
- package/dist/esm/vendor/react-native/VirtualizedList/CellRenderMask.js.map +2 -2
- package/dist/esm/vendor/react-native/VirtualizedList/CellRenderMask.mjs +1 -3
- package/dist/esm/vendor/react-native/VirtualizedList/CellRenderMask.mjs.map +1 -1
- package/dist/esm/vendor/react-native/VirtualizedList/CellRenderMask.native.js +1 -9
- package/dist/esm/vendor/react-native/VirtualizedList/CellRenderMask.native.js.map +1 -1
- package/dist/esm/vendor/react-native/VirtualizedList/ChildListCollection.js.map +2 -2
- package/dist/esm/vendor/react-native/VirtualizedList/ChildListCollection.mjs.map +1 -1
- package/dist/esm/vendor/react-native/VirtualizedList/ChildListCollection.native.js.map +1 -1
- package/dist/esm/vendor/react-native/VirtualizedList/StateSafePureComponent.js +2 -2
- package/dist/esm/vendor/react-native/VirtualizedList/StateSafePureComponent.js.map +2 -2
- package/dist/esm/vendor/react-native/VirtualizedList/StateSafePureComponent.mjs +2 -2
- package/dist/esm/vendor/react-native/VirtualizedList/StateSafePureComponent.mjs.map +1 -1
- package/dist/esm/vendor/react-native/VirtualizedList/StateSafePureComponent.native.js +2 -2
- package/dist/esm/vendor/react-native/VirtualizedList/StateSafePureComponent.native.js.map +1 -1
- package/dist/esm/vendor/react-native/VirtualizedList/VirtualizedListCellRenderer.js +16 -10
- package/dist/esm/vendor/react-native/VirtualizedList/VirtualizedListCellRenderer.js.map +2 -2
- package/dist/esm/vendor/react-native/VirtualizedList/VirtualizedListCellRenderer.mjs +14 -7
- package/dist/esm/vendor/react-native/VirtualizedList/VirtualizedListCellRenderer.mjs.map +1 -1
- package/dist/esm/vendor/react-native/VirtualizedList/VirtualizedListCellRenderer.native.js +16 -9
- package/dist/esm/vendor/react-native/VirtualizedList/VirtualizedListCellRenderer.native.js.map +1 -1
- package/dist/esm/vendor/react-native/VirtualizedList/VirtualizedListContext.js +6 -12
- package/dist/esm/vendor/react-native/VirtualizedList/VirtualizedListContext.js.map +2 -2
- package/dist/esm/vendor/react-native/VirtualizedList/VirtualizedListContext.mjs +3 -2
- package/dist/esm/vendor/react-native/VirtualizedList/VirtualizedListContext.mjs.map +1 -1
- package/dist/esm/vendor/react-native/VirtualizedList/VirtualizedListContext.native.js +3 -2
- package/dist/esm/vendor/react-native/VirtualizedList/VirtualizedListContext.native.js.map +1 -1
- package/dist/esm/vendor/react-native/VirtualizedList/VirtualizedListProps.js +42 -0
- package/dist/esm/vendor/react-native/VirtualizedList/VirtualizedListProps.js.map +2 -2
- package/dist/esm/vendor/react-native/VirtualizedList/VirtualizedListProps.mjs +39 -1
- package/dist/esm/vendor/react-native/VirtualizedList/VirtualizedListProps.mjs.map +1 -1
- package/dist/esm/vendor/react-native/VirtualizedList/VirtualizedListProps.native.js +39 -1
- package/dist/esm/vendor/react-native/VirtualizedList/VirtualizedListProps.native.js.map +1 -1
- package/dist/esm/vendor/react-native/VirtualizedList/index.js +135 -910
- package/dist/esm/vendor/react-native/VirtualizedList/index.js.map +2 -2
- package/dist/esm/vendor/react-native/VirtualizedList/index.mjs +138 -867
- package/dist/esm/vendor/react-native/VirtualizedList/index.mjs.map +1 -1
- package/dist/esm/vendor/react-native/VirtualizedList/index.native.js +128 -912
- package/dist/esm/vendor/react-native/VirtualizedList/index.native.js.map +1 -1
- package/dist/esm/vendor/react-native/VirtualizedSectionList/index.js +96 -0
- package/dist/esm/vendor/react-native/VirtualizedSectionList/index.js.map +6 -0
- package/dist/esm/vendor/react-native/VirtualizedSectionList/index.mjs +95 -0
- package/dist/esm/vendor/react-native/VirtualizedSectionList/index.mjs.map +1 -0
- package/dist/esm/vendor/react-native/VirtualizedSectionList/index.native.js +204 -0
- package/dist/esm/vendor/react-native/VirtualizedSectionList/index.native.js.map +1 -0
- package/dist/esm/vendor/react-native/deepDiffer/index.js +3 -3
- package/dist/esm/vendor/react-native/deepDiffer/index.js.map +3 -3
- package/dist/esm/vendor/react-native/deepDiffer/index.mjs +3 -3
- package/dist/esm/vendor/react-native/deepDiffer/index.mjs.map +1 -1
- package/dist/esm/vendor/react-native/deepDiffer/index.native.js +3 -3
- package/dist/esm/vendor/react-native/deepDiffer/index.native.js.map +1 -1
- package/dist/esm/vendor/react-native/infoLog/index.js.map +2 -2
- package/dist/esm/vendor/react-native/infoLog/index.mjs.map +1 -1
- package/dist/esm/vendor/react-native/infoLog/index.native.js.map +1 -1
- package/dist/esm/vendor/react-native/vendor/emitter/EventEmitter.js +69 -0
- package/dist/esm/vendor/react-native/vendor/emitter/EventEmitter.js.map +6 -0
- package/dist/esm/vendor/react-native/vendor/emitter/EventEmitter.mjs +61 -0
- package/dist/esm/vendor/react-native/vendor/emitter/EventEmitter.mjs.map +1 -0
- package/dist/esm/vendor/react-native/vendor/emitter/EventEmitter.native.js +122 -0
- package/dist/esm/vendor/react-native/vendor/emitter/EventEmitter.native.js.map +1 -0
- package/dist/esm/without-animated.js +1 -1
- package/dist/esm/without-animated.mjs +1 -1
- package/dist/esm/without-animated.native.js +1 -1
- package/package.json +6 -6
- package/src/InteractionManager/index.tsx +1 -0
- package/src/ScrollView/index.tsx +238 -1
- package/src/SectionList.tsx +9 -0
- package/src/TextInput/index.tsx +20 -1
- package/src/TextInput/types.tsx +2 -0
- package/src/TouchableNativeFeedback.tsx +9 -0
- package/src/VirtualizedList.tsx +9 -0
- package/src/createElement/index.tsx +4 -4
- package/src/index.tsx +7 -5
- package/src/modules/requestIdleCallback.ts +34 -0
- package/src/vendor/react-native/Animated/Animated.js +17 -13
- package/src/vendor/react-native/Animated/AnimatedEvent.js +40 -65
- package/src/vendor/react-native/Animated/AnimatedImplementation.js +151 -190
- package/src/vendor/react-native/Animated/AnimatedMock.js +30 -44
- package/src/vendor/react-native/Animated/AnimatedPlatformConfig.js +4 -2
- package/src/vendor/react-native/Animated/Easing.js +60 -65
- package/src/vendor/react-native/Animated/NativeAnimatedHelper.js +87 -123
- package/src/vendor/react-native/Animated/NativeAnimatedModule.js +59 -3
- package/src/vendor/react-native/Animated/NativeAnimatedTurboModule.js +55 -3
- package/src/vendor/react-native/Animated/SpringConfig.js +14 -9
- package/src/vendor/react-native/Animated/animations/Animation.js +44 -31
- package/src/vendor/react-native/Animated/animations/DecayAnimation.js +52 -54
- package/src/vendor/react-native/Animated/animations/SpringAnimation.js +84 -140
- package/src/vendor/react-native/Animated/animations/TimingAnimation.js +29 -57
- package/src/vendor/react-native/Animated/bezier.js +80 -71
- package/src/vendor/react-native/Animated/components/AnimatedFlatList.jsx +23 -0
- package/src/vendor/react-native/Animated/components/AnimatedImage.js +2 -2
- package/src/vendor/react-native/Animated/components/{AnimatedScrollView.js → AnimatedScrollView.jsx} +9 -15
- package/src/vendor/react-native/Animated/components/AnimatedSectionList.jsx +23 -0
- package/src/vendor/react-native/Animated/components/AnimatedText.js +1 -3
- package/src/vendor/react-native/Animated/components/AnimatedView.js +1 -3
- package/src/vendor/react-native/Animated/createAnimatedComponent.jsx +46 -0
- package/src/vendor/react-native/Animated/nodes/AnimatedAddition.js +28 -26
- package/src/vendor/react-native/Animated/nodes/AnimatedColor.js +56 -122
- package/src/vendor/react-native/Animated/nodes/AnimatedDiffClamp.js +10 -7
- package/src/vendor/react-native/Animated/nodes/AnimatedDivision.js +36 -41
- package/src/vendor/react-native/Animated/nodes/{AnimatedInterpolation.js → AnimatedInterpolation.jsx} +55 -70
- package/src/vendor/react-native/Animated/nodes/AnimatedModulo.js +4 -4
- package/src/vendor/react-native/Animated/nodes/AnimatedMultiplication.js +28 -27
- package/src/vendor/react-native/Animated/nodes/AnimatedNode.js +23 -40
- package/src/vendor/react-native/Animated/nodes/AnimatedProps.js +25 -45
- package/src/vendor/react-native/Animated/nodes/AnimatedStyle.js +32 -46
- package/src/vendor/react-native/Animated/nodes/AnimatedSubtraction.js +27 -26
- package/src/vendor/react-native/Animated/nodes/AnimatedTracking.js +16 -22
- package/src/vendor/react-native/Animated/nodes/AnimatedTransform.js +53 -62
- package/src/vendor/react-native/Animated/nodes/AnimatedValue.js +33 -59
- package/src/vendor/react-native/Animated/nodes/AnimatedValueXY.js +8 -101
- package/src/vendor/react-native/Animated/nodes/AnimatedWithChildren.js +21 -25
- package/src/vendor/react-native/Animated/useAnimatedProps.js +45 -93
- package/src/{Batchinator/index.tsx → vendor/react-native/Batchinator/index.js} +10 -12
- package/src/vendor/react-native/{NativeEventEmitter/index.js → EventEmitter/NativeEventEmitter.js} +14 -34
- package/src/vendor/react-native/{NativeEventEmitter → EventEmitter}/RCTDeviceEventEmitter.js +4 -2
- package/src/vendor/react-native/FillRateHelper/{index.tsx → index.js} +41 -47
- package/src/vendor/react-native/FlatList/index.jsx +529 -0
- package/src/vendor/react-native/JSEventLoopWatchdog/index.js +84 -0
- package/src/vendor/react-native/LayoutAnimation/index.js +121 -0
- package/src/vendor/react-native/PanResponder/index.js +131 -0
- package/src/vendor/react-native/PooledClass/index.js +61 -0
- package/src/vendor/react-native/ReactNative/ReactNativeFeatureFlags.js +19 -0
- package/src/vendor/react-native/SectionList/index.jsx +97 -0
- package/src/vendor/react-native/StaticContainer/index.js +45 -0
- package/src/vendor/react-native/StaticRenderer/index.js +26 -0
- package/src/vendor/react-native/TouchHistoryMath/{index.tsx → index.js} +53 -36
- package/src/vendor/react-native/TurboModule/RCTExport.js +13 -2
- package/src/vendor/react-native/TurboModule/TurboModuleRegistry.js +12 -2
- package/src/vendor/react-native/Types/CoreEventTypes.js +153 -0
- package/src/vendor/react-native/Utilities/Platform.js +2 -0
- package/src/vendor/react-native/Utilities/{clamp.ts → clamp.js} +8 -6
- package/src/vendor/react-native/Utilities/setAndForwardRef.js +18 -11
- package/src/vendor/react-native/Utilities/useMergeRefs.js +41 -0
- package/src/vendor/react-native/Utilities/useRefEffect.js +44 -0
- package/src/vendor/react-native/ViewabilityHelper/index.js +250 -0
- package/src/vendor/react-native/ViewabilityHelper.ts +1 -1
- package/src/vendor/react-native/VirtualizeUtils/{index.tsx → index.js} +40 -48
- package/src/vendor/react-native/VirtualizedList/{CellRenderMask.ts → CellRenderMask.js} +14 -26
- package/src/vendor/react-native/VirtualizedList/{ChildListCollection.tsx → ChildListCollection.js} +10 -11
- package/src/vendor/react-native/VirtualizedList/{StateSafePureComponent.tsx → StateSafePureComponent.js} +19 -19
- package/src/vendor/react-native/VirtualizedList/{VirtualizedListCellRenderer.tsx → VirtualizedListCellRenderer.jsx} +43 -70
- package/src/vendor/react-native/VirtualizedList/{VirtualizedListContext.tsx → VirtualizedListContext.jsx} +24 -44
- package/src/vendor/react-native/VirtualizedList/VirtualizedListProps.js +46 -0
- package/src/vendor/react-native/VirtualizedList/index.jsx +395 -0
- package/src/vendor/react-native/VirtualizedSectionList/index.jsx +148 -0
- package/src/vendor/react-native/deepDiffer/{index.tsx → index.js} +32 -16
- package/src/vendor/react-native/infoLog/{index.tsx → index.js} +7 -3
- package/src/vendor/react-native/useRefEffect.js +1 -1
- package/src/vendor/react-native/vendor/emitter/EventEmitter.js +118 -0
- package/src/without-animated.tsx +1 -1
- package/dist/cjs/Batchinator/index.js.map +0 -6
- package/dist/cjs/Batchinator/index.native.js.map +0 -6
- package/dist/cjs/vendor/react-native/NativeEventEmitter/RCTDeviceEventEmitter.js.map +0 -6
- package/dist/cjs/vendor/react-native/NativeEventEmitter/RCTDeviceEventEmitter.native.js.map +0 -6
- package/dist/cjs/vendor/react-native/NativeEventEmitter/index.js.map +0 -6
- package/dist/cjs/vendor/react-native/NativeEventEmitter/index.native.js.map +0 -6
- package/dist/esm/Batchinator/index.js.map +0 -6
- package/dist/esm/Batchinator/index.mjs.map +0 -1
- package/dist/esm/Batchinator/index.native.js.map +0 -1
- package/dist/esm/vendor/react-native/NativeEventEmitter/RCTDeviceEventEmitter.js.map +0 -6
- package/dist/esm/vendor/react-native/NativeEventEmitter/RCTDeviceEventEmitter.mjs.map +0 -1
- package/dist/esm/vendor/react-native/NativeEventEmitter/RCTDeviceEventEmitter.native.js.map +0 -1
- package/dist/esm/vendor/react-native/NativeEventEmitter/index.js +0 -50
- package/dist/esm/vendor/react-native/NativeEventEmitter/index.js.map +0 -6
- package/dist/esm/vendor/react-native/NativeEventEmitter/index.mjs +0 -41
- package/dist/esm/vendor/react-native/NativeEventEmitter/index.mjs.map +0 -1
- package/dist/esm/vendor/react-native/NativeEventEmitter/index.native.js.map +0 -1
- package/src/vendor/react-native/Animated/createAnimatedComponent.js +0 -51
- package/src/vendor/react-native/PanResponder/index.tsx +0 -594
- package/src/vendor/react-native/Types/CoreEventTypes.tsx +0 -88
- package/src/vendor/react-native/VirtualizedList/VirtualizedListProps.ts +0 -130
- package/src/vendor/react-native/VirtualizedList/index.tsx +0 -1797
- /package/dist/cjs/vendor/react-native/{NativeEventEmitter → EventEmitter}/RCTDeviceEventEmitter.cjs +0 -0
- /package/dist/cjs/vendor/react-native/{NativeEventEmitter → EventEmitter}/RCTDeviceEventEmitter.js +0 -0
- /package/dist/cjs/vendor/react-native/{NativeEventEmitter → EventEmitter}/RCTDeviceEventEmitter.native.js +0 -0
- /package/dist/esm/vendor/react-native/{NativeEventEmitter → EventEmitter}/RCTDeviceEventEmitter.js +0 -0
- /package/dist/esm/vendor/react-native/{NativeEventEmitter → EventEmitter}/RCTDeviceEventEmitter.mjs +0 -0
- /package/dist/esm/vendor/react-native/{NativeEventEmitter → EventEmitter}/RCTDeviceEventEmitter.native.js +0 -0
|
@@ -1,58 +1,42 @@
|
|
|
1
|
-
import { invariant
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import { invariant } from "@tamagui/react-native-web-internals";
|
|
2
|
+
import ScrollView from "../../../ScrollView";
|
|
3
|
+
import RefreshControl from "../../../RefreshControl";
|
|
4
|
+
import Batchinator from "../Batchinator";
|
|
5
|
+
import ChildListCollection from "./ChildListCollection";
|
|
6
|
+
import FillRateHelper from "../FillRateHelper";
|
|
4
7
|
import StateSafePureComponent from "./StateSafePureComponent";
|
|
8
|
+
import ViewabilityHelper from "../ViewabilityHelper";
|
|
9
|
+
import CellRenderer from "./VirtualizedListCellRenderer";
|
|
5
10
|
import {
|
|
6
|
-
|
|
7
|
-
VirtualizedListContext,
|
|
8
|
-
VirtualizedListContextProvider
|
|
11
|
+
VirtualizedListContext
|
|
9
12
|
} from "./VirtualizedListContext";
|
|
10
|
-
import
|
|
11
|
-
|
|
12
|
-
import CellRenderer from "./VirtualizedListCellRenderer";
|
|
13
|
-
import FillRateHelper from "../FillRateHelper";
|
|
14
|
-
import ChildListCollection from "./ChildListCollection";
|
|
15
|
-
import React from "react";
|
|
16
|
-
import clamp from "../Utilities/clamp";
|
|
17
|
-
import { keyExtractor as defaultKeyExtractor } from "../VirtualizeUtils";
|
|
18
|
-
import Batchinator from "../../../Batchinator";
|
|
19
|
-
import RefreshControl from "../../../RefreshControl";
|
|
20
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
21
|
-
const __DEV__ = process.env.NODE_ENV !== "production", ON_EDGE_REACHED_EPSILON = 1e-3;
|
|
22
|
-
let _usedIndexForKey = !1, _keylessItemComponentName = "";
|
|
13
|
+
import { jsx } from "react/jsx-runtime";
|
|
14
|
+
const __DEV__ = process.env.NODE_ENV !== "production";
|
|
23
15
|
function horizontalOrDefault(horizontal) {
|
|
24
16
|
return horizontal ?? !1;
|
|
25
17
|
}
|
|
26
|
-
function initialNumToRenderOrDefault(initialNumToRender) {
|
|
27
|
-
return initialNumToRender ?? 10;
|
|
28
|
-
}
|
|
29
|
-
function maxToRenderPerBatchOrDefault(maxToRenderPerBatch) {
|
|
30
|
-
return maxToRenderPerBatch ?? 10;
|
|
31
|
-
}
|
|
32
|
-
function onStartReachedThresholdOrDefault(onStartReachedThreshold) {
|
|
33
|
-
return onStartReachedThreshold ?? 2;
|
|
34
|
-
}
|
|
35
|
-
function onEndReachedThresholdOrDefault(onEndReachedThreshold) {
|
|
36
|
-
return onEndReachedThreshold ?? 2;
|
|
37
|
-
}
|
|
38
|
-
function getScrollingThreshold(threshold, visibleLength) {
|
|
39
|
-
return threshold * visibleLength / 2;
|
|
40
|
-
}
|
|
41
18
|
function scrollEventThrottleOrDefault(scrollEventThrottle) {
|
|
42
19
|
return scrollEventThrottle ?? 50;
|
|
43
20
|
}
|
|
44
|
-
function windowSizeOrDefault(windowSize) {
|
|
45
|
-
return windowSize ?? 21;
|
|
46
|
-
}
|
|
47
|
-
function findLastWhere(arr, predicate) {
|
|
48
|
-
for (let i = arr.length - 1; i >= 0; i--)
|
|
49
|
-
if (predicate(arr[i]))
|
|
50
|
-
return arr[i];
|
|
51
|
-
return null;
|
|
52
|
-
}
|
|
53
21
|
class VirtualizedList extends StateSafePureComponent {
|
|
54
22
|
static contextType = VirtualizedListContext;
|
|
55
|
-
|
|
23
|
+
constructor(props) {
|
|
24
|
+
super(props), this._nestedChildLists = new ChildListCollection(), this._viewabilityTuples = [], this._scrollMetrics = {
|
|
25
|
+
contentLength: 0,
|
|
26
|
+
dOffset: 0,
|
|
27
|
+
dt: 10,
|
|
28
|
+
offset: 0,
|
|
29
|
+
timestamp: 0,
|
|
30
|
+
velocity: 0,
|
|
31
|
+
visibleLength: 0
|
|
32
|
+
}, this._highestMeasuredFrameIndex = 0, this._headerLength = 0, this._footerLength = 0, this._averageCellLength = 0, this._hasWarned = {}, this._fillRateHelper = new FillRateHelper(this._getFrameMetrics), this._updateCellsToRenderBatcher = new Batchinator(
|
|
33
|
+
this._updateCellsToRender,
|
|
34
|
+
this.props.updateCellsBatchingPeriod ?? 50
|
|
35
|
+
), this.props.viewabilityConfig && this.props.onViewableItemsChanged && this._viewabilityTuples.push({
|
|
36
|
+
viewabilityHelper: new ViewabilityHelper(this.props.viewabilityConfig),
|
|
37
|
+
onViewableItemsChanged: this.props.onViewableItemsChanged
|
|
38
|
+
});
|
|
39
|
+
}
|
|
56
40
|
scrollToEnd(params) {
|
|
57
41
|
const animated = params ? params.animated : !0, veryLast = this.props.getItemCount(this.props.data) - 1;
|
|
58
42
|
if (veryLast < 0)
|
|
@@ -73,15 +57,22 @@ class VirtualizedList extends StateSafePureComponent {
|
|
|
73
57
|
);
|
|
74
58
|
}
|
|
75
59
|
}
|
|
76
|
-
// scrollToIndex may be janky without getItemLayout prop
|
|
77
60
|
scrollToIndex(params) {
|
|
78
|
-
const {
|
|
61
|
+
const {
|
|
62
|
+
data,
|
|
63
|
+
horizontal,
|
|
64
|
+
getItemCount,
|
|
65
|
+
getItemLayout,
|
|
66
|
+
onScrollToIndexFailed
|
|
67
|
+
} = this.props, { animated, index, viewOffset, viewPosition } = params;
|
|
79
68
|
if (invariant(
|
|
80
69
|
index >= 0,
|
|
81
70
|
`scrollToIndex out of range: requested index ${index} but minimum is 0`
|
|
82
71
|
), invariant(
|
|
83
72
|
getItemCount(data) >= 1,
|
|
84
|
-
`scrollToIndex out of range: item length ${getItemCount(
|
|
73
|
+
`scrollToIndex out of range: item length ${getItemCount(
|
|
74
|
+
data
|
|
75
|
+
)} but minimum is 1`
|
|
85
76
|
), invariant(
|
|
86
77
|
index < getItemCount(data),
|
|
87
78
|
`scrollToIndex out of range: requested index ${index} is out of 0 to ${getItemCount(data) - 1}`
|
|
@@ -98,917 +89,151 @@ class VirtualizedList extends StateSafePureComponent {
|
|
|
98
89
|
}
|
|
99
90
|
const frame = this.__getFrameMetricsApprox(Math.floor(index), this.props), offset = Math.max(
|
|
100
91
|
0,
|
|
101
|
-
// @ts-ignore
|
|
102
92
|
this._getOffsetApprox(index, this.props) - (viewPosition || 0) * (this._scrollMetrics.visibleLength - frame.length)
|
|
103
93
|
) - (viewOffset || 0);
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
"No scrollTo method provided. This may be because you have two nested VirtualizedLists with the same orientation, or because you are using a custom component that does not implement scrollTo."
|
|
108
|
-
);
|
|
109
|
-
return;
|
|
110
|
-
}
|
|
111
|
-
this._scrollRef.scrollTo(
|
|
112
|
-
horizontal ? { x: offset, animated } : { y: offset, animated }
|
|
113
|
-
);
|
|
114
|
-
}
|
|
94
|
+
this._scrollRef != null && this._scrollRef.scrollTo(
|
|
95
|
+
horizontalOrDefault(horizontal) ? { x: offset, animated } : { y: offset, animated }
|
|
96
|
+
);
|
|
115
97
|
}
|
|
116
|
-
// scrollToItem may be janky without getItemLayout prop. Required linear scan through items -
|
|
117
|
-
// use scrollToIndex instead if possible.
|
|
118
98
|
scrollToItem(params) {
|
|
119
|
-
const {
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
99
|
+
const { data, getItem, getItemCount, horizontal, onScrollToIndexFailed } = this.props, { animated, item, viewPosition, viewOffset } = params, index = this.props.data.indexOf(item);
|
|
100
|
+
if (index !== -1)
|
|
101
|
+
this.scrollToIndex({
|
|
102
|
+
animated,
|
|
103
|
+
index,
|
|
104
|
+
viewOffset,
|
|
105
|
+
viewPosition
|
|
106
|
+
});
|
|
107
|
+
else {
|
|
108
|
+
const itemCount = getItemCount(data);
|
|
109
|
+
for (let i = 0; i < itemCount; i++)
|
|
110
|
+
if (getItem(data, i) === item) {
|
|
111
|
+
this.scrollToIndex({
|
|
112
|
+
animated,
|
|
113
|
+
index: i,
|
|
114
|
+
viewOffset,
|
|
115
|
+
viewPosition
|
|
116
|
+
});
|
|
117
|
+
break;
|
|
118
|
+
}
|
|
119
|
+
}
|
|
125
120
|
}
|
|
126
|
-
/**
|
|
127
|
-
* Scroll to a specific content pixel offset in the list.
|
|
128
|
-
*
|
|
129
|
-
* Param `offset` expects the offset to scroll to.
|
|
130
|
-
* In case of `horizontal` is true, the offset is the x-value,
|
|
131
|
-
* in any other case the offset is the y-value.
|
|
132
|
-
*
|
|
133
|
-
* Param `animated` (`true` by default) defines whether the list
|
|
134
|
-
* should do an animation while scrolling.
|
|
135
|
-
*/
|
|
136
121
|
scrollToOffset(params) {
|
|
137
122
|
const { animated, offset } = params;
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
"No scrollTo method provided. This may be because you have two nested VirtualizedLists with the same orientation, or because you are using a custom component that does not implement scrollTo."
|
|
142
|
-
);
|
|
143
|
-
return;
|
|
144
|
-
}
|
|
145
|
-
this._scrollRef.scrollTo(
|
|
146
|
-
horizontalOrDefault(this.props.horizontal) ? { x: offset, animated } : { y: offset, animated }
|
|
147
|
-
);
|
|
148
|
-
}
|
|
123
|
+
this._scrollRef != null && this._scrollRef.scrollTo(
|
|
124
|
+
horizontalOrDefault(this.props.horizontal) ? { x: offset, animated } : { y: offset, animated }
|
|
125
|
+
);
|
|
149
126
|
}
|
|
150
127
|
recordInteraction() {
|
|
151
128
|
this._nestedChildLists.forEach((childList) => {
|
|
152
129
|
childList.recordInteraction();
|
|
153
|
-
}), this._viewabilityTuples.forEach((
|
|
154
|
-
|
|
155
|
-
})
|
|
130
|
+
}), this._viewabilityTuples.forEach((viewabilityTuple) => {
|
|
131
|
+
viewabilityTuple.viewabilityHelper.recordInteraction();
|
|
132
|
+
});
|
|
156
133
|
}
|
|
157
134
|
flashScrollIndicators() {
|
|
158
|
-
this._scrollRef
|
|
135
|
+
this._scrollRef && this._scrollRef.flashScrollIndicators && this._scrollRef.flashScrollIndicators();
|
|
159
136
|
}
|
|
160
|
-
/**
|
|
161
|
-
* Provides a handle to the underlying scroll responder.
|
|
162
|
-
* Note that `this._scrollRef` might not be a `ScrollView`, so we
|
|
163
|
-
* need to check that it responds to `getScrollResponder` before calling it.
|
|
164
|
-
*/
|
|
165
137
|
getScrollResponder() {
|
|
166
|
-
|
|
138
|
+
if (this._scrollRef && this._scrollRef.getScrollResponder)
|
|
139
|
+
return this._scrollRef.getScrollResponder();
|
|
167
140
|
}
|
|
168
141
|
getScrollableNode() {
|
|
169
|
-
return this._scrollRef && this._scrollRef.getScrollableNode ? this._scrollRef.getScrollableNode() : this._scrollRef;
|
|
170
|
-
}
|
|
171
|
-
getScrollRef() {
|
|
172
|
-
return this._scrollRef && this._scrollRef.getScrollRef ? this._scrollRef.getScrollRef() : this._scrollRef;
|
|
173
|
-
}
|
|
174
|
-
_getCellKey() {
|
|
175
|
-
return this.context?.cellKey || "rootList";
|
|
176
|
-
}
|
|
177
|
-
_getScrollMetrics = () => this._scrollMetrics;
|
|
178
|
-
hasMore() {
|
|
179
|
-
return this._hasMore;
|
|
180
|
-
}
|
|
181
|
-
_getOutermostParentListRef = () => this._isNestedWithSameOrientation() ? this.context.getOutermostParentListRef() : this;
|
|
182
|
-
_registerAsNestedChild = (childList) => {
|
|
183
|
-
this._nestedChildLists.add(childList.ref, childList.cellKey), this._hasInteracted && childList.ref.recordInteraction();
|
|
184
|
-
};
|
|
185
|
-
_unregisterAsNestedChild = (childList) => {
|
|
186
|
-
this._nestedChildLists.remove(childList.ref);
|
|
187
|
-
};
|
|
188
|
-
invertedWheelEventHandler;
|
|
189
|
-
constructor(props) {
|
|
190
|
-
if (super(props), this._checkProps(props), this._fillRateHelper = new FillRateHelper(this._getFrameMetrics), this._updateCellsToRenderBatcher = new Batchinator(
|
|
191
|
-
this._updateCellsToRender,
|
|
192
|
-
this.props.updateCellsBatchingPeriod ?? 50
|
|
193
|
-
), this.props.viewabilityConfigCallbackPairs)
|
|
194
|
-
this._viewabilityTuples = this.props.viewabilityConfigCallbackPairs.map((pair) => ({
|
|
195
|
-
viewabilityHelper: new ViewabilityHelper(pair.viewabilityConfig),
|
|
196
|
-
onViewableItemsChanged: pair.onViewableItemsChanged
|
|
197
|
-
}));
|
|
198
|
-
else {
|
|
199
|
-
const { onViewableItemsChanged, viewabilityConfig } = this.props;
|
|
200
|
-
onViewableItemsChanged && this._viewabilityTuples.push({
|
|
201
|
-
viewabilityHelper: new ViewabilityHelper(viewabilityConfig),
|
|
202
|
-
onViewableItemsChanged
|
|
203
|
-
});
|
|
204
|
-
}
|
|
205
|
-
const initialRenderRegion = VirtualizedList._initialRenderRegion(props);
|
|
206
|
-
this.state = {
|
|
207
|
-
cellsAroundViewport: initialRenderRegion,
|
|
208
|
-
renderMask: VirtualizedList._createRenderMask(props, initialRenderRegion)
|
|
209
|
-
}, this.invertedWheelEventHandler = (ev) => {
|
|
210
|
-
const scrollOffset = this.props.horizontal ? ev.target.scrollLeft : ev.target.scrollTop, scrollLength = this.props.horizontal ? ev.target.scrollWidth : ev.target.scrollHeight, clientLength = this.props.horizontal ? ev.target.clientWidth : ev.target.clientHeight, isEventTargetScrollable = scrollLength > clientLength, delta = this.props.horizontal ? ev.deltaX || ev.wheelDeltaX : ev.deltaY || ev.wheelDeltaY;
|
|
211
|
-
let leftoverDelta = delta;
|
|
212
|
-
isEventTargetScrollable && (leftoverDelta = delta < 0 ? Math.min(delta + scrollOffset, 0) : Math.max(delta - (scrollLength - clientLength - scrollOffset), 0));
|
|
213
|
-
const targetDelta = delta - leftoverDelta;
|
|
214
|
-
if (this.props.inverted && this._scrollRef && this._scrollRef.getScrollableNode) {
|
|
215
|
-
const node = this._scrollRef.getScrollableNode();
|
|
216
|
-
if (this.props.horizontal) {
|
|
217
|
-
ev.target.scrollLeft += targetDelta;
|
|
218
|
-
const nextScrollLeft = node.scrollLeft - leftoverDelta;
|
|
219
|
-
node.scrollLeft = this.props.getItemLayout ? nextScrollLeft : Math.min(nextScrollLeft, this._totalCellLength);
|
|
220
|
-
} else {
|
|
221
|
-
ev.target.scrollTop += targetDelta;
|
|
222
|
-
const nextScrollTop = node.scrollTop - leftoverDelta;
|
|
223
|
-
node.scrollTop = this.props.getItemLayout ? nextScrollTop : Math.min(nextScrollTop, this._totalCellLength);
|
|
224
|
-
}
|
|
225
|
-
ev.preventDefault();
|
|
226
|
-
}
|
|
227
|
-
};
|
|
228
|
-
}
|
|
229
|
-
_checkProps(props) {
|
|
230
|
-
const { onScroll, windowSize, getItemCount, data, initialScrollIndex } = props;
|
|
231
|
-
invariant(
|
|
232
|
-
!(onScroll && onScroll.__isNative),
|
|
233
|
-
"Components based on VirtualizedList must be wrapped with Animated.createAnimatedComponent to support native onScroll events with useNativeDriver"
|
|
234
|
-
), invariant(
|
|
235
|
-
windowSizeOrDefault(windowSize) > 0,
|
|
236
|
-
"VirtualizedList: The windowSize prop must be present and set to a value greater than 0."
|
|
237
|
-
), invariant(getItemCount, 'VirtualizedList: The "getItemCount" prop must be provided');
|
|
238
|
-
const itemCount = getItemCount(data);
|
|
239
|
-
if (initialScrollIndex != null && !this._hasTriggeredInitialScrollToIndex && (initialScrollIndex < 0 || itemCount > 0 && initialScrollIndex >= itemCount) && !this._hasWarned.initialScrollIndex && (console.warn(
|
|
240
|
-
`initialScrollIndex "${initialScrollIndex}" is not valid (list has ${itemCount} items)`
|
|
241
|
-
), this._hasWarned.initialScrollIndex = !0), __DEV__ && !this._hasWarned.flexWrap) {
|
|
242
|
-
const flatStyles = StyleSheet.flatten(this.props.contentContainerStyle);
|
|
243
|
-
flatStyles != null && flatStyles.flexWrap === "wrap" && (console.warn(
|
|
244
|
-
"`flexWrap: `wrap`` is not supported with the `VirtualizedList` components.Consider using `numColumns` with `FlatList` instead."
|
|
245
|
-
), this._hasWarned.flexWrap = !0);
|
|
246
|
-
}
|
|
247
|
-
}
|
|
248
|
-
static _createRenderMask(props, cellsAroundViewport, additionalRegions) {
|
|
249
|
-
const itemCount = props.getItemCount(props.data);
|
|
250
|
-
invariant(
|
|
251
|
-
cellsAroundViewport.first >= 0 && cellsAroundViewport.last >= cellsAroundViewport.first - 1 && cellsAroundViewport.last < itemCount,
|
|
252
|
-
`Invalid cells around viewport "[${cellsAroundViewport.first}, ${cellsAroundViewport.last}]" was passed to VirtualizedList._createRenderMask`
|
|
253
|
-
);
|
|
254
|
-
const renderMask = new CellRenderMask(itemCount);
|
|
255
|
-
if (itemCount > 0) {
|
|
256
|
-
const allRegions = [cellsAroundViewport, ...additionalRegions ?? []];
|
|
257
|
-
for (const region of allRegions)
|
|
258
|
-
renderMask.addCells(region);
|
|
259
|
-
if (props.initialScrollIndex == null || props.initialScrollIndex <= 0) {
|
|
260
|
-
const initialRegion = VirtualizedList._initialRenderRegion(props);
|
|
261
|
-
renderMask.addCells(initialRegion);
|
|
262
|
-
}
|
|
263
|
-
const stickyIndicesSet = new Set(props.stickyHeaderIndices);
|
|
264
|
-
VirtualizedList._ensureClosestStickyHeader(
|
|
265
|
-
props,
|
|
266
|
-
stickyIndicesSet,
|
|
267
|
-
renderMask,
|
|
268
|
-
cellsAroundViewport.first
|
|
269
|
-
);
|
|
270
|
-
}
|
|
271
|
-
return renderMask;
|
|
272
|
-
}
|
|
273
|
-
static _initialRenderRegion(props) {
|
|
274
|
-
const itemCount = props.getItemCount(props.data), firstCellIndex = Math.max(
|
|
275
|
-
0,
|
|
276
|
-
Math.min(itemCount - 1, Math.floor(props.initialScrollIndex ?? 0))
|
|
277
|
-
), lastCellIndex = Math.min(
|
|
278
|
-
itemCount,
|
|
279
|
-
firstCellIndex + initialNumToRenderOrDefault(props.initialNumToRender)
|
|
280
|
-
) - 1;
|
|
281
|
-
return {
|
|
282
|
-
first: firstCellIndex,
|
|
283
|
-
last: lastCellIndex
|
|
284
|
-
};
|
|
285
|
-
}
|
|
286
|
-
static _ensureClosestStickyHeader(props, stickyIndicesSet, renderMask, cellIdx) {
|
|
287
|
-
const stickyOffset = props.ListHeaderComponent ? 1 : 0;
|
|
288
|
-
for (let itemIdx = cellIdx - 1; itemIdx >= 0; itemIdx--)
|
|
289
|
-
if (stickyIndicesSet.has(itemIdx + stickyOffset)) {
|
|
290
|
-
renderMask.addCells({ first: itemIdx, last: itemIdx });
|
|
291
|
-
break;
|
|
292
|
-
}
|
|
293
|
-
}
|
|
294
|
-
_adjustCellsAroundViewport(props, cellsAroundViewport) {
|
|
295
|
-
const { data, getItemCount } = props, onEndReachedThreshold = onEndReachedThresholdOrDefault(
|
|
296
|
-
props.onEndReachedThreshold
|
|
297
|
-
), { contentLength, offset, visibleLength } = this._scrollMetrics, distanceFromEnd = contentLength - visibleLength - offset;
|
|
298
|
-
if (visibleLength <= 0 || contentLength <= 0)
|
|
299
|
-
return cellsAroundViewport.last >= getItemCount(data) ? VirtualizedList._constrainToItemCount(cellsAroundViewport, props) : cellsAroundViewport;
|
|
300
|
-
let newCellsAroundViewport;
|
|
301
|
-
if (props.disableVirtualization) {
|
|
302
|
-
const renderAhead = distanceFromEnd < onEndReachedThreshold * visibleLength ? maxToRenderPerBatchOrDefault(props.maxToRenderPerBatch) : 0;
|
|
303
|
-
newCellsAroundViewport = {
|
|
304
|
-
first: 0,
|
|
305
|
-
last: Math.min(cellsAroundViewport.last + renderAhead, getItemCount(data) - 1)
|
|
306
|
-
};
|
|
307
|
-
} else {
|
|
308
|
-
if (props.initialScrollIndex && !this._scrollMetrics.offset && Math.abs(distanceFromEnd) >= Number.EPSILON)
|
|
309
|
-
return cellsAroundViewport.last >= getItemCount(data) ? VirtualizedList._constrainToItemCount(cellsAroundViewport, props) : cellsAroundViewport;
|
|
310
|
-
newCellsAroundViewport = computeWindowedRenderLimits(
|
|
311
|
-
props,
|
|
312
|
-
maxToRenderPerBatchOrDefault(props.maxToRenderPerBatch),
|
|
313
|
-
windowSizeOrDefault(props.windowSize),
|
|
314
|
-
cellsAroundViewport,
|
|
315
|
-
this.__getFrameMetricsApprox,
|
|
316
|
-
this._scrollMetrics
|
|
317
|
-
), invariant(
|
|
318
|
-
newCellsAroundViewport.last < getItemCount(data),
|
|
319
|
-
"computeWindowedRenderLimits() should return range in-bounds"
|
|
320
|
-
);
|
|
321
|
-
}
|
|
322
|
-
if (this._nestedChildLists.size() > 0) {
|
|
323
|
-
const childIdx = this._findFirstChildWithMore(
|
|
324
|
-
newCellsAroundViewport.first,
|
|
325
|
-
newCellsAroundViewport.last
|
|
326
|
-
);
|
|
327
|
-
newCellsAroundViewport.last = childIdx ?? newCellsAroundViewport.last;
|
|
328
|
-
}
|
|
329
|
-
return newCellsAroundViewport;
|
|
330
|
-
}
|
|
331
|
-
_findFirstChildWithMore(first, last) {
|
|
332
|
-
for (let ii = first; ii <= last; ii++) {
|
|
333
|
-
const cellKeyForIndex = this._indicesToKeys.get(ii);
|
|
334
|
-
if (cellKeyForIndex != null && this._nestedChildLists.anyInCell(
|
|
335
|
-
cellKeyForIndex,
|
|
336
|
-
(childList) => childList.hasMore()
|
|
337
|
-
))
|
|
338
|
-
return ii;
|
|
339
|
-
}
|
|
340
|
-
return null;
|
|
341
|
-
}
|
|
342
|
-
componentDidMount() {
|
|
343
|
-
this._isNestedWithSameOrientation() && this.context.registerAsNestedChild({
|
|
344
|
-
ref: this,
|
|
345
|
-
cellKey: this.context.cellKey
|
|
346
|
-
}), this.setupWebWheelHandler();
|
|
347
|
-
}
|
|
348
|
-
componentWillUnmount() {
|
|
349
|
-
this._isNestedWithSameOrientation() && this.context.unregisterAsNestedChild({ ref: this }), this._updateCellsToRenderBatcher.dispose({ abort: !0 }), this._viewabilityTuples.forEach((tuple) => {
|
|
350
|
-
tuple.viewabilityHelper.dispose();
|
|
351
|
-
}), this._fillRateHelper.deactivateAndFlush(), this.teardownWebWheelHandler();
|
|
352
|
-
}
|
|
353
|
-
setupWebWheelHandler() {
|
|
354
142
|
if (this._scrollRef && this._scrollRef.getScrollableNode)
|
|
355
|
-
this._scrollRef.getScrollableNode()
|
|
356
|
-
else {
|
|
357
|
-
setTimeout(() => this.setupWebWheelHandler(), 50);
|
|
358
|
-
return;
|
|
359
|
-
}
|
|
143
|
+
return this._scrollRef.getScrollableNode();
|
|
360
144
|
}
|
|
361
|
-
|
|
362
|
-
|
|
145
|
+
getScrollRef() {
|
|
146
|
+
return this._scrollRef;
|
|
363
147
|
}
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
return prevState;
|
|
367
|
-
const constrainedCells = VirtualizedList._constrainToItemCount(
|
|
368
|
-
prevState.cellsAroundViewport,
|
|
369
|
-
newProps
|
|
370
|
-
);
|
|
371
|
-
return {
|
|
372
|
-
cellsAroundViewport: constrainedCells,
|
|
373
|
-
renderMask: VirtualizedList._createRenderMask(newProps, constrainedCells)
|
|
374
|
-
};
|
|
148
|
+
setNativeProps(props) {
|
|
149
|
+
this._scrollRef && this._scrollRef.setNativeProps(props);
|
|
375
150
|
}
|
|
376
|
-
|
|
151
|
+
render() {
|
|
377
152
|
const {
|
|
378
|
-
|
|
379
|
-
|
|
153
|
+
ListEmptyComponent,
|
|
154
|
+
ListFooterComponent,
|
|
380
155
|
ListHeaderComponent,
|
|
381
|
-
ListItemComponent,
|
|
382
156
|
data,
|
|
383
157
|
debug,
|
|
158
|
+
disableVirtualization,
|
|
384
159
|
getItem,
|
|
385
160
|
getItemCount,
|
|
386
161
|
getItemLayout,
|
|
387
162
|
horizontal,
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
163
|
+
keyExtractor,
|
|
164
|
+
numColumns,
|
|
165
|
+
onEndReached,
|
|
166
|
+
onEndReachedThreshold,
|
|
167
|
+
onLayout,
|
|
168
|
+
onRefresh,
|
|
169
|
+
onScroll,
|
|
170
|
+
onScrollBeginDrag,
|
|
171
|
+
onScrollEndDrag,
|
|
172
|
+
onMomentumScrollBegin,
|
|
173
|
+
onMomentumScrollEnd,
|
|
174
|
+
onStartReached,
|
|
175
|
+
onStartReachedThreshold,
|
|
176
|
+
onViewableItemsChanged,
|
|
177
|
+
refreshing,
|
|
178
|
+
removeClippedSubviews,
|
|
179
|
+
renderItem,
|
|
180
|
+
viewabilityConfig,
|
|
181
|
+
viewabilityConfigCallbackPairs,
|
|
182
|
+
...restProps
|
|
183
|
+
} = this.props;
|
|
184
|
+
return getItemCount(data) === 0 ? ListEmptyComponent ? /* @__PURE__ */ jsx(ListEmptyComponent, {}) : null : /* @__PURE__ */ jsx(
|
|
185
|
+
ScrollView,
|
|
186
|
+
{
|
|
187
|
+
...restProps,
|
|
188
|
+
ref: this._captureRef,
|
|
189
|
+
onContentSizeChange: this._onContentSizeChange,
|
|
190
|
+
onLayout: this._onLayout,
|
|
191
|
+
onScroll: this._onScroll,
|
|
192
|
+
refreshControl: onRefresh && /* @__PURE__ */ jsx(RefreshControl, { refreshing, onRefresh }),
|
|
193
|
+
scrollEventThrottle: scrollEventThrottleOrDefault(this.props.scrollEventThrottle),
|
|
194
|
+
removeClippedSubviews,
|
|
195
|
+
children: this._renderChildren()
|
|
196
|
+
}
|
|
197
|
+
);
|
|
198
|
+
}
|
|
199
|
+
_renderChildren() {
|
|
200
|
+
const { data, getItem, getItemCount, renderItem } = this.props, items = [];
|
|
201
|
+
for (let i = 0; i < getItemCount(data); i++) {
|
|
202
|
+
const item = getItem(data, i);
|
|
203
|
+
items.push(
|
|
397
204
|
/* @__PURE__ */ jsx(
|
|
398
205
|
CellRenderer,
|
|
399
206
|
{
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
ListItemComponent,
|
|
403
|
-
cellKey: key,
|
|
404
|
-
horizontal,
|
|
405
|
-
index: ii,
|
|
406
|
-
inversionStyle,
|
|
207
|
+
cellKey: String(i),
|
|
208
|
+
index: i,
|
|
407
209
|
item,
|
|
408
|
-
|
|
409
|
-
onUpdateSeparators: this._onUpdateSeparators,
|
|
410
|
-
onCellFocusCapture: (e) => this._onCellFocusCapture(key),
|
|
411
|
-
onUnmount: this._onCellUnmount,
|
|
412
|
-
ref: (ref) => {
|
|
413
|
-
this._cellRefs[key] = ref;
|
|
414
|
-
},
|
|
415
|
-
renderItem,
|
|
416
|
-
...shouldListenForLayout && {
|
|
417
|
-
onCellLayout: this._onCellLayout
|
|
418
|
-
}
|
|
419
|
-
},
|
|
420
|
-
key
|
|
421
|
-
)
|
|
422
|
-
), prevCellKey = key;
|
|
423
|
-
}
|
|
424
|
-
}
|
|
425
|
-
static _constrainToItemCount(cells, props) {
|
|
426
|
-
const itemCount = props.getItemCount(props.data), last = Math.min(itemCount - 1, cells.last), maxToRenderPerBatch = maxToRenderPerBatchOrDefault(props.maxToRenderPerBatch);
|
|
427
|
-
return {
|
|
428
|
-
first: clamp(0, itemCount - 1 - maxToRenderPerBatch, cells.first),
|
|
429
|
-
last
|
|
430
|
-
};
|
|
431
|
-
}
|
|
432
|
-
_onUpdateSeparators = (keys, newProps) => {
|
|
433
|
-
keys.forEach((key) => {
|
|
434
|
-
const ref = key != null && this._cellRefs[key];
|
|
435
|
-
ref && ref.updateSeparatorProps(newProps);
|
|
436
|
-
});
|
|
437
|
-
};
|
|
438
|
-
_isNestedWithSameOrientation() {
|
|
439
|
-
const nestedContext = this.context;
|
|
440
|
-
return !!(nestedContext && !!nestedContext.horizontal === horizontalOrDefault(this.props.horizontal));
|
|
441
|
-
}
|
|
442
|
-
_getSpacerKey = (isVertical) => isVertical ? "height" : "width";
|
|
443
|
-
_keyExtractor(item, index, props) {
|
|
444
|
-
if (props.keyExtractor != null)
|
|
445
|
-
return props.keyExtractor(item, index);
|
|
446
|
-
const key = defaultKeyExtractor(item, index);
|
|
447
|
-
return key === String(index) && (_usedIndexForKey = !0, item.type && item.type.displayName && (_keylessItemComponentName = item.type.displayName)), key;
|
|
448
|
-
}
|
|
449
|
-
render() {
|
|
450
|
-
this._checkProps(this.props);
|
|
451
|
-
const { ListEmptyComponent, ListFooterComponent, ListHeaderComponent } = this.props, { data, horizontal } = this.props, inversionStyle = this.props.inverted ? horizontalOrDefault(this.props.horizontal) ? styles.horizontallyInverted : styles.verticallyInverted : null, cells = [], stickyIndicesFromProps = new Set(this.props.stickyHeaderIndices), stickyHeaderIndices = [];
|
|
452
|
-
if (ListHeaderComponent) {
|
|
453
|
-
stickyIndicesFromProps.has(0) && stickyHeaderIndices.push(0);
|
|
454
|
-
const element = React.isValidElement(ListHeaderComponent) ? ListHeaderComponent : /* @__PURE__ */ jsx(ListHeaderComponent, {});
|
|
455
|
-
cells.push(
|
|
456
|
-
/* @__PURE__ */ jsx(
|
|
457
|
-
VirtualizedListCellContextProvider,
|
|
458
|
-
{
|
|
459
|
-
cellKey: this._getCellKey() + "-header",
|
|
460
|
-
children: /* @__PURE__ */ jsx(
|
|
461
|
-
View,
|
|
462
|
-
{
|
|
463
|
-
onLayout: this._onLayoutHeader,
|
|
464
|
-
style: [inversionStyle, this.props.ListHeaderComponentStyle],
|
|
465
|
-
children: element
|
|
466
|
-
}
|
|
467
|
-
)
|
|
468
|
-
},
|
|
469
|
-
"$header"
|
|
470
|
-
)
|
|
471
|
-
);
|
|
472
|
-
}
|
|
473
|
-
const itemCount = this.props.getItemCount(data);
|
|
474
|
-
if (itemCount === 0 && ListEmptyComponent) {
|
|
475
|
-
const element = React.isValidElement(
|
|
476
|
-
ListEmptyComponent
|
|
477
|
-
) ? ListEmptyComponent : /* @__PURE__ */ jsx(ListEmptyComponent, {});
|
|
478
|
-
cells.push(
|
|
479
|
-
/* @__PURE__ */ jsx(
|
|
480
|
-
VirtualizedListCellContextProvider,
|
|
481
|
-
{
|
|
482
|
-
cellKey: this._getCellKey() + "-empty",
|
|
483
|
-
children: React.cloneElement(element, {
|
|
484
|
-
onLayout: (event) => {
|
|
485
|
-
this._onLayoutEmpty(event), element.props.onLayout && element.props.onLayout(event);
|
|
486
|
-
},
|
|
487
|
-
style: [inversionStyle, element.props.style]
|
|
488
|
-
})
|
|
489
|
-
},
|
|
490
|
-
"$empty"
|
|
491
|
-
)
|
|
492
|
-
);
|
|
493
|
-
}
|
|
494
|
-
if (itemCount > 0) {
|
|
495
|
-
_usedIndexForKey = !1, _keylessItemComponentName = "";
|
|
496
|
-
const spacerKey = this._getSpacerKey(!horizontal), renderRegions = this.state.renderMask.enumerateRegions(), lastSpacer = findLastWhere(renderRegions, (r) => r.isSpacer);
|
|
497
|
-
for (const section of renderRegions)
|
|
498
|
-
if (section.isSpacer) {
|
|
499
|
-
if (this.props.disableVirtualization)
|
|
500
|
-
continue;
|
|
501
|
-
const last = section === lastSpacer && !this.props.getItemLayout ? clamp(section.first - 1, section.last, this._highestMeasuredFrameIndex) : section.last, firstMetrics = this.__getFrameMetricsApprox(section.first, this.props), lastMetrics = this.__getFrameMetricsApprox(last, this.props), spacerSize = lastMetrics.offset + lastMetrics.length - firstMetrics.offset;
|
|
502
|
-
cells.push(
|
|
503
|
-
/* @__PURE__ */ jsx(View, { style: { [spacerKey]: spacerSize } }, `$spacer-${section.first}`)
|
|
504
|
-
);
|
|
505
|
-
} else
|
|
506
|
-
this._pushCells(
|
|
507
|
-
cells,
|
|
508
|
-
stickyHeaderIndices,
|
|
509
|
-
stickyIndicesFromProps,
|
|
510
|
-
section.first,
|
|
511
|
-
section.last,
|
|
512
|
-
inversionStyle
|
|
513
|
-
);
|
|
514
|
-
!this._hasWarned.keys && _usedIndexForKey && (console.warn(
|
|
515
|
-
"VirtualizedList: missing keys for items, make sure to specify a key or id property on each item or provide a custom keyExtractor.",
|
|
516
|
-
_keylessItemComponentName
|
|
517
|
-
), this._hasWarned.keys = !0);
|
|
518
|
-
}
|
|
519
|
-
if (ListFooterComponent) {
|
|
520
|
-
const element = React.isValidElement(ListFooterComponent) ? ListFooterComponent : /* @__PURE__ */ jsx(ListFooterComponent, {});
|
|
521
|
-
cells.push(
|
|
522
|
-
/* @__PURE__ */ jsx(
|
|
523
|
-
VirtualizedListCellContextProvider,
|
|
524
|
-
{
|
|
525
|
-
cellKey: this._getFooterCellKey(),
|
|
526
|
-
children: /* @__PURE__ */ jsx(
|
|
527
|
-
View,
|
|
528
|
-
{
|
|
529
|
-
onLayout: this._onLayoutFooter,
|
|
530
|
-
style: [inversionStyle, this.props.ListFooterComponentStyle],
|
|
531
|
-
children: element
|
|
532
|
-
}
|
|
533
|
-
)
|
|
210
|
+
renderItem
|
|
534
211
|
},
|
|
535
|
-
|
|
212
|
+
this.props.keyExtractor ? this.props.keyExtractor(item, i) : i
|
|
536
213
|
)
|
|
537
214
|
);
|
|
538
215
|
}
|
|
539
|
-
|
|
540
|
-
...this.props,
|
|
541
|
-
onContentSizeChange: this._onContentSizeChange,
|
|
542
|
-
onLayout: this._onLayout,
|
|
543
|
-
onScroll: this._onScroll,
|
|
544
|
-
onScrollBeginDrag: this._onScrollBeginDrag,
|
|
545
|
-
onScrollEndDrag: this._onScrollEndDrag,
|
|
546
|
-
onMomentumScrollBegin: this._onMomentumScrollBegin,
|
|
547
|
-
onMomentumScrollEnd: this._onMomentumScrollEnd,
|
|
548
|
-
scrollEventThrottle: scrollEventThrottleOrDefault(this.props.scrollEventThrottle),
|
|
549
|
-
invertStickyHeaders: this.props.invertStickyHeaders !== void 0 ? this.props.invertStickyHeaders : this.props.inverted,
|
|
550
|
-
stickyHeaderIndices,
|
|
551
|
-
style: inversionStyle ? [inversionStyle, this.props.style] : this.props.style
|
|
552
|
-
};
|
|
553
|
-
return this._hasMore = this.state.cellsAroundViewport.last < itemCount - 1, /* @__PURE__ */ jsx(
|
|
554
|
-
VirtualizedListContextProvider,
|
|
555
|
-
{
|
|
556
|
-
value: {
|
|
557
|
-
cellKey: null,
|
|
558
|
-
getScrollMetrics: this._getScrollMetrics,
|
|
559
|
-
horizontal: horizontalOrDefault(this.props.horizontal),
|
|
560
|
-
getOutermostParentListRef: this._getOutermostParentListRef,
|
|
561
|
-
registerAsNestedChild: this._registerAsNestedChild,
|
|
562
|
-
unregisterAsNestedChild: this._unregisterAsNestedChild
|
|
563
|
-
},
|
|
564
|
-
children: React.cloneElement(
|
|
565
|
-
(this.props.renderScrollComponent || this._defaultRenderScrollComponent)(
|
|
566
|
-
scrollProps
|
|
567
|
-
),
|
|
568
|
-
{
|
|
569
|
-
ref: this._captureScrollRef
|
|
570
|
-
},
|
|
571
|
-
cells
|
|
572
|
-
)
|
|
573
|
-
}
|
|
574
|
-
);
|
|
575
|
-
}
|
|
576
|
-
componentDidUpdate(prevProps) {
|
|
577
|
-
const { data, extraData } = this.props;
|
|
578
|
-
(data !== prevProps.data || extraData !== prevProps.extraData) && this._viewabilityTuples.forEach((tuple) => {
|
|
579
|
-
tuple.viewabilityHelper.resetViewableIndices();
|
|
580
|
-
});
|
|
581
|
-
const hiPriInProgress = this._hiPriInProgress;
|
|
582
|
-
this._scheduleCellsToRenderUpdate(), hiPriInProgress && (this._hiPriInProgress = !1);
|
|
216
|
+
return items;
|
|
583
217
|
}
|
|
584
|
-
|
|
585
|
-
_cellRefs = {};
|
|
586
|
-
_fillRateHelper;
|
|
587
|
-
_frames = {};
|
|
588
|
-
_footerLength = 0;
|
|
589
|
-
_hasTriggeredInitialScrollToIndex = !1;
|
|
590
|
-
_hasInteracted = !1;
|
|
591
|
-
_hasMore = !1;
|
|
592
|
-
_hasWarned = {};
|
|
593
|
-
_headerLength = 0;
|
|
594
|
-
_hiPriInProgress = !1;
|
|
595
|
-
_highestMeasuredFrameIndex = 0;
|
|
596
|
-
_indicesToKeys = /* @__PURE__ */ new Map();
|
|
597
|
-
_lastFocusedCellKey = null;
|
|
598
|
-
_nestedChildLists = new ChildListCollection();
|
|
599
|
-
_offsetFromParentVirtualizedList = 0;
|
|
600
|
-
_prevParentOffset = 0;
|
|
601
|
-
_scrollMetrics = {
|
|
602
|
-
contentLength: 0,
|
|
603
|
-
dOffset: 0,
|
|
604
|
-
dt: 10,
|
|
605
|
-
offset: 0,
|
|
606
|
-
timestamp: 0,
|
|
607
|
-
velocity: 0,
|
|
608
|
-
visibleLength: 0,
|
|
609
|
-
zoomScale: 1
|
|
610
|
-
};
|
|
611
|
-
_scrollRef = null;
|
|
612
|
-
_sentStartForContentLength = 0;
|
|
613
|
-
_sentEndForContentLength = 0;
|
|
614
|
-
_totalCellLength = 0;
|
|
615
|
-
_totalCellsMeasured = 0;
|
|
616
|
-
_updateCellsToRenderBatcher;
|
|
617
|
-
_viewabilityTuples = [];
|
|
618
|
-
_captureScrollRef = (ref) => {
|
|
218
|
+
_captureRef = (ref) => {
|
|
619
219
|
this._scrollRef = ref;
|
|
620
220
|
};
|
|
621
|
-
_computeBlankness() {
|
|
622
|
-
this._fillRateHelper.computeBlankness(
|
|
623
|
-
// @ts-ignore
|
|
624
|
-
this.props,
|
|
625
|
-
this.state.cellsAroundViewport,
|
|
626
|
-
this._scrollMetrics
|
|
627
|
-
);
|
|
628
|
-
}
|
|
629
|
-
_defaultRenderScrollComponent = (props) => {
|
|
630
|
-
const onRefresh = props.onRefresh;
|
|
631
|
-
return this._isNestedWithSameOrientation() ? /* @__PURE__ */ jsx(View, { ...props }) : onRefresh ? (invariant(
|
|
632
|
-
typeof props.refreshing == "boolean",
|
|
633
|
-
"`refreshing` prop must be set as a boolean in order to use `onRefresh`, but got `" + JSON.stringify(props.refreshing ?? "undefined") + "`"
|
|
634
|
-
), /* @__PURE__ */ jsx(
|
|
635
|
-
ScrollView,
|
|
636
|
-
{
|
|
637
|
-
...props,
|
|
638
|
-
refreshControl: props.refreshControl == null ? /* @__PURE__ */ jsx(
|
|
639
|
-
RefreshControl,
|
|
640
|
-
{
|
|
641
|
-
refreshing: props.refreshing,
|
|
642
|
-
onRefresh,
|
|
643
|
-
progressViewOffset: props.progressViewOffset
|
|
644
|
-
}
|
|
645
|
-
) : props.refreshControl
|
|
646
|
-
}
|
|
647
|
-
)) : /* @__PURE__ */ jsx(ScrollView, { ...props });
|
|
648
|
-
};
|
|
649
|
-
_onCellLayout = (e, cellKey, index) => {
|
|
650
|
-
const layout = e.nativeEvent.layout, next = {
|
|
651
|
-
offset: this._selectOffset(layout),
|
|
652
|
-
length: this._selectLength(layout),
|
|
653
|
-
index,
|
|
654
|
-
inLayout: !0
|
|
655
|
-
}, curr = this._frames[cellKey];
|
|
656
|
-
!curr || next.offset !== curr.offset || next.length !== curr.length || index !== curr.index ? (this._totalCellLength += next.length - (curr ? curr.length : 0), this._totalCellsMeasured += curr ? 0 : 1, this._averageCellLength = this._totalCellLength / this._totalCellsMeasured, this._frames[cellKey] = next, this._highestMeasuredFrameIndex = Math.max(this._highestMeasuredFrameIndex, index), this._scheduleCellsToRenderUpdate()) : this._frames[cellKey].inLayout = !0, this._triggerRemeasureForChildListsInCell(cellKey), this._computeBlankness(), this._updateViewableItems(
|
|
657
|
-
// @ts-ignore
|
|
658
|
-
this.props,
|
|
659
|
-
this.state.cellsAroundViewport
|
|
660
|
-
);
|
|
661
|
-
};
|
|
662
|
-
_onCellFocusCapture(cellKey) {
|
|
663
|
-
this._lastFocusedCellKey = cellKey, this._updateCellsToRender();
|
|
664
|
-
}
|
|
665
|
-
_onCellUnmount = (cellKey) => {
|
|
666
|
-
delete this._cellRefs[cellKey];
|
|
667
|
-
const curr = this._frames[cellKey];
|
|
668
|
-
curr && (this._frames[cellKey] = { ...curr, inLayout: !1 });
|
|
669
|
-
};
|
|
670
|
-
_triggerRemeasureForChildListsInCell(cellKey) {
|
|
671
|
-
this._nestedChildLists.forEachInCell(cellKey, (childList) => {
|
|
672
|
-
childList.measureLayoutRelativeToContainingList();
|
|
673
|
-
});
|
|
674
|
-
}
|
|
675
|
-
measureLayoutRelativeToContainingList() {
|
|
676
|
-
try {
|
|
677
|
-
if (!this._scrollRef)
|
|
678
|
-
return;
|
|
679
|
-
this._scrollRef.measureLayout(
|
|
680
|
-
this.context.getOutermostParentListRef().getScrollRef(),
|
|
681
|
-
(x, y, width, height) => {
|
|
682
|
-
this._offsetFromParentVirtualizedList = this._selectOffset({ x, y }), this._scrollMetrics.contentLength = this._selectLength({
|
|
683
|
-
width,
|
|
684
|
-
height
|
|
685
|
-
});
|
|
686
|
-
const scrollMetrics = this._convertParentScrollMetrics(
|
|
687
|
-
this.context.getScrollMetrics()
|
|
688
|
-
);
|
|
689
|
-
(this._scrollMetrics.visibleLength !== scrollMetrics.visibleLength || this._scrollMetrics.offset !== scrollMetrics.offset) && (this._scrollMetrics.visibleLength = scrollMetrics.visibleLength, this._scrollMetrics.offset = scrollMetrics.offset, this._nestedChildLists.forEach((childList) => {
|
|
690
|
-
childList.measureLayoutRelativeToContainingList();
|
|
691
|
-
}));
|
|
692
|
-
},
|
|
693
|
-
(error) => {
|
|
694
|
-
console.warn(
|
|
695
|
-
"VirtualizedList: Encountered an error while measuring a list's offset from its containing VirtualizedList."
|
|
696
|
-
);
|
|
697
|
-
}
|
|
698
|
-
);
|
|
699
|
-
} catch (error) {
|
|
700
|
-
console.warn("measureLayoutRelativeToContainingList threw an error", error.stack);
|
|
701
|
-
}
|
|
702
|
-
}
|
|
703
|
-
_onLayout = (e) => {
|
|
704
|
-
this._isNestedWithSameOrientation() ? this.measureLayoutRelativeToContainingList() : this._scrollMetrics.visibleLength = this._selectLength(e.nativeEvent.layout), this.props.onLayout && this.props.onLayout(e), this._scheduleCellsToRenderUpdate(), this._maybeCallOnEdgeReached();
|
|
705
|
-
};
|
|
706
|
-
_onLayoutEmpty = (e) => {
|
|
707
|
-
this.props.onLayout && this.props.onLayout(e);
|
|
708
|
-
};
|
|
709
|
-
_getFooterCellKey() {
|
|
710
|
-
return this._getCellKey() + "-footer";
|
|
711
|
-
}
|
|
712
|
-
_onLayoutFooter = (e) => {
|
|
713
|
-
this._triggerRemeasureForChildListsInCell(this._getFooterCellKey()), this._footerLength = this._selectLength(e.nativeEvent.layout);
|
|
714
|
-
};
|
|
715
|
-
_onLayoutHeader = (e) => {
|
|
716
|
-
this._headerLength = this._selectLength(e.nativeEvent.layout);
|
|
717
|
-
};
|
|
718
|
-
_renderDebugOverlay() {
|
|
719
|
-
const normalize = this._scrollMetrics.visibleLength / (this._scrollMetrics.contentLength || 1), framesInLayout = [], itemCount = this.props.getItemCount(this.props.data);
|
|
720
|
-
for (let ii = 0; ii < itemCount; ii++) {
|
|
721
|
-
const frame = this.__getFrameMetricsApprox(ii, this.props);
|
|
722
|
-
frame.inLayout && framesInLayout.push(frame);
|
|
723
|
-
}
|
|
724
|
-
const windowTop = this.__getFrameMetricsApprox(
|
|
725
|
-
this.state.cellsAroundViewport.first,
|
|
726
|
-
this.props
|
|
727
|
-
).offset, frameLast = this.__getFrameMetricsApprox(
|
|
728
|
-
this.state.cellsAroundViewport.last,
|
|
729
|
-
this.props
|
|
730
|
-
), windowLen = frameLast.offset + frameLast.length - windowTop, visTop = this._scrollMetrics.offset, visLen = this._scrollMetrics.visibleLength;
|
|
731
|
-
return /* @__PURE__ */ jsxs(View, { style: [styles.debugOverlayBase, styles.debugOverlay], children: [
|
|
732
|
-
framesInLayout.map((f, ii) => /* @__PURE__ */ jsx(
|
|
733
|
-
View,
|
|
734
|
-
{
|
|
735
|
-
style: [
|
|
736
|
-
styles.debugOverlayBase,
|
|
737
|
-
styles.debugOverlayFrame,
|
|
738
|
-
{
|
|
739
|
-
top: f.offset * normalize,
|
|
740
|
-
height: f.length * normalize
|
|
741
|
-
}
|
|
742
|
-
]
|
|
743
|
-
},
|
|
744
|
-
"f" + ii
|
|
745
|
-
)),
|
|
746
|
-
/* @__PURE__ */ jsx(
|
|
747
|
-
View,
|
|
748
|
-
{
|
|
749
|
-
style: [
|
|
750
|
-
styles.debugOverlayBase,
|
|
751
|
-
styles.debugOverlayFrameLast,
|
|
752
|
-
{
|
|
753
|
-
top: windowTop * normalize,
|
|
754
|
-
height: windowLen * normalize
|
|
755
|
-
}
|
|
756
|
-
]
|
|
757
|
-
}
|
|
758
|
-
),
|
|
759
|
-
/* @__PURE__ */ jsx(
|
|
760
|
-
View,
|
|
761
|
-
{
|
|
762
|
-
style: [
|
|
763
|
-
styles.debugOverlayBase,
|
|
764
|
-
styles.debugOverlayFrameVis,
|
|
765
|
-
{
|
|
766
|
-
top: visTop * normalize,
|
|
767
|
-
height: visLen * normalize
|
|
768
|
-
}
|
|
769
|
-
]
|
|
770
|
-
}
|
|
771
|
-
)
|
|
772
|
-
] });
|
|
773
|
-
}
|
|
774
|
-
_selectLength(metrics) {
|
|
775
|
-
return horizontalOrDefault(this.props.horizontal) ? metrics.width : metrics.height;
|
|
776
|
-
}
|
|
777
|
-
_selectOffset(metrics) {
|
|
778
|
-
return horizontalOrDefault(this.props.horizontal) ? metrics.x : metrics.y;
|
|
779
|
-
}
|
|
780
|
-
_maybeCallOnEdgeReached() {
|
|
781
|
-
const {
|
|
782
|
-
data,
|
|
783
|
-
getItemCount,
|
|
784
|
-
onStartReached,
|
|
785
|
-
onStartReachedThreshold,
|
|
786
|
-
onEndReached,
|
|
787
|
-
onEndReachedThreshold,
|
|
788
|
-
initialScrollIndex
|
|
789
|
-
} = this.props, { contentLength, visibleLength, offset } = this._scrollMetrics;
|
|
790
|
-
let distanceFromStart = offset, distanceFromEnd = contentLength - visibleLength - offset;
|
|
791
|
-
distanceFromStart < ON_EDGE_REACHED_EPSILON && (distanceFromStart = 0), distanceFromEnd < ON_EDGE_REACHED_EPSILON && (distanceFromEnd = 0);
|
|
792
|
-
const DEFAULT_THRESHOLD_PX = 2, startThreshold = onStartReachedThreshold != null ? onStartReachedThreshold * visibleLength : DEFAULT_THRESHOLD_PX, endThreshold = onEndReachedThreshold != null ? onEndReachedThreshold * visibleLength : DEFAULT_THRESHOLD_PX, isWithinStartThreshold = distanceFromStart <= startThreshold, isWithinEndThreshold = distanceFromEnd <= endThreshold;
|
|
793
|
-
onEndReached && this.state.cellsAroundViewport.last === getItemCount(data) - 1 && isWithinEndThreshold && this._scrollMetrics.contentLength !== this._sentEndForContentLength ? (this._sentEndForContentLength = this._scrollMetrics.contentLength, onEndReached({ distanceFromEnd })) : onStartReached != null && this.state.cellsAroundViewport.first === 0 && isWithinStartThreshold && this._scrollMetrics.contentLength !== this._sentStartForContentLength ? (!initialScrollIndex || this._scrollMetrics.timestamp !== 0) && (this._sentStartForContentLength = this._scrollMetrics.contentLength, onStartReached({ distanceFromStart })) : (this._sentStartForContentLength = isWithinStartThreshold ? this._sentStartForContentLength : 0, this._sentEndForContentLength = isWithinEndThreshold ? this._sentEndForContentLength : 0);
|
|
794
|
-
}
|
|
795
221
|
_onContentSizeChange = (width, height) => {
|
|
796
|
-
width > 0 && height > 0 && this.props.initialScrollIndex != null && this.props.initialScrollIndex > 0 && !this._hasTriggeredInitialScrollToIndex && (this.props.contentOffset == null && (this.props.initialScrollIndex < this.props.getItemCount(this.props.data) ? this.scrollToIndex({
|
|
797
|
-
animated: !1,
|
|
798
|
-
index: nullthrows(this.props.initialScrollIndex)
|
|
799
|
-
}) : this.scrollToEnd({ animated: !1 })), this._hasTriggeredInitialScrollToIndex = !0), this.props.onContentSizeChange && this.props.onContentSizeChange(width, height), this._scrollMetrics.contentLength = this._selectLength({ height, width }), this._scheduleCellsToRenderUpdate(), this._maybeCallOnEdgeReached();
|
|
800
222
|
};
|
|
801
|
-
|
|
802
|
-
const offset = metrics.offset - this._offsetFromParentVirtualizedList, visibleLength = metrics.visibleLength, dOffset = offset - this._scrollMetrics.offset, contentLength = this._scrollMetrics.contentLength;
|
|
803
|
-
return {
|
|
804
|
-
visibleLength,
|
|
805
|
-
contentLength,
|
|
806
|
-
offset,
|
|
807
|
-
dOffset
|
|
808
|
-
};
|
|
223
|
+
_onLayout = (event) => {
|
|
809
224
|
};
|
|
810
|
-
_onScroll = (
|
|
811
|
-
this._nestedChildLists.forEach((childList) => {
|
|
812
|
-
childList._onScroll(e);
|
|
813
|
-
}), this.props.onScroll && this.props.onScroll(e);
|
|
814
|
-
const timestamp = e.timeStamp;
|
|
815
|
-
let visibleLength = this._selectLength(e.nativeEvent.layoutMeasurement), contentLength = this._selectLength(e.nativeEvent.contentSize), offset = this._selectOffset(e.nativeEvent.contentOffset), dOffset = offset - this._scrollMetrics.offset;
|
|
816
|
-
if (this._isNestedWithSameOrientation()) {
|
|
817
|
-
if (this._scrollMetrics.contentLength === 0)
|
|
818
|
-
return;
|
|
819
|
-
({ visibleLength, contentLength, offset, dOffset } = this._convertParentScrollMetrics({
|
|
820
|
-
visibleLength,
|
|
821
|
-
offset
|
|
822
|
-
}));
|
|
823
|
-
}
|
|
824
|
-
const dt = this._scrollMetrics.timestamp ? Math.max(1, timestamp - this._scrollMetrics.timestamp) : 1, velocity = dOffset / dt;
|
|
825
|
-
dt > 500 && this._scrollMetrics.dt > 500 && contentLength > 5 * visibleLength && !this._hasWarned.perf && (infoLog(
|
|
826
|
-
"VirtualizedList: You have a large list that is slow to update - make sure your renderItem function renders components that follow React performance best practices like PureComponent, shouldComponentUpdate, etc.",
|
|
827
|
-
{ dt, prevDt: this._scrollMetrics.dt, contentLength }
|
|
828
|
-
), this._hasWarned.perf = !0);
|
|
829
|
-
const zoomScale = e.nativeEvent.zoomScale < 0 ? 1 : e.nativeEvent.zoomScale;
|
|
830
|
-
this._scrollMetrics = {
|
|
831
|
-
contentLength,
|
|
832
|
-
dt,
|
|
833
|
-
dOffset,
|
|
834
|
-
offset,
|
|
835
|
-
timestamp,
|
|
836
|
-
velocity,
|
|
837
|
-
visibleLength,
|
|
838
|
-
zoomScale
|
|
839
|
-
}, this._updateViewableItems(this.props, this.state.cellsAroundViewport), this.props && (this._maybeCallOnEdgeReached(), velocity !== 0 && this._fillRateHelper.activate(), this._computeBlankness(), this._scheduleCellsToRenderUpdate());
|
|
225
|
+
_onScroll = (event) => {
|
|
840
226
|
};
|
|
841
|
-
|
|
842
|
-
const { first, last } = this.state.cellsAroundViewport, { offset, visibleLength, velocity } = this._scrollMetrics, itemCount = this.props.getItemCount(this.props.data);
|
|
843
|
-
let hiPri = !1;
|
|
844
|
-
const onStartReachedThreshold = onStartReachedThresholdOrDefault(
|
|
845
|
-
this.props.onStartReachedThreshold
|
|
846
|
-
), onEndReachedThreshold = onEndReachedThresholdOrDefault(
|
|
847
|
-
this.props.onEndReachedThreshold
|
|
848
|
-
);
|
|
849
|
-
if (first > 0) {
|
|
850
|
-
const distTop = offset - this.__getFrameMetricsApprox(first, this.props).offset;
|
|
851
|
-
hiPri = distTop < 0 || velocity < -2 && distTop < getScrollingThreshold(onStartReachedThreshold, visibleLength);
|
|
852
|
-
}
|
|
853
|
-
if (!hiPri && last >= 0 && last < itemCount - 1) {
|
|
854
|
-
const distBottom = this.__getFrameMetricsApprox(last, this.props).offset - (offset + visibleLength);
|
|
855
|
-
hiPri = distBottom < 0 || velocity > 2 && distBottom < getScrollingThreshold(onEndReachedThreshold, visibleLength);
|
|
856
|
-
}
|
|
857
|
-
if (hiPri && (this._averageCellLength || this.props.getItemLayout) && !this._hiPriInProgress) {
|
|
858
|
-
this._hiPriInProgress = !0, this._updateCellsToRenderBatcher.dispose({ abort: !0 }), this._updateCellsToRender();
|
|
859
|
-
return;
|
|
860
|
-
} else
|
|
861
|
-
this._updateCellsToRenderBatcher.schedule();
|
|
862
|
-
}
|
|
863
|
-
_onScrollBeginDrag = (e) => {
|
|
864
|
-
this._nestedChildLists.forEach((childList) => {
|
|
865
|
-
childList._onScrollBeginDrag(e);
|
|
866
|
-
}), this._viewabilityTuples.forEach((tuple) => {
|
|
867
|
-
tuple.viewabilityHelper.recordInteraction();
|
|
868
|
-
}), this._hasInteracted = !0, this.props.onScrollBeginDrag && this.props.onScrollBeginDrag(e);
|
|
869
|
-
};
|
|
870
|
-
_onScrollEndDrag = (e) => {
|
|
871
|
-
this._nestedChildLists.forEach((childList) => {
|
|
872
|
-
childList._onScrollEndDrag(e);
|
|
873
|
-
});
|
|
874
|
-
const { velocity } = e.nativeEvent;
|
|
875
|
-
velocity && (this._scrollMetrics.velocity = this._selectOffset(velocity)), this._computeBlankness(), this.props.onScrollEndDrag && this.props.onScrollEndDrag(e);
|
|
876
|
-
};
|
|
877
|
-
_onMomentumScrollBegin = (e) => {
|
|
878
|
-
this._nestedChildLists.forEach((childList) => {
|
|
879
|
-
childList._onMomentumScrollBegin(e);
|
|
880
|
-
}), this.props.onMomentumScrollBegin && this.props.onMomentumScrollBegin(e);
|
|
881
|
-
};
|
|
882
|
-
_onMomentumScrollEnd = (e) => {
|
|
883
|
-
this._nestedChildLists.forEach((childList) => {
|
|
884
|
-
childList._onMomentumScrollEnd(e);
|
|
885
|
-
}), this._scrollMetrics.velocity = 0, this._computeBlankness(), this.props.onMomentumScrollEnd && this.props.onMomentumScrollEnd(e);
|
|
886
|
-
};
|
|
887
|
-
_updateCellsToRender = () => {
|
|
888
|
-
this._updateViewableItems(this.props, this.state.cellsAroundViewport), this.setState((state, props) => {
|
|
889
|
-
const cellsAroundViewport = this._adjustCellsAroundViewport(
|
|
890
|
-
props,
|
|
891
|
-
state.cellsAroundViewport
|
|
892
|
-
), renderMask = VirtualizedList._createRenderMask(
|
|
893
|
-
props,
|
|
894
|
-
cellsAroundViewport,
|
|
895
|
-
this._getNonViewportRenderRegions(props)
|
|
896
|
-
);
|
|
897
|
-
return cellsAroundViewport.first === state.cellsAroundViewport.first && cellsAroundViewport.last === state.cellsAroundViewport.last && renderMask.equals(state.renderMask) ? null : { cellsAroundViewport, renderMask };
|
|
898
|
-
});
|
|
899
|
-
};
|
|
900
|
-
_createViewToken = (index, isViewable, props) => {
|
|
901
|
-
const { data, getItem } = props, item = getItem(data, index);
|
|
227
|
+
__getFrameMetricsApprox(index, props) {
|
|
902
228
|
return {
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
key: this._keyExtractor(item, index, props),
|
|
906
|
-
isViewable
|
|
229
|
+
length: this._averageCellLength,
|
|
230
|
+
offset: this._averageCellLength * index
|
|
907
231
|
};
|
|
908
|
-
};
|
|
909
|
-
_getOffsetApprox = (index, props) => {
|
|
910
|
-
if (Number.isInteger(index))
|
|
911
|
-
return this.__getFrameMetricsApprox(index, props).offset;
|
|
912
|
-
{
|
|
913
|
-
const frameMetrics = this.__getFrameMetricsApprox(Math.floor(index), props), remainder = index - Math.floor(index);
|
|
914
|
-
return frameMetrics.offset + remainder * frameMetrics.length;
|
|
915
|
-
}
|
|
916
|
-
};
|
|
917
|
-
__getFrameMetricsApprox = (index, props) => {
|
|
918
|
-
const frame = this._getFrameMetrics(index, props);
|
|
919
|
-
if (frame && frame.index === index)
|
|
920
|
-
return frame;
|
|
921
|
-
{
|
|
922
|
-
const { data, getItemCount, getItemLayout } = props;
|
|
923
|
-
return invariant(
|
|
924
|
-
index >= 0 && index < getItemCount(data),
|
|
925
|
-
"Tried to get frame for out of range index " + index
|
|
926
|
-
), invariant(
|
|
927
|
-
!getItemLayout,
|
|
928
|
-
"Should not have to estimate frames when a measurement metrics function is provided"
|
|
929
|
-
), {
|
|
930
|
-
length: this._averageCellLength,
|
|
931
|
-
offset: this._averageCellLength * index
|
|
932
|
-
};
|
|
933
|
-
}
|
|
934
|
-
};
|
|
935
|
-
_getFrameMetrics = (index, props) => {
|
|
936
|
-
const { data, getItem, getItemCount, getItemLayout } = props;
|
|
937
|
-
invariant(
|
|
938
|
-
index >= 0 && index < getItemCount(data),
|
|
939
|
-
"Tried to get frame for out of range index " + index
|
|
940
|
-
);
|
|
941
|
-
const item = getItem(data, index), frame = this._frames[this._keyExtractor(item, index, props)];
|
|
942
|
-
return (!frame || frame.index !== index) && getItemLayout ? getItemLayout(data, index) : frame;
|
|
943
|
-
};
|
|
944
|
-
_getNonViewportRenderRegions = (props) => {
|
|
945
|
-
if (!(this._lastFocusedCellKey && this._cellRefs[this._lastFocusedCellKey]))
|
|
946
|
-
return [];
|
|
947
|
-
const focusedCellIndex = this._cellRefs[this._lastFocusedCellKey].props.index, itemCount = props.getItemCount(props.data);
|
|
948
|
-
if (focusedCellIndex >= itemCount || this._keyExtractor(
|
|
949
|
-
props.getItem(props.data, focusedCellIndex),
|
|
950
|
-
focusedCellIndex,
|
|
951
|
-
props
|
|
952
|
-
) !== this._lastFocusedCellKey)
|
|
953
|
-
return [];
|
|
954
|
-
let first = focusedCellIndex, heightOfCellsBeforeFocused = 0;
|
|
955
|
-
for (let i = first - 1; i >= 0 && heightOfCellsBeforeFocused < this._scrollMetrics.visibleLength; i--)
|
|
956
|
-
first--, heightOfCellsBeforeFocused += this.__getFrameMetricsApprox(i, props).length;
|
|
957
|
-
let last = focusedCellIndex, heightOfCellsAfterFocused = 0;
|
|
958
|
-
for (let i = last + 1; i < itemCount && heightOfCellsAfterFocused < this._scrollMetrics.visibleLength; i++)
|
|
959
|
-
last++, heightOfCellsAfterFocused += this.__getFrameMetricsApprox(i, props).length;
|
|
960
|
-
return [{ first, last }];
|
|
961
|
-
};
|
|
962
|
-
_updateViewableItems(props, cellsAroundViewport) {
|
|
963
|
-
this._viewabilityTuples.forEach((tuple) => {
|
|
964
|
-
tuple.viewabilityHelper.onUpdate(
|
|
965
|
-
props,
|
|
966
|
-
this._scrollMetrics.offset,
|
|
967
|
-
this._scrollMetrics.visibleLength,
|
|
968
|
-
this._getFrameMetrics,
|
|
969
|
-
this._createViewToken,
|
|
970
|
-
tuple.onViewableItemsChanged,
|
|
971
|
-
cellsAroundViewport
|
|
972
|
-
);
|
|
973
|
-
});
|
|
974
232
|
}
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
verticallyInverted: {
|
|
978
|
-
transform: "scaleY(-1)"
|
|
979
|
-
},
|
|
980
|
-
horizontallyInverted: {
|
|
981
|
-
transform: "scaleX(-1)"
|
|
982
|
-
},
|
|
983
|
-
debug: {
|
|
984
|
-
flex: 1
|
|
985
|
-
},
|
|
986
|
-
debugOverlayBase: {
|
|
987
|
-
position: "absolute",
|
|
988
|
-
top: 0,
|
|
989
|
-
right: 0
|
|
990
|
-
},
|
|
991
|
-
debugOverlay: {
|
|
992
|
-
bottom: 0,
|
|
993
|
-
width: 20,
|
|
994
|
-
borderColor: "blue",
|
|
995
|
-
borderWidth: 1
|
|
996
|
-
},
|
|
997
|
-
debugOverlayFrame: {
|
|
998
|
-
left: 0,
|
|
999
|
-
backgroundColor: "orange"
|
|
1000
|
-
},
|
|
1001
|
-
debugOverlayFrameLast: {
|
|
1002
|
-
left: 0,
|
|
1003
|
-
borderColor: "green",
|
|
1004
|
-
borderWidth: 2
|
|
1005
|
-
},
|
|
1006
|
-
debugOverlayFrameVis: {
|
|
1007
|
-
left: 0,
|
|
1008
|
-
borderColor: "red",
|
|
1009
|
-
borderWidth: 2
|
|
233
|
+
_getOffsetApprox(index, props) {
|
|
234
|
+
return this.__getFrameMetricsApprox(index, props).offset;
|
|
1010
235
|
}
|
|
1011
|
-
}
|
|
236
|
+
}
|
|
1012
237
|
var VirtualizedList_default = VirtualizedList;
|
|
1013
238
|
export {
|
|
1014
239
|
VirtualizedList_default as default
|