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