@hanzogui/react-native-web-lite 2.0.0-rc.41-hanzoai.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +31 -0
- package/dist/cjs/AccessibilityInfo/index.cjs +109 -0
- package/dist/cjs/ActivityIndicator/__tests__/index-test.cjs +209 -0
- package/dist/cjs/ActivityIndicator/index.cjs +130 -0
- package/dist/cjs/Alert/index.cjs +30 -0
- package/dist/cjs/AppRegistry/AppContainer.cjs +75 -0
- package/dist/cjs/AppRegistry/__tests__/index-test.cjs +97 -0
- package/dist/cjs/AppRegistry/__tests__/index-test.node.cjs +162 -0
- package/dist/cjs/AppRegistry/index.cjs +100 -0
- package/dist/cjs/AppRegistry/renderApplication.cjs +74 -0
- package/dist/cjs/AppState/__tests__/index-test.cjs +38 -0
- package/dist/cjs/AppState/index.cjs +85 -0
- package/dist/cjs/Appearance/index.cjs +64 -0
- package/dist/cjs/BackHandler/index.cjs +37 -0
- package/dist/cjs/Clipboard/index.cjs +64 -0
- package/dist/cjs/DeviceEmitter.cjs +29 -0
- package/dist/cjs/DeviceInfo/index.cjs +76 -0
- package/dist/cjs/Dimensions/__tests__/index-test.cjs +67 -0
- package/dist/cjs/Dimensions/index.cjs +112 -0
- package/dist/cjs/FlatList.cjs +241 -0
- package/dist/cjs/I18nManager/index.cjs +40 -0
- package/dist/cjs/Image/index.cjs +355 -0
- package/dist/cjs/Image/types.cjs +18 -0
- package/dist/cjs/ImageBackground/__tests__/index-test.cjs +72 -0
- package/dist/cjs/ImageBackground/index.cjs +69 -0
- package/dist/cjs/InteractionManager/TaskQueue.cjs +111 -0
- package/dist/cjs/InteractionManager/index.cjs +141 -0
- package/dist/cjs/Keyboard/index.cjs +40 -0
- package/dist/cjs/KeyboardAvoidingView/index.cjs +72 -0
- package/dist/cjs/Libraries/Pressability/Pressability.cjs +28 -0
- package/dist/cjs/Libraries/Pressability/usePressability.cjs +28 -0
- package/dist/cjs/Linking/__tests__/index-test.cjs +56 -0
- package/dist/cjs/Linking/index.cjs +103 -0
- package/dist/cjs/LogBox/index.cjs +35 -0
- package/dist/cjs/Modal/ModalAnimation.cjs +174 -0
- package/dist/cjs/Modal/ModalContent.cjs +95 -0
- package/dist/cjs/Modal/ModalPortal.cjs +63 -0
- package/dist/cjs/Modal/index.cjs +28 -0
- package/dist/cjs/NativeModules/index.cjs +31 -0
- package/dist/cjs/PanResponder/index.cjs +39 -0
- package/dist/cjs/PixelRatio/index.cjs +59 -0
- package/dist/cjs/Pressable/index.cjs +172 -0
- package/dist/cjs/RefreshControl/index.cjs +51 -0
- package/dist/cjs/SafeAreaView/index.cjs +70 -0
- package/dist/cjs/ScrollView/ScrollViewBase.cjs +167 -0
- package/dist/cjs/ScrollView/index.cjs +672 -0
- package/dist/cjs/SectionList.cjs +41 -0
- package/dist/cjs/Share/index.cjs +58 -0
- package/dist/cjs/StatusBar/index.cjs +38 -0
- package/dist/cjs/Text/index.cjs +197 -0
- package/dist/cjs/Text/types.cjs +18 -0
- package/dist/cjs/TextInput/index.cjs +396 -0
- package/dist/cjs/TextInput/types.cjs +18 -0
- package/dist/cjs/TouchableNativeFeedback.cjs +28 -0
- package/dist/cjs/TouchableOpacity.cjs +125 -0
- package/dist/cjs/TouchableWithoutFeedback.cjs +95 -0
- package/dist/cjs/UnimplementedView.cjs +52 -0
- package/dist/cjs/Vibration/index.cjs +40 -0
- package/dist/cjs/View/index.cjs +144 -0
- package/dist/cjs/View/types.cjs +18 -0
- package/dist/cjs/VirtualizedList.cjs +41 -0
- package/dist/cjs/codegenNativeCommand.cjs +31 -0
- package/dist/cjs/codegenNativeComponent.cjs +31 -0
- package/dist/cjs/createElement/__tests__/index-test.cjs +828 -0
- package/dist/cjs/createElement/index.cjs +94 -0
- package/dist/cjs/createReactDOMStyle.cjs +30 -0
- package/dist/cjs/index.cjs +174 -0
- package/dist/cjs/modules/requestIdleCallback.cjs +45 -0
- package/dist/cjs/preprocess.cjs +32 -0
- package/dist/cjs/render/index.cjs +34 -0
- package/dist/cjs/styleTypes.cjs +18 -0
- package/dist/cjs/types.cjs +18 -0
- package/dist/cjs/useColorScheme/index.cjs +53 -0
- package/dist/cjs/useLocaleContext/index.cjs +28 -0
- package/dist/cjs/useWindowDimensions/index.cjs +58 -0
- package/dist/cjs/vendor/react-native/Animated/Animated.cjs +48 -0
- package/dist/cjs/vendor/react-native/Animated/AnimatedEvent.cjs +164 -0
- package/dist/cjs/vendor/react-native/Animated/AnimatedImplementation.cjs +587 -0
- package/dist/cjs/vendor/react-native/Animated/AnimatedMock.cjs +147 -0
- package/dist/cjs/vendor/react-native/Animated/AnimatedPlatformConfig.cjs +1 -0
- package/dist/cjs/vendor/react-native/Animated/Easing.cjs +199 -0
- package/dist/cjs/vendor/react-native/Animated/NativeAnimatedHelper.cjs +402 -0
- package/dist/cjs/vendor/react-native/Animated/NativeAnimatedModule.cjs +80 -0
- package/dist/cjs/vendor/react-native/Animated/NativeAnimatedTurboModule.cjs +77 -0
- package/dist/cjs/vendor/react-native/Animated/SpringConfig.cjs +86 -0
- package/dist/cjs/vendor/react-native/Animated/animations/Animation.cjs +72 -0
- package/dist/cjs/vendor/react-native/Animated/animations/DecayAnimation.cjs +95 -0
- package/dist/cjs/vendor/react-native/Animated/animations/SpringAnimation.cjs +233 -0
- package/dist/cjs/vendor/react-native/Animated/animations/TimingAnimation.cjs +134 -0
- package/dist/cjs/vendor/react-native/Animated/bezier.cjs +124 -0
- package/dist/cjs/vendor/react-native/Animated/components/AnimatedFlatList.cjs +50 -0
- package/dist/cjs/vendor/react-native/Animated/components/AnimatedImage.cjs +44 -0
- package/dist/cjs/vendor/react-native/Animated/components/AnimatedScrollView.cjs +50 -0
- package/dist/cjs/vendor/react-native/Animated/components/AnimatedSectionList.cjs +50 -0
- package/dist/cjs/vendor/react-native/Animated/components/AnimatedText.cjs +32 -0
- package/dist/cjs/vendor/react-native/Animated/components/AnimatedView.cjs +32 -0
- package/dist/cjs/vendor/react-native/Animated/createAnimatedComponent.cjs +65 -0
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedAddition.cjs +69 -0
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedColor.cjs +274 -0
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedDiffClamp.cjs +74 -0
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedDivision.cjs +84 -0
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedInterpolation.cjs +225 -0
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedModulo.cjs +64 -0
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedMultiplication.cjs +69 -0
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedNode.cjs +174 -0
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedProps.cjs +151 -0
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedStyle.cjs +136 -0
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedSubtraction.cjs +69 -0
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedTracking.cjs +90 -0
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedTransform.cjs +127 -0
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedValue.cjs +239 -0
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedValueXY.cjs +119 -0
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedWithChildren.cjs +87 -0
- package/dist/cjs/vendor/react-native/Animated/useAnimatedProps.cjs +104 -0
- package/dist/cjs/vendor/react-native/Batchinator/index.cjs +72 -0
- package/dist/cjs/vendor/react-native/EventEmitter/NativeEventEmitter.cjs +73 -0
- package/dist/cjs/vendor/react-native/EventEmitter/RCTDeviceEventEmitter.cjs +31 -0
- package/dist/cjs/vendor/react-native/FeatureFlags.cjs +35 -0
- package/dist/cjs/vendor/react-native/FillRateHelper/index.cjs +189 -0
- package/dist/cjs/vendor/react-native/FlatList/index.cjs +324 -0
- package/dist/cjs/vendor/react-native/JSEventLoopWatchdog/index.cjs +93 -0
- package/dist/cjs/vendor/react-native/LayoutAnimation/index.cjs +116 -0
- package/dist/cjs/vendor/react-native/PanResponder/index.cjs +207 -0
- package/dist/cjs/vendor/react-native/PooledClass/index.cjs +62 -0
- package/dist/cjs/vendor/react-native/ReactNative/ReactNativeFeatureFlags.cjs +36 -0
- package/dist/cjs/vendor/react-native/SectionList/index.cjs +128 -0
- package/dist/cjs/vendor/react-native/StaticContainer/index.cjs +52 -0
- package/dist/cjs/vendor/react-native/StaticRenderer/index.cjs +51 -0
- package/dist/cjs/vendor/react-native/TouchHistoryMath/index.cjs +125 -0
- package/dist/cjs/vendor/react-native/TurboModule/RCTExport.cjs +36 -0
- package/dist/cjs/vendor/react-native/TurboModule/TurboModuleRegistry.cjs +39 -0
- package/dist/cjs/vendor/react-native/Types/CoreEventTypes.cjs +158 -0
- package/dist/cjs/vendor/react-native/Utilities/Platform.cjs +30 -0
- package/dist/cjs/vendor/react-native/Utilities/clamp.cjs +40 -0
- package/dist/cjs/vendor/react-native/Utilities/setAndForwardRef.cjs +45 -0
- package/dist/cjs/vendor/react-native/Utilities/useMergeRefs.cjs +45 -0
- package/dist/cjs/vendor/react-native/Utilities/useRefEffect.cjs +42 -0
- package/dist/cjs/vendor/react-native/ViewabilityHelper/index.cjs +184 -0
- package/dist/cjs/vendor/react-native/ViewabilityHelper.cjs +175 -0
- package/dist/cjs/vendor/react-native/VirtualizeUtils/index.cjs +144 -0
- package/dist/cjs/vendor/react-native/VirtualizedList/CellRenderMask.cjs +110 -0
- package/dist/cjs/vendor/react-native/VirtualizedList/ChildListCollection.cjs +77 -0
- package/dist/cjs/vendor/react-native/VirtualizedList/StateSafePureComponent.cjs +92 -0
- package/dist/cjs/vendor/react-native/VirtualizedList/VirtualizedListCellRenderer.cjs +182 -0
- package/dist/cjs/vendor/react-native/VirtualizedList/VirtualizedListContext.cjs +89 -0
- package/dist/cjs/vendor/react-native/VirtualizedList/VirtualizedListProps.cjs +66 -0
- package/dist/cjs/vendor/react-native/VirtualizedList/index.cjs +310 -0
- package/dist/cjs/vendor/react-native/VirtualizedSectionList/index.cjs +165 -0
- package/dist/cjs/vendor/react-native/deepDiffer/index.cjs +74 -0
- package/dist/cjs/vendor/react-native/emitter/EventEmitter.cjs +32 -0
- package/dist/cjs/vendor/react-native/emitter/EventSubscription.cjs +1 -0
- package/dist/cjs/vendor/react-native/emitter/_EmitterSubscription.cjs +59 -0
- package/dist/cjs/vendor/react-native/emitter/_EventEmitter.cjs +136 -0
- package/dist/cjs/vendor/react-native/emitter/_EventSubscription.cjs +46 -0
- package/dist/cjs/vendor/react-native/emitter/_EventSubscriptionVendor.cjs +96 -0
- package/dist/cjs/vendor/react-native/infoLog/index.cjs +34 -0
- package/dist/cjs/vendor/react-native/useRefEffect.cjs +42 -0
- package/dist/cjs/vendor/react-native/vendor/emitter/EventEmitter.cjs +103 -0
- package/dist/cjs/without-animated.cjs +348 -0
- package/dist/esm/AccessibilityInfo/index.mjs +84 -0
- package/dist/esm/AccessibilityInfo/index.mjs.map +1 -0
- package/dist/esm/ActivityIndicator/__tests__/index-test.mjs +186 -0
- package/dist/esm/ActivityIndicator/__tests__/index-test.mjs.map +1 -0
- package/dist/esm/ActivityIndicator/index.mjs +93 -0
- package/dist/esm/ActivityIndicator/index.mjs.map +1 -0
- package/dist/esm/Alert/index.mjs +5 -0
- package/dist/esm/Alert/index.mjs.map +1 -0
- package/dist/esm/AppRegistry/AppContainer.mjs +38 -0
- package/dist/esm/AppRegistry/AppContainer.mjs.map +1 -0
- package/dist/esm/AppRegistry/__tests__/index-test.mjs +74 -0
- package/dist/esm/AppRegistry/__tests__/index-test.mjs.map +1 -0
- package/dist/esm/AppRegistry/__tests__/index-test.node.mjs +139 -0
- package/dist/esm/AppRegistry/__tests__/index-test.node.mjs.map +1 -0
- package/dist/esm/AppRegistry/index.mjs +75 -0
- package/dist/esm/AppRegistry/index.mjs.map +1 -0
- package/dist/esm/AppRegistry/renderApplication.mjs +48 -0
- package/dist/esm/AppRegistry/renderApplication.mjs.map +1 -0
- package/dist/esm/AppState/__tests__/index-test.mjs +15 -0
- package/dist/esm/AppState/__tests__/index-test.mjs.map +1 -0
- package/dist/esm/AppState/index.mjs +60 -0
- package/dist/esm/AppState/index.mjs.map +1 -0
- package/dist/esm/Appearance/index.mjs +39 -0
- package/dist/esm/Appearance/index.mjs.map +1 -0
- package/dist/esm/BackHandler/index.mjs +12 -0
- package/dist/esm/BackHandler/index.mjs.map +1 -0
- package/dist/esm/Clipboard/index.mjs +39 -0
- package/dist/esm/Clipboard/index.mjs.map +1 -0
- package/dist/esm/DeviceEmitter.mjs +4 -0
- package/dist/esm/DeviceEmitter.mjs.map +1 -0
- package/dist/esm/DeviceInfo/index.mjs +51 -0
- package/dist/esm/DeviceInfo/index.mjs.map +1 -0
- package/dist/esm/Dimensions/__tests__/index-test.mjs +44 -0
- package/dist/esm/Dimensions/__tests__/index-test.mjs.map +1 -0
- package/dist/esm/Dimensions/index.mjs +86 -0
- package/dist/esm/Dimensions/index.mjs.map +1 -0
- package/dist/esm/FlatList.mjs +204 -0
- package/dist/esm/FlatList.mjs.map +1 -0
- package/dist/esm/I18nManager/index.mjs +15 -0
- package/dist/esm/I18nManager/index.mjs.map +1 -0
- package/dist/esm/Image/index.mjs +318 -0
- package/dist/esm/Image/index.mjs.map +1 -0
- package/dist/esm/Image/types.mjs +2 -0
- package/dist/esm/Image/types.mjs.map +1 -0
- package/dist/esm/ImageBackground/__tests__/index-test.mjs +49 -0
- package/dist/esm/ImageBackground/__tests__/index-test.mjs.map +1 -0
- package/dist/esm/ImageBackground/index.mjs +43 -0
- package/dist/esm/ImageBackground/index.mjs.map +1 -0
- package/dist/esm/InteractionManager/TaskQueue.mjs +86 -0
- package/dist/esm/InteractionManager/TaskQueue.mjs.map +1 -0
- package/dist/esm/InteractionManager/index.mjs +105 -0
- package/dist/esm/InteractionManager/index.mjs.map +1 -0
- package/dist/esm/Keyboard/index.mjs +15 -0
- package/dist/esm/Keyboard/index.mjs.map +1 -0
- package/dist/esm/KeyboardAvoidingView/index.mjs +35 -0
- package/dist/esm/KeyboardAvoidingView/index.mjs.map +1 -0
- package/dist/esm/Libraries/Pressability/Pressability.mjs +3 -0
- package/dist/esm/Libraries/Pressability/Pressability.mjs.map +1 -0
- package/dist/esm/Libraries/Pressability/usePressability.mjs +3 -0
- package/dist/esm/Libraries/Pressability/usePressability.mjs.map +1 -0
- package/dist/esm/Linking/__tests__/index-test.mjs +33 -0
- package/dist/esm/Linking/__tests__/index-test.mjs.map +1 -0
- package/dist/esm/Linking/index.mjs +78 -0
- package/dist/esm/Linking/index.mjs.map +1 -0
- package/dist/esm/LogBox/index.mjs +9 -0
- package/dist/esm/LogBox/index.mjs.map +1 -0
- package/dist/esm/Modal/ModalAnimation.mjs +138 -0
- package/dist/esm/Modal/ModalAnimation.mjs.map +1 -0
- package/dist/esm/Modal/ModalContent.mjs +59 -0
- package/dist/esm/Modal/ModalContent.mjs.map +1 -0
- package/dist/esm/Modal/ModalPortal.mjs +27 -0
- package/dist/esm/Modal/ModalPortal.mjs.map +1 -0
- package/dist/esm/Modal/index.mjs +3 -0
- package/dist/esm/Modal/index.mjs.map +1 -0
- package/dist/esm/NativeModules/index.mjs +6 -0
- package/dist/esm/NativeModules/index.mjs.map +1 -0
- package/dist/esm/PanResponder/index.mjs +3 -0
- package/dist/esm/PanResponder/index.mjs.map +1 -0
- package/dist/esm/PixelRatio/index.mjs +34 -0
- package/dist/esm/PixelRatio/index.mjs.map +1 -0
- package/dist/esm/Pressable/index.mjs +133 -0
- package/dist/esm/Pressable/index.mjs.map +1 -0
- package/dist/esm/RefreshControl/index.mjs +25 -0
- package/dist/esm/RefreshControl/index.mjs.map +1 -0
- package/dist/esm/SafeAreaView/index.mjs +33 -0
- package/dist/esm/SafeAreaView/index.mjs.map +1 -0
- package/dist/esm/ScrollView/ScrollViewBase.mjs +130 -0
- package/dist/esm/ScrollView/ScrollViewBase.mjs.map +1 -0
- package/dist/esm/ScrollView/index.mjs +635 -0
- package/dist/esm/ScrollView/index.mjs.map +1 -0
- package/dist/esm/SectionList.mjs +4 -0
- package/dist/esm/SectionList.mjs.map +1 -0
- package/dist/esm/Share/index.mjs +33 -0
- package/dist/esm/Share/index.mjs.map +1 -0
- package/dist/esm/StatusBar/index.mjs +12 -0
- package/dist/esm/StatusBar/index.mjs.map +1 -0
- package/dist/esm/Text/index.mjs +160 -0
- package/dist/esm/Text/index.mjs.map +1 -0
- package/dist/esm/Text/types.mjs +2 -0
- package/dist/esm/Text/types.mjs.map +1 -0
- package/dist/esm/TextInput/index.mjs +359 -0
- package/dist/esm/TextInput/index.mjs.map +1 -0
- package/dist/esm/TextInput/types.mjs +2 -0
- package/dist/esm/TextInput/types.mjs.map +1 -0
- package/dist/esm/TouchableNativeFeedback.mjs +3 -0
- package/dist/esm/TouchableNativeFeedback.mjs.map +1 -0
- package/dist/esm/TouchableOpacity.mjs +87 -0
- package/dist/esm/TouchableOpacity.mjs.map +1 -0
- package/dist/esm/TouchableWithoutFeedback.mjs +59 -0
- package/dist/esm/TouchableWithoutFeedback.mjs.map +1 -0
- package/dist/esm/UnimplementedView.mjs +16 -0
- package/dist/esm/UnimplementedView.mjs.map +1 -0
- package/dist/esm/Vibration/index.mjs +15 -0
- package/dist/esm/Vibration/index.mjs.map +1 -0
- package/dist/esm/View/index.mjs +107 -0
- package/dist/esm/View/index.mjs.map +1 -0
- package/dist/esm/View/types.mjs +2 -0
- package/dist/esm/View/types.mjs.map +1 -0
- package/dist/esm/VirtualizedList.mjs +4 -0
- package/dist/esm/VirtualizedList.mjs.map +1 -0
- package/dist/esm/codegenNativeCommand.mjs +6 -0
- package/dist/esm/codegenNativeCommand.mjs.map +1 -0
- package/dist/esm/codegenNativeComponent.mjs +6 -0
- package/dist/esm/codegenNativeComponent.mjs.map +1 -0
- package/dist/esm/createElement/__tests__/index-test.mjs +805 -0
- package/dist/esm/createElement/__tests__/index-test.mjs.map +1 -0
- package/dist/esm/createElement/index.mjs +57 -0
- package/dist/esm/createElement/index.mjs.map +1 -0
- package/dist/esm/createReactDOMStyle.mjs +4 -0
- package/dist/esm/createReactDOMStyle.mjs.map +1 -0
- package/dist/esm/index.js +61 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/index.mjs +61 -0
- package/dist/esm/index.mjs.map +1 -0
- package/dist/esm/modules/requestIdleCallback.mjs +19 -0
- package/dist/esm/modules/requestIdleCallback.mjs.map +1 -0
- package/dist/esm/preprocess.mjs +3 -0
- package/dist/esm/preprocess.mjs.map +1 -0
- package/dist/esm/render/index.mjs +6 -0
- package/dist/esm/render/index.mjs.map +1 -0
- package/dist/esm/styleTypes.mjs +2 -0
- package/dist/esm/styleTypes.mjs.map +1 -0
- package/dist/esm/types.mjs +2 -0
- package/dist/esm/types.mjs.map +1 -0
- package/dist/esm/useColorScheme/index.mjs +17 -0
- package/dist/esm/useColorScheme/index.mjs.map +1 -0
- package/dist/esm/useLocaleContext/index.mjs +3 -0
- package/dist/esm/useLocaleContext/index.mjs.map +1 -0
- package/dist/esm/useWindowDimensions/index.mjs +22 -0
- package/dist/esm/useWindowDimensions/index.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Animated/Animated.mjs +22 -0
- package/dist/esm/vendor/react-native/Animated/Animated.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Animated/AnimatedEvent.mjs +136 -0
- package/dist/esm/vendor/react-native/Animated/AnimatedEvent.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Animated/AnimatedImplementation.mjs +558 -0
- package/dist/esm/vendor/react-native/Animated/AnimatedImplementation.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Animated/AnimatedMock.mjs +118 -0
- package/dist/esm/vendor/react-native/Animated/AnimatedMock.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Animated/AnimatedPlatformConfig.mjs +2 -0
- package/dist/esm/vendor/react-native/Animated/AnimatedPlatformConfig.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Animated/Easing.mjs +171 -0
- package/dist/esm/vendor/react-native/Animated/Easing.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Animated/NativeAnimatedHelper.mjs +360 -0
- package/dist/esm/vendor/react-native/Animated/NativeAnimatedHelper.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Animated/NativeAnimatedModule.mjs +38 -0
- package/dist/esm/vendor/react-native/Animated/NativeAnimatedModule.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Animated/NativeAnimatedTurboModule.mjs +35 -0
- package/dist/esm/vendor/react-native/Animated/NativeAnimatedTurboModule.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Animated/SpringConfig.mjs +60 -0
- package/dist/esm/vendor/react-native/Animated/SpringConfig.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Animated/animations/Animation.mjs +44 -0
- package/dist/esm/vendor/react-native/Animated/animations/Animation.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Animated/animations/DecayAnimation.mjs +67 -0
- package/dist/esm/vendor/react-native/Animated/animations/DecayAnimation.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Animated/animations/SpringAnimation.mjs +205 -0
- package/dist/esm/vendor/react-native/Animated/animations/SpringAnimation.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Animated/animations/TimingAnimation.mjs +108 -0
- package/dist/esm/vendor/react-native/Animated/animations/TimingAnimation.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Animated/bezier.mjs +96 -0
- package/dist/esm/vendor/react-native/Animated/bezier.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Animated/components/AnimatedFlatList.mjs +13 -0
- package/dist/esm/vendor/react-native/Animated/components/AnimatedFlatList.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Animated/components/AnimatedImage.mjs +7 -0
- package/dist/esm/vendor/react-native/Animated/components/AnimatedImage.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Animated/components/AnimatedScrollView.mjs +13 -0
- package/dist/esm/vendor/react-native/Animated/components/AnimatedScrollView.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Animated/components/AnimatedSectionList.mjs +13 -0
- package/dist/esm/vendor/react-native/Animated/components/AnimatedSectionList.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Animated/components/AnimatedText.mjs +6 -0
- package/dist/esm/vendor/react-native/Animated/components/AnimatedText.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Animated/components/AnimatedView.mjs +6 -0
- package/dist/esm/vendor/react-native/Animated/components/AnimatedView.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Animated/createAnimatedComponent.mjs +28 -0
- package/dist/esm/vendor/react-native/Animated/createAnimatedComponent.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedAddition.mjs +41 -0
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedAddition.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedColor.mjs +248 -0
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedColor.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedDiffClamp.mjs +48 -0
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedDiffClamp.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedDivision.mjs +56 -0
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedDivision.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedInterpolation.mjs +197 -0
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedInterpolation.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedModulo.mjs +38 -0
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedModulo.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedMultiplication.mjs +41 -0
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedMultiplication.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedNode.mjs +146 -0
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedNode.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedProps.mjs +125 -0
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedProps.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedStyle.mjs +110 -0
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedStyle.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedSubtraction.mjs +41 -0
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedSubtraction.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedTracking.mjs +64 -0
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedTracking.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedTransform.mjs +99 -0
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedTransform.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedValue.mjs +211 -0
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedValue.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedValueXY.mjs +93 -0
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedValueXY.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedWithChildren.mjs +59 -0
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedWithChildren.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Animated/useAnimatedProps.mjs +76 -0
- package/dist/esm/vendor/react-native/Animated/useAnimatedProps.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Batchinator/index.mjs +44 -0
- package/dist/esm/vendor/react-native/Batchinator/index.mjs.map +1 -0
- package/dist/esm/vendor/react-native/EventEmitter/NativeEventEmitter.mjs +45 -0
- package/dist/esm/vendor/react-native/EventEmitter/NativeEventEmitter.mjs.map +1 -0
- package/dist/esm/vendor/react-native/EventEmitter/RCTDeviceEventEmitter.mjs +5 -0
- package/dist/esm/vendor/react-native/EventEmitter/RCTDeviceEventEmitter.mjs.map +1 -0
- package/dist/esm/vendor/react-native/FeatureFlags.mjs +10 -0
- package/dist/esm/vendor/react-native/FeatureFlags.mjs.map +1 -0
- package/dist/esm/vendor/react-native/FillRateHelper/index.mjs +163 -0
- package/dist/esm/vendor/react-native/FillRateHelper/index.mjs.map +1 -0
- package/dist/esm/vendor/react-native/FlatList/index.mjs +287 -0
- package/dist/esm/vendor/react-native/FlatList/index.mjs.map +1 -0
- package/dist/esm/vendor/react-native/JSEventLoopWatchdog/index.mjs +65 -0
- package/dist/esm/vendor/react-native/JSEventLoopWatchdog/index.mjs.map +1 -0
- package/dist/esm/vendor/react-native/LayoutAnimation/index.mjs +88 -0
- package/dist/esm/vendor/react-native/LayoutAnimation/index.mjs.map +1 -0
- package/dist/esm/vendor/react-native/PanResponder/index.mjs +170 -0
- package/dist/esm/vendor/react-native/PanResponder/index.mjs.map +1 -0
- package/dist/esm/vendor/react-native/PooledClass/index.mjs +36 -0
- package/dist/esm/vendor/react-native/PooledClass/index.mjs.map +1 -0
- package/dist/esm/vendor/react-native/ReactNative/ReactNativeFeatureFlags.mjs +10 -0
- package/dist/esm/vendor/react-native/ReactNative/ReactNativeFeatureFlags.mjs.map +1 -0
- package/dist/esm/vendor/react-native/SectionList/index.mjs +91 -0
- package/dist/esm/vendor/react-native/SectionList/index.mjs.map +1 -0
- package/dist/esm/vendor/react-native/StaticContainer/index.mjs +13 -0
- package/dist/esm/vendor/react-native/StaticContainer/index.mjs.map +1 -0
- package/dist/esm/vendor/react-native/StaticRenderer/index.mjs +12 -0
- package/dist/esm/vendor/react-native/StaticRenderer/index.mjs.map +1 -0
- package/dist/esm/vendor/react-native/TouchHistoryMath/index.mjs +99 -0
- package/dist/esm/vendor/react-native/TouchHistoryMath/index.mjs.map +1 -0
- package/dist/esm/vendor/react-native/TurboModule/RCTExport.mjs +8 -0
- package/dist/esm/vendor/react-native/TurboModule/RCTExport.mjs.map +1 -0
- package/dist/esm/vendor/react-native/TurboModule/TurboModuleRegistry.mjs +11 -0
- package/dist/esm/vendor/react-native/TurboModule/TurboModuleRegistry.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Types/CoreEventTypes.mjs +126 -0
- package/dist/esm/vendor/react-native/Types/CoreEventTypes.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Utilities/Platform.mjs +4 -0
- package/dist/esm/vendor/react-native/Utilities/Platform.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Utilities/clamp.mjs +12 -0
- package/dist/esm/vendor/react-native/Utilities/clamp.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Utilities/setAndForwardRef.mjs +17 -0
- package/dist/esm/vendor/react-native/Utilities/setAndForwardRef.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Utilities/useMergeRefs.mjs +19 -0
- package/dist/esm/vendor/react-native/Utilities/useMergeRefs.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Utilities/useRefEffect.mjs +16 -0
- package/dist/esm/vendor/react-native/Utilities/useRefEffect.mjs.map +1 -0
- package/dist/esm/vendor/react-native/ViewabilityHelper/index.mjs +156 -0
- package/dist/esm/vendor/react-native/ViewabilityHelper/index.mjs.map +1 -0
- package/dist/esm/vendor/react-native/ViewabilityHelper.mjs +149 -0
- package/dist/esm/vendor/react-native/ViewabilityHelper.mjs.map +1 -0
- package/dist/esm/vendor/react-native/VirtualizeUtils/index.mjs +116 -0
- package/dist/esm/vendor/react-native/VirtualizeUtils/index.mjs.map +1 -0
- package/dist/esm/vendor/react-native/VirtualizedList/CellRenderMask.mjs +85 -0
- package/dist/esm/vendor/react-native/VirtualizedList/CellRenderMask.mjs.map +1 -0
- package/dist/esm/vendor/react-native/VirtualizedList/ChildListCollection.mjs +51 -0
- package/dist/esm/vendor/react-native/VirtualizedList/ChildListCollection.mjs.map +1 -0
- package/dist/esm/vendor/react-native/VirtualizedList/StateSafePureComponent.mjs +55 -0
- package/dist/esm/vendor/react-native/VirtualizedList/StateSafePureComponent.mjs.map +1 -0
- package/dist/esm/vendor/react-native/VirtualizedList/VirtualizedListCellRenderer.mjs +145 -0
- package/dist/esm/vendor/react-native/VirtualizedList/VirtualizedListCellRenderer.mjs.map +1 -0
- package/dist/esm/vendor/react-native/VirtualizedList/VirtualizedListContext.mjs +50 -0
- package/dist/esm/vendor/react-native/VirtualizedList/VirtualizedListContext.mjs.map +1 -0
- package/dist/esm/vendor/react-native/VirtualizedList/VirtualizedListProps.mjs +40 -0
- package/dist/esm/vendor/react-native/VirtualizedList/VirtualizedListProps.mjs.map +1 -0
- package/dist/esm/vendor/react-native/VirtualizedList/index.mjs +284 -0
- package/dist/esm/vendor/react-native/VirtualizedList/index.mjs.map +1 -0
- package/dist/esm/vendor/react-native/VirtualizedSectionList/index.mjs +128 -0
- package/dist/esm/vendor/react-native/VirtualizedSectionList/index.mjs.map +1 -0
- package/dist/esm/vendor/react-native/deepDiffer/index.mjs +46 -0
- package/dist/esm/vendor/react-native/deepDiffer/index.mjs.map +1 -0
- package/dist/esm/vendor/react-native/emitter/EventEmitter.mjs +4 -0
- package/dist/esm/vendor/react-native/emitter/EventEmitter.mjs.map +1 -0
- package/dist/esm/vendor/react-native/emitter/EventSubscription.mjs +2 -0
- package/dist/esm/vendor/react-native/emitter/EventSubscription.mjs.map +1 -0
- package/dist/esm/vendor/react-native/emitter/_EmitterSubscription.mjs +31 -0
- package/dist/esm/vendor/react-native/emitter/_EmitterSubscription.mjs.map +1 -0
- package/dist/esm/vendor/react-native/emitter/_EventEmitter.mjs +110 -0
- package/dist/esm/vendor/react-native/emitter/_EventEmitter.mjs.map +1 -0
- package/dist/esm/vendor/react-native/emitter/_EventSubscription.mjs +18 -0
- package/dist/esm/vendor/react-native/emitter/_EventSubscription.mjs.map +1 -0
- package/dist/esm/vendor/react-native/emitter/_EventSubscriptionVendor.mjs +68 -0
- package/dist/esm/vendor/react-native/emitter/_EventSubscriptionVendor.mjs.map +1 -0
- package/dist/esm/vendor/react-native/infoLog/index.mjs +6 -0
- package/dist/esm/vendor/react-native/infoLog/index.mjs.map +1 -0
- package/dist/esm/vendor/react-native/useRefEffect.mjs +16 -0
- package/dist/esm/vendor/react-native/useRefEffect.mjs.map +1 -0
- package/dist/esm/vendor/react-native/vendor/emitter/EventEmitter.mjs +75 -0
- package/dist/esm/vendor/react-native/vendor/emitter/EventEmitter.mjs.map +1 -0
- package/dist/esm/without-animated.mjs +234 -0
- package/dist/esm/without-animated.mjs.map +1 -0
- package/package.json +125 -0
- package/src/AccessibilityInfo/index.tsx +113 -0
- package/src/ActivityIndicator/__tests__/__snapshots__/index-test.js.snap +466 -0
- package/src/ActivityIndicator/__tests__/index-test.tsx +147 -0
- package/src/ActivityIndicator/index.tsx +116 -0
- package/src/Alert/index.tsx +12 -0
- package/src/AppRegistry/AppContainer.tsx +54 -0
- package/src/AppRegistry/__tests__/index-test.node.tsx +144 -0
- package/src/AppRegistry/__tests__/index-test.tsx +94 -0
- package/src/AppRegistry/index.tsx +156 -0
- package/src/AppRegistry/renderApplication.tsx +75 -0
- package/src/AppState/__tests__/index-test.tsx +24 -0
- package/src/AppState/index.tsx +92 -0
- package/src/Appearance/index.tsx +59 -0
- package/src/BackHandler/index.tsx +23 -0
- package/src/Clipboard/index.tsx +61 -0
- package/src/DeviceEmitter.ts +3 -0
- package/src/DeviceInfo/index.tsx +55 -0
- package/src/Dimensions/__tests__/index-test.tsx +54 -0
- package/src/Dimensions/index.tsx +129 -0
- package/src/FlatList.tsx +331 -0
- package/src/I18nManager/index.tsx +31 -0
- package/src/Image/index.tsx +401 -0
- package/src/Image/types.tsx +112 -0
- package/src/ImageBackground/__tests__/index-test.tsx +49 -0
- package/src/ImageBackground/index.tsx +66 -0
- package/src/InteractionManager/TaskQueue.tsx +112 -0
- package/src/InteractionManager/index.tsx +140 -0
- package/src/Keyboard/index.tsx +24 -0
- package/src/KeyboardAvoidingView/index.tsx +55 -0
- package/src/Libraries/Pressability/Pressability.ts +2 -0
- package/src/Libraries/Pressability/usePressability.ts +2 -0
- package/src/Linking/__tests__/index-test.tsx +37 -0
- package/src/Linking/index.tsx +113 -0
- package/src/LogBox/index.tsx +17 -0
- package/src/Modal/ModalAnimation.js +178 -0
- package/src/Modal/ModalContent.js +73 -0
- package/src/Modal/ModalPortal.js +40 -0
- package/src/Modal/index.js +1 -0
- package/src/NativeModules/index.tsx +15 -0
- package/src/PanResponder/Alternative.tsx +385 -0
- package/src/PanResponder/index.tsx +1 -0
- package/src/PixelRatio/index.tsx +49 -0
- package/src/Pressable/__tests__/__snapshots__/index-test.js.snap +196 -0
- package/src/Pressable/index.tsx +236 -0
- package/src/RefreshControl/index.tsx +50 -0
- package/src/SafeAreaView/index.tsx +48 -0
- package/src/ScrollView/ScrollViewBase.tsx +183 -0
- package/src/ScrollView/__tests__/__snapshots__/index-test.js.snap +49 -0
- package/src/ScrollView/index.tsx +892 -0
- package/src/SectionList.tsx +9 -0
- package/src/Share/index.tsx +69 -0
- package/src/StatusBar/index.tsx +22 -0
- package/src/Text/__tests__/__snapshots__/index-test.js.snap +218 -0
- package/src/Text/index.tsx +208 -0
- package/src/Text/types.tsx +96 -0
- package/src/TextInput/index.tsx +453 -0
- package/src/TextInput/types.tsx +74 -0
- package/src/TouchableNativeFeedback.tsx +8 -0
- package/src/TouchableOpacity.tsx +150 -0
- package/src/TouchableWithoutFeedback.tsx +95 -0
- package/src/UnimplementedView.tsx +13 -0
- package/src/Vibration/index.tsx +26 -0
- package/src/View/index.tsx +139 -0
- package/src/View/types.tsx +170 -0
- package/src/VirtualizedList.tsx +9 -0
- package/src/codegenNativeCommand.ts +6 -0
- package/src/codegenNativeComponent.ts +6 -0
- package/src/createElement/__tests__/__snapshots__/index-test.js.snap +13 -0
- package/src/createElement/__tests__/index-test.tsx +647 -0
- package/src/createElement/index.tsx +92 -0
- package/src/createReactDOMStyle.ts +4 -0
- package/src/index.tsx +111 -0
- package/src/modules/requestIdleCallback.ts +32 -0
- package/src/preprocess.ts +7 -0
- package/src/render/index.tsx +16 -0
- package/src/styleTypes.ts +321 -0
- package/src/types.ts +77 -0
- package/src/useColorScheme/index.tsx +28 -0
- package/src/useLocaleContext/index.tsx +10 -0
- package/src/useWindowDimensions/index.tsx +34 -0
- package/src/vendor/react-native/Animated/Animated.js +33 -0
- package/src/vendor/react-native/Animated/AnimatedEvent.js +199 -0
- package/src/vendor/react-native/Animated/AnimatedImplementation.js +649 -0
- package/src/vendor/react-native/Animated/AnimatedMock.js +155 -0
- package/src/vendor/react-native/Animated/AnimatedPlatformConfig.js +11 -0
- package/src/vendor/react-native/Animated/Easing.js +249 -0
- package/src/vendor/react-native/Animated/NativeAnimatedHelper.js +525 -0
- package/src/vendor/react-native/Animated/NativeAnimatedModule.js +57 -0
- package/src/vendor/react-native/Animated/NativeAnimatedTurboModule.js +53 -0
- package/src/vendor/react-native/Animated/SpringConfig.js +88 -0
- package/src/vendor/react-native/Animated/animations/Animation.js +66 -0
- package/src/vendor/react-native/Animated/animations/DecayAnimation.js +88 -0
- package/src/vendor/react-native/Animated/animations/SpringAnimation.js +291 -0
- package/src/vendor/react-native/Animated/animations/TimingAnimation.js +133 -0
- package/src/vendor/react-native/Animated/bezier.js +142 -0
- package/src/vendor/react-native/Animated/components/AnimatedFlatList.jsx +24 -0
- package/src/vendor/react-native/Animated/components/AnimatedImage.js +17 -0
- package/src/vendor/react-native/Animated/components/AnimatedScrollView.jsx +24 -0
- package/src/vendor/react-native/Animated/components/AnimatedSectionList.jsx +24 -0
- package/src/vendor/react-native/Animated/components/AnimatedText.js +15 -0
- package/src/vendor/react-native/Animated/components/AnimatedView.js +15 -0
- package/src/vendor/react-native/Animated/createAnimatedComponent.jsx +39 -0
- package/src/vendor/react-native/Animated/nodes/AnimatedAddition.js +60 -0
- package/src/vendor/react-native/Animated/nodes/AnimatedColor.js +293 -0
- package/src/vendor/react-native/Animated/nodes/AnimatedDiffClamp.js +67 -0
- package/src/vendor/react-native/Animated/nodes/AnimatedDivision.js +78 -0
- package/src/vendor/react-native/Animated/nodes/AnimatedInterpolation.jsx +327 -0
- package/src/vendor/react-native/Animated/nodes/AnimatedModulo.js +56 -0
- package/src/vendor/react-native/Animated/nodes/AnimatedMultiplication.js +59 -0
- package/src/vendor/react-native/Animated/nodes/AnimatedNode.js +190 -0
- package/src/vendor/react-native/Animated/nodes/AnimatedProps.js +160 -0
- package/src/vendor/react-native/Animated/nodes/AnimatedStyle.js +137 -0
- package/src/vendor/react-native/Animated/nodes/AnimatedSubtraction.js +60 -0
- package/src/vendor/react-native/Animated/nodes/AnimatedTracking.js +90 -0
- package/src/vendor/react-native/Animated/nodes/AnimatedTransform.js +122 -0
- package/src/vendor/react-native/Animated/nodes/AnimatedValue.js +292 -0
- package/src/vendor/react-native/Animated/nodes/AnimatedValueXY.js +108 -0
- package/src/vendor/react-native/Animated/nodes/AnimatedWithChildren.js +89 -0
- package/src/vendor/react-native/Animated/useAnimatedProps.js +173 -0
- package/src/vendor/react-native/Batchinator/index.js +77 -0
- package/src/vendor/react-native/EventEmitter/NativeEventEmitter.js +85 -0
- package/src/vendor/react-native/EventEmitter/RCTDeviceEventEmitter.js +22 -0
- package/src/vendor/react-native/FeatureFlags.js +8 -0
- package/src/vendor/react-native/FillRateHelper/index.js +213 -0
- package/src/vendor/react-native/FlatList/index.jsx +518 -0
- package/src/vendor/react-native/JSEventLoopWatchdog/index.js +85 -0
- package/src/vendor/react-native/LayoutAnimation/index.js +119 -0
- package/src/vendor/react-native/PanResponder/index.js +243 -0
- package/src/vendor/react-native/PooledClass/index.js +62 -0
- package/src/vendor/react-native/ReactNative/ReactNativeFeatureFlags.js +20 -0
- package/src/vendor/react-native/SHA +2 -0
- package/src/vendor/react-native/SectionList/index.jsx +100 -0
- package/src/vendor/react-native/StaticContainer/index.js +43 -0
- package/src/vendor/react-native/StaticRenderer/index.js +26 -0
- package/src/vendor/react-native/TouchHistoryMath/index.js +137 -0
- package/src/vendor/react-native/TurboModule/RCTExport.js +37 -0
- package/src/vendor/react-native/TurboModule/TurboModuleRegistry.js +27 -0
- package/src/vendor/react-native/Types/CoreEventTypes.js +151 -0
- package/src/vendor/react-native/Utilities/Platform.js +3 -0
- package/src/vendor/react-native/Utilities/clamp.js +24 -0
- package/src/vendor/react-native/Utilities/setAndForwardRef.js +62 -0
- package/src/vendor/react-native/Utilities/useMergeRefs.js +40 -0
- package/src/vendor/react-native/Utilities/useRefEffect.js +44 -0
- package/src/vendor/react-native/ViewabilityHelper/index.js +251 -0
- package/src/vendor/react-native/ViewabilityHelper.ts +293 -0
- package/src/vendor/react-native/VirtualizeUtils/index.js +204 -0
- package/src/vendor/react-native/VirtualizedList/CellRenderMask.js +135 -0
- package/src/vendor/react-native/VirtualizedList/ChildListCollection.js +75 -0
- package/src/vendor/react-native/VirtualizedList/StateSafePureComponent.js +82 -0
- package/src/vendor/react-native/VirtualizedList/VirtualizedListCellRenderer.jsx +184 -0
- package/src/vendor/react-native/VirtualizedList/VirtualizedListContext.jsx +96 -0
- package/src/vendor/react-native/VirtualizedList/VirtualizedListProps.js +46 -0
- package/src/vendor/react-native/VirtualizedList/index.jsx +378 -0
- package/src/vendor/react-native/VirtualizedSectionList/index.jsx +149 -0
- package/src/vendor/react-native/deepDiffer/index.js +69 -0
- package/src/vendor/react-native/emitter/EventEmitter.js +14 -0
- package/src/vendor/react-native/emitter/EventSubscription.js +12 -0
- package/src/vendor/react-native/emitter/_EmitterSubscription.js +47 -0
- package/src/vendor/react-native/emitter/_EventEmitter.js +175 -0
- package/src/vendor/react-native/emitter/_EventSubscription.js +34 -0
- package/src/vendor/react-native/emitter/_EventSubscriptionVendor.js +96 -0
- package/src/vendor/react-native/infoLog/index.js +21 -0
- package/src/vendor/react-native/useRefEffect.js +44 -0
- package/src/vendor/react-native/vendor/emitter/EventEmitter.js +121 -0
- package/src/without-animated.tsx +288 -0
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) Nicolas Gallagher.
|
|
3
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
4
|
+
*
|
|
5
|
+
* This source code is licensed under the MIT license found in the
|
|
6
|
+
* LICENSE file in the root directory of this source tree.
|
|
7
|
+
*
|
|
8
|
+
*
|
|
9
|
+
*/
|
|
10
|
+
import * as React from 'react'
|
|
11
|
+
import { StyleSheet, canUseDOM } from '@hanzogui/react-native-web-internals'
|
|
12
|
+
|
|
13
|
+
import { View } from '../View'
|
|
14
|
+
|
|
15
|
+
export const ModalContent = /*#__PURE__*/ React.forwardRef((props, forwardedRef) => {
|
|
16
|
+
const { active, children, onRequestClose, transparent, ...rest } = props
|
|
17
|
+
|
|
18
|
+
React.useEffect(() => {
|
|
19
|
+
if (canUseDOM) {
|
|
20
|
+
var closeOnEscape = (e) => {
|
|
21
|
+
if (active && e.key === 'Escape') {
|
|
22
|
+
e.stopPropagation()
|
|
23
|
+
|
|
24
|
+
if (onRequestClose) {
|
|
25
|
+
onRequestClose()
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
document.addEventListener('keyup', closeOnEscape, false)
|
|
31
|
+
return () => document.removeEventListener('keyup', closeOnEscape, false)
|
|
32
|
+
}
|
|
33
|
+
}, [active, onRequestClose])
|
|
34
|
+
var style = React.useMemo(() => {
|
|
35
|
+
return [styles.modal, transparent ? styles.modalTransparent : styles.modalOpaque]
|
|
36
|
+
}, [transparent])
|
|
37
|
+
return /*#__PURE__*/ React.createElement(
|
|
38
|
+
View,
|
|
39
|
+
{
|
|
40
|
+
...rest,
|
|
41
|
+
accessibilityModal: true,
|
|
42
|
+
accessibilityRole: active ? 'dialog' : null,
|
|
43
|
+
ref: forwardedRef,
|
|
44
|
+
style: style,
|
|
45
|
+
},
|
|
46
|
+
/*#__PURE__*/ React.createElement(
|
|
47
|
+
View,
|
|
48
|
+
{
|
|
49
|
+
style: styles.container,
|
|
50
|
+
},
|
|
51
|
+
children
|
|
52
|
+
)
|
|
53
|
+
)
|
|
54
|
+
})
|
|
55
|
+
var styles = StyleSheet.create({
|
|
56
|
+
modal: {
|
|
57
|
+
position: 'fixed',
|
|
58
|
+
top: 0,
|
|
59
|
+
right: 0,
|
|
60
|
+
bottom: 0,
|
|
61
|
+
left: 0,
|
|
62
|
+
},
|
|
63
|
+
modalTransparent: {
|
|
64
|
+
backgroundColor: 'transparent',
|
|
65
|
+
},
|
|
66
|
+
modalOpaque: {
|
|
67
|
+
backgroundColor: 'white',
|
|
68
|
+
},
|
|
69
|
+
container: {
|
|
70
|
+
top: 0,
|
|
71
|
+
flex: 1,
|
|
72
|
+
},
|
|
73
|
+
})
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) Nicolas Gallagher.
|
|
3
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
4
|
+
*
|
|
5
|
+
* This source code is licensed under the MIT license found in the
|
|
6
|
+
* LICENSE file in the root directory of this source tree.
|
|
7
|
+
*
|
|
8
|
+
*
|
|
9
|
+
*/
|
|
10
|
+
import * as React from 'react'
|
|
11
|
+
import ReactDOM from 'react-dom'
|
|
12
|
+
import { canUseDOM } from '@hanzogui/react-native-web-internals'
|
|
13
|
+
|
|
14
|
+
export function ModalPortal(props) {
|
|
15
|
+
var children = props.children
|
|
16
|
+
var elementRef = React.useRef(null)
|
|
17
|
+
|
|
18
|
+
if (canUseDOM && !elementRef.current) {
|
|
19
|
+
var element = document.createElement('div')
|
|
20
|
+
|
|
21
|
+
if (element && document.body) {
|
|
22
|
+
document.body.appendChild(element)
|
|
23
|
+
elementRef.current = element
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
React.useEffect(() => {
|
|
28
|
+
if (canUseDOM) {
|
|
29
|
+
return () => {
|
|
30
|
+
if (document.body && elementRef.current) {
|
|
31
|
+
document.body.removeChild(elementRef.current)
|
|
32
|
+
elementRef.current = null
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}, [])
|
|
37
|
+
return elementRef.current && canUseDOM
|
|
38
|
+
? /*#__PURE__*/ ReactDOM.createPortal(children, elementRef.current)
|
|
39
|
+
: null
|
|
40
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const Modal = () => null
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) Nicolas Gallagher.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*
|
|
7
|
+
* @noflow
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
import { UIManager } from '@hanzogui/react-native-web-internals'
|
|
11
|
+
|
|
12
|
+
// NativeModules shim
|
|
13
|
+
export const NativeModules = {
|
|
14
|
+
UIManager,
|
|
15
|
+
}
|
|
@@ -0,0 +1,385 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*
|
|
7
|
+
* @flow
|
|
8
|
+
* @format
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* PAN RESPONDER
|
|
13
|
+
*
|
|
14
|
+
* `PanResponder` uses the Responder System to reconcile several touches into
|
|
15
|
+
* a single gesture. It makes single-touch gestures resilient to extra touches,
|
|
16
|
+
* and can be used to recognize simple multi-touch gestures. For each handler,
|
|
17
|
+
* it provides a `gestureState` object alongside the ResponderEvent object.
|
|
18
|
+
*
|
|
19
|
+
* By default, `PanResponder` holds an `InteractionManager` handle to block
|
|
20
|
+
* long-running JS events from interrupting active gestures.
|
|
21
|
+
*
|
|
22
|
+
* A graphical explanation of the touch data flow:
|
|
23
|
+
*
|
|
24
|
+
* +----------------------------+ +--------------------------------+
|
|
25
|
+
* | ResponderTouchHistoryStore | |TouchHistoryMath |
|
|
26
|
+
* +----------------------------+ +----------+---------------------+
|
|
27
|
+
* |Global store of touchHistory| |Allocation-less math util |
|
|
28
|
+
* |including activeness, start | |on touch history (centroids |
|
|
29
|
+
* |position, prev/cur position.| |and multitouch movement etc) |
|
|
30
|
+
* | | | |
|
|
31
|
+
* +----^-----------------------+ +----^---------------------------+
|
|
32
|
+
* | |
|
|
33
|
+
* | (records relevant history |
|
|
34
|
+
* | of touches relevant for |
|
|
35
|
+
* | implementing higher level |
|
|
36
|
+
* | gestures) |
|
|
37
|
+
* | |
|
|
38
|
+
* +----+-----------------------+ +----|---------------------------+
|
|
39
|
+
* | ResponderEventPlugin | | | Your App/Component |
|
|
40
|
+
* +----------------------------+ +----|---------------------------+
|
|
41
|
+
* |Negotiates which view gets | Low level | | High level |
|
|
42
|
+
* |onResponderMove events. | events w/ | +-+-------+ events w/ |
|
|
43
|
+
* |Also records history into | touchHistory| | Pan | multitouch + |
|
|
44
|
+
* |ResponderTouchHistoryStore. +---------------->Responder+-----> accumulative|
|
|
45
|
+
* +----------------------------+ attached to | | | distance and |
|
|
46
|
+
* each event | +---------+ velocity. |
|
|
47
|
+
* | |
|
|
48
|
+
* | |
|
|
49
|
+
* +--------------------------------+
|
|
50
|
+
*/
|
|
51
|
+
|
|
52
|
+
'use strict'
|
|
53
|
+
|
|
54
|
+
import { InteractionManager } from '@hanzogui/react-native-web-internals'
|
|
55
|
+
|
|
56
|
+
import TouchHistoryMath from '../vendor/react-native/TouchHistoryMath/index'
|
|
57
|
+
|
|
58
|
+
type PressEvent = any
|
|
59
|
+
|
|
60
|
+
export type GestureState = {
|
|
61
|
+
// ID of the gestureState; persisted as long as there's a pointer on screen
|
|
62
|
+
stateID: number
|
|
63
|
+
// The latest screen coordinates of the gesture
|
|
64
|
+
x: number
|
|
65
|
+
// The latest screen coordinates of the gesture
|
|
66
|
+
y: number
|
|
67
|
+
// The screen coordinates of the responder grant
|
|
68
|
+
initialX: number
|
|
69
|
+
// The screen coordinates of the responder grant
|
|
70
|
+
initialY: number
|
|
71
|
+
// Accumulated distance of the gesture since it started
|
|
72
|
+
deltaX: number
|
|
73
|
+
// Accumulated distance of the gesture since it started
|
|
74
|
+
deltaY: number
|
|
75
|
+
// Current velocity of the gesture
|
|
76
|
+
velocityX: number
|
|
77
|
+
// Current velocity of the gesture
|
|
78
|
+
velocityY: number
|
|
79
|
+
// Number of touches currently on screen
|
|
80
|
+
numberActiveTouches: number
|
|
81
|
+
_accountsForMovesUpTo: number
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
type ActiveCallback = (event: PressEvent, gestureState: GestureState) => boolean
|
|
85
|
+
type PassiveCallback = (event: PressEvent, gestureState: GestureState) => void
|
|
86
|
+
|
|
87
|
+
type PanResponderConfig = {
|
|
88
|
+
// Negotiate for the responder
|
|
89
|
+
readonly onMoveShouldSetResponder?: ActiveCallback | null
|
|
90
|
+
readonly onMoveShouldSetResponderCapture?: ActiveCallback | null
|
|
91
|
+
readonly onStartShouldSetResponder?: ActiveCallback | null
|
|
92
|
+
readonly onStartShouldSetResponderCapture?: ActiveCallback | null
|
|
93
|
+
readonly onPanTerminationRequest?: ActiveCallback | null
|
|
94
|
+
// Gesture started
|
|
95
|
+
readonly onPanGrant?: PassiveCallback | null
|
|
96
|
+
// Gesture rejected
|
|
97
|
+
readonly onPanReject?: PassiveCallback | null
|
|
98
|
+
// A pointer touched the screen
|
|
99
|
+
readonly onPanStart?: PassiveCallback | null
|
|
100
|
+
// A pointer moved
|
|
101
|
+
readonly onPanMove?: PassiveCallback | null
|
|
102
|
+
// A pointer was removed from the screen
|
|
103
|
+
readonly onPanEnd?: PassiveCallback | null
|
|
104
|
+
// All pointers removed, gesture successful
|
|
105
|
+
readonly onPanRelease?: PassiveCallback | null
|
|
106
|
+
// Gesture cancelled
|
|
107
|
+
readonly onPanTerminate?: PassiveCallback | null
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
const {
|
|
111
|
+
currentCentroidX,
|
|
112
|
+
currentCentroidY,
|
|
113
|
+
currentCentroidXOfTouchesChangedAfter,
|
|
114
|
+
currentCentroidYOfTouchesChangedAfter,
|
|
115
|
+
previousCentroidXOfTouchesChangedAfter,
|
|
116
|
+
previousCentroidYOfTouchesChangedAfter,
|
|
117
|
+
} = TouchHistoryMath
|
|
118
|
+
|
|
119
|
+
const PanResponder = {
|
|
120
|
+
_initializeGestureState(gestureState: GestureState) {
|
|
121
|
+
gestureState.x = 0
|
|
122
|
+
gestureState.y = 0
|
|
123
|
+
gestureState.initialX = 0
|
|
124
|
+
gestureState.initialY = 0
|
|
125
|
+
gestureState.deltaX = 0
|
|
126
|
+
gestureState.deltaY = 0
|
|
127
|
+
gestureState.velocityX = 0
|
|
128
|
+
gestureState.velocityY = 0
|
|
129
|
+
gestureState.numberActiveTouches = 0
|
|
130
|
+
// All `gestureState` accounts for timeStamps up until:
|
|
131
|
+
gestureState._accountsForMovesUpTo = 0
|
|
132
|
+
},
|
|
133
|
+
|
|
134
|
+
/**
|
|
135
|
+
* Take all recently moved touches, calculate how the centroid has changed just for those
|
|
136
|
+
* recently moved touches, and append that change to an accumulator. This is
|
|
137
|
+
* to (at least) handle the case where the user is moving three fingers, and
|
|
138
|
+
* then one of the fingers stops but the other two continue.
|
|
139
|
+
*
|
|
140
|
+
* This is very different than taking all of the recently moved touches and
|
|
141
|
+
* storing their centroid as `dx/dy`. For correctness, we must *accumulate
|
|
142
|
+
* changes* in the centroid of recently moved touches.
|
|
143
|
+
*
|
|
144
|
+
* There is also some nuance with how we handle multiple moved touches in a
|
|
145
|
+
* single event. Multiple touches generate two 'move' events, each of
|
|
146
|
+
* them triggering `onResponderMove`. But with the way `PanResponder` works,
|
|
147
|
+
* all of the gesture inference is performed on the first dispatch, since it
|
|
148
|
+
* looks at all of the touches. Therefore, `PanResponder` does not call
|
|
149
|
+
* `onResponderMove` passed the first dispatch. This diverges from the
|
|
150
|
+
* typical responder callback pattern (without using `PanResponder`), but
|
|
151
|
+
* avoids more dispatches than necessary.
|
|
152
|
+
*
|
|
153
|
+
* When moving two touches in opposite directions, the cumulative
|
|
154
|
+
* distance is zero in each dimension. When two touches move in parallel five
|
|
155
|
+
* pixels in the same direction, the cumulative distance is five, not ten. If
|
|
156
|
+
* two touches start, one moves five in a direction, then stops and the other
|
|
157
|
+
* touch moves fives in the same direction, the cumulative distance is ten.
|
|
158
|
+
*
|
|
159
|
+
* This logic requires a kind of processing of time "clusters" of touch events
|
|
160
|
+
* so that two touch moves that essentially occur in parallel but move every
|
|
161
|
+
* other frame respectively, are considered part of the same movement.
|
|
162
|
+
*
|
|
163
|
+
* x/y: If a move event has been observed, `(x, y)` is the centroid of the most
|
|
164
|
+
* recently moved "cluster" of active touches.
|
|
165
|
+
* deltaX/deltaY: Cumulative touch distance. Accounts for touch moves that are
|
|
166
|
+
* clustered together in time, moving the same direction. Only valid when
|
|
167
|
+
* currently responder (otherwise, it only represents the drag distance below
|
|
168
|
+
* the threshold).
|
|
169
|
+
*/
|
|
170
|
+
_updateGestureStateOnMove(
|
|
171
|
+
gestureState: GestureState,
|
|
172
|
+
touchHistory: PressEvent['touchHistory']
|
|
173
|
+
) {
|
|
174
|
+
const movedAfter = gestureState._accountsForMovesUpTo
|
|
175
|
+
const prevX = previousCentroidXOfTouchesChangedAfter(touchHistory, movedAfter)
|
|
176
|
+
const prevY = previousCentroidYOfTouchesChangedAfter(touchHistory, movedAfter)
|
|
177
|
+
const prevDeltaX = gestureState.deltaX
|
|
178
|
+
const prevDeltaY = gestureState.deltaY
|
|
179
|
+
|
|
180
|
+
const x = currentCentroidXOfTouchesChangedAfter(touchHistory, movedAfter)
|
|
181
|
+
const y = currentCentroidYOfTouchesChangedAfter(touchHistory, movedAfter)
|
|
182
|
+
const deltaX = prevDeltaX + (x - prevX)
|
|
183
|
+
const deltaY = prevDeltaY + (y - prevY)
|
|
184
|
+
// TODO: This must be filtered intelligently.
|
|
185
|
+
const dt = touchHistory.mostRecentTimeStamp - gestureState._accountsForMovesUpTo
|
|
186
|
+
|
|
187
|
+
gestureState.deltaX = deltaX
|
|
188
|
+
gestureState.deltaY = deltaY
|
|
189
|
+
gestureState.numberActiveTouches = touchHistory.numberActiveTouches
|
|
190
|
+
gestureState.velocityX = (deltaX - prevDeltaX) / dt
|
|
191
|
+
gestureState.velocityY = (deltaY - prevDeltaY) / dt
|
|
192
|
+
gestureState.x = x
|
|
193
|
+
gestureState.y = y
|
|
194
|
+
gestureState._accountsForMovesUpTo = touchHistory.mostRecentTimeStamp
|
|
195
|
+
},
|
|
196
|
+
|
|
197
|
+
/**
|
|
198
|
+
* Enhanced versions of all of the responder callbacks that provide not only
|
|
199
|
+
* the `ResponderEvent`, but also the `PanResponder` gesture state.
|
|
200
|
+
*
|
|
201
|
+
* In general, for events that have capture equivalents, we update the
|
|
202
|
+
* gestureState once in the capture phase and can use it in the bubble phase
|
|
203
|
+
* as well.
|
|
204
|
+
*/
|
|
205
|
+
create(config: PanResponderConfig): {
|
|
206
|
+
getInteractionHandle: () => number | null
|
|
207
|
+
panHandlers: {
|
|
208
|
+
onMoveShouldSetResponder: (event: PressEvent) => boolean
|
|
209
|
+
onMoveShouldSetResponderCapture: (event: PressEvent) => boolean
|
|
210
|
+
onResponderEnd: (event: PressEvent) => void
|
|
211
|
+
onResponderGrant: (event: PressEvent) => void
|
|
212
|
+
onResponderMove: (event: PressEvent) => void
|
|
213
|
+
onResponderReject: (event: PressEvent) => void
|
|
214
|
+
onResponderRelease: (event: PressEvent) => void
|
|
215
|
+
onResponderStart: (event: PressEvent) => void
|
|
216
|
+
onResponderTerminate: (event: PressEvent) => void
|
|
217
|
+
onResponderTerminationRequest: (event: PressEvent) => boolean
|
|
218
|
+
onStartShouldSetResponder: (event: PressEvent) => boolean
|
|
219
|
+
onStartShouldSetResponderCapture: (event: PressEvent) => boolean
|
|
220
|
+
}
|
|
221
|
+
} {
|
|
222
|
+
const interactionState = {
|
|
223
|
+
handle: null as number | null,
|
|
224
|
+
}
|
|
225
|
+
const gestureState: GestureState = {
|
|
226
|
+
// Useful for debugging
|
|
227
|
+
stateID: Math.random(),
|
|
228
|
+
x: 0,
|
|
229
|
+
y: 0,
|
|
230
|
+
initialX: 0,
|
|
231
|
+
initialY: 0,
|
|
232
|
+
deltaX: 0,
|
|
233
|
+
deltaY: 0,
|
|
234
|
+
velocityX: 0,
|
|
235
|
+
velocityY: 0,
|
|
236
|
+
numberActiveTouches: 0,
|
|
237
|
+
_accountsForMovesUpTo: 0,
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
const {
|
|
241
|
+
onStartShouldSetResponder,
|
|
242
|
+
onStartShouldSetResponderCapture,
|
|
243
|
+
onMoveShouldSetResponder,
|
|
244
|
+
onMoveShouldSetResponderCapture,
|
|
245
|
+
onPanGrant,
|
|
246
|
+
onPanStart,
|
|
247
|
+
onPanMove,
|
|
248
|
+
onPanEnd,
|
|
249
|
+
onPanRelease,
|
|
250
|
+
onPanReject,
|
|
251
|
+
onPanTerminate,
|
|
252
|
+
onPanTerminationRequest,
|
|
253
|
+
} = config
|
|
254
|
+
|
|
255
|
+
const panHandlers = {
|
|
256
|
+
onStartShouldSetResponder(event: PressEvent): boolean {
|
|
257
|
+
return onStartShouldSetResponder != null
|
|
258
|
+
? onStartShouldSetResponder(event, gestureState)
|
|
259
|
+
: false
|
|
260
|
+
},
|
|
261
|
+
onMoveShouldSetResponder(event: PressEvent): boolean {
|
|
262
|
+
return onMoveShouldSetResponder != null
|
|
263
|
+
? onMoveShouldSetResponder(event, gestureState)
|
|
264
|
+
: false
|
|
265
|
+
},
|
|
266
|
+
onStartShouldSetResponderCapture(event: PressEvent): boolean {
|
|
267
|
+
// TODO: Actually, we should reinitialize the state any time
|
|
268
|
+
// touches.length increases from 0 active to > 0 active.
|
|
269
|
+
if (event.nativeEvent.touches.length === 1) {
|
|
270
|
+
PanResponder._initializeGestureState(gestureState)
|
|
271
|
+
}
|
|
272
|
+
gestureState.numberActiveTouches = event.touchHistory.numberActiveTouches
|
|
273
|
+
return onStartShouldSetResponderCapture != null
|
|
274
|
+
? onStartShouldSetResponderCapture(event, gestureState)
|
|
275
|
+
: false
|
|
276
|
+
},
|
|
277
|
+
|
|
278
|
+
onMoveShouldSetResponderCapture(event: PressEvent): boolean {
|
|
279
|
+
const touchHistory = event.touchHistory
|
|
280
|
+
// Responder system incorrectly dispatches should* to current responder
|
|
281
|
+
// Filter out any touch moves past the first one - we would have
|
|
282
|
+
// already processed multi-touch geometry during the first event.
|
|
283
|
+
// NOTE: commented out because new responder system should get it right.
|
|
284
|
+
//if (gestureState._accountsForMovesUpTo === touchHistory.mostRecentTimeStamp) {
|
|
285
|
+
// return false;
|
|
286
|
+
//}
|
|
287
|
+
PanResponder._updateGestureStateOnMove(gestureState, touchHistory)
|
|
288
|
+
return onMoveShouldSetResponderCapture != null
|
|
289
|
+
? onMoveShouldSetResponderCapture(event, gestureState)
|
|
290
|
+
: false
|
|
291
|
+
},
|
|
292
|
+
|
|
293
|
+
onResponderGrant(event: PressEvent): void {
|
|
294
|
+
if (!interactionState.handle) {
|
|
295
|
+
interactionState.handle = InteractionManager.createInteractionHandle()
|
|
296
|
+
}
|
|
297
|
+
gestureState.initialX = currentCentroidX(event.touchHistory)
|
|
298
|
+
gestureState.initialY = currentCentroidY(event.touchHistory)
|
|
299
|
+
gestureState.deltaX = 0
|
|
300
|
+
gestureState.deltaY = 0
|
|
301
|
+
if (onPanGrant != null) {
|
|
302
|
+
onPanGrant(event, gestureState)
|
|
303
|
+
}
|
|
304
|
+
},
|
|
305
|
+
|
|
306
|
+
onResponderReject(event: PressEvent): void {
|
|
307
|
+
// @ts-ignore
|
|
308
|
+
clearInteractionHandle(interactionState, onPanReject, event, gestureState)
|
|
309
|
+
},
|
|
310
|
+
|
|
311
|
+
onResponderStart(event: PressEvent): void {
|
|
312
|
+
const { numberActiveTouches } = event.touchHistory
|
|
313
|
+
gestureState.numberActiveTouches = numberActiveTouches
|
|
314
|
+
if (onPanStart != null) {
|
|
315
|
+
onPanStart(event, gestureState)
|
|
316
|
+
}
|
|
317
|
+
},
|
|
318
|
+
|
|
319
|
+
onResponderMove(event: PressEvent): void {
|
|
320
|
+
const touchHistory = event.touchHistory
|
|
321
|
+
// Guard against the dispatch of two touch moves when there are two
|
|
322
|
+
// simultaneously changed touches.
|
|
323
|
+
if (gestureState._accountsForMovesUpTo === touchHistory.mostRecentTimeStamp) {
|
|
324
|
+
return
|
|
325
|
+
}
|
|
326
|
+
// Filter out any touch moves past the first one - we would have
|
|
327
|
+
// already processed multi-touch geometry during the first event.
|
|
328
|
+
PanResponder._updateGestureStateOnMove(gestureState, touchHistory)
|
|
329
|
+
if (onPanMove != null) {
|
|
330
|
+
onPanMove(event, gestureState)
|
|
331
|
+
}
|
|
332
|
+
},
|
|
333
|
+
|
|
334
|
+
onResponderEnd(event: PressEvent): void {
|
|
335
|
+
const { numberActiveTouches } = event.touchHistory
|
|
336
|
+
gestureState.numberActiveTouches = numberActiveTouches
|
|
337
|
+
// @ts-ignore
|
|
338
|
+
clearInteractionHandle(interactionState, onPanEnd, event, gestureState)
|
|
339
|
+
},
|
|
340
|
+
|
|
341
|
+
onResponderRelease(event: PressEvent): void {
|
|
342
|
+
// @ts-ignore
|
|
343
|
+
clearInteractionHandle(interactionState, onPanRelease, event, gestureState)
|
|
344
|
+
PanResponder._initializeGestureState(gestureState)
|
|
345
|
+
},
|
|
346
|
+
|
|
347
|
+
onResponderTerminate(event: PressEvent): void {
|
|
348
|
+
// @ts-ignore
|
|
349
|
+
clearInteractionHandle(interactionState, onPanTerminate, event, gestureState)
|
|
350
|
+
PanResponder._initializeGestureState(gestureState)
|
|
351
|
+
},
|
|
352
|
+
|
|
353
|
+
onResponderTerminationRequest(event: PressEvent): boolean {
|
|
354
|
+
return onPanTerminationRequest != null
|
|
355
|
+
? onPanTerminationRequest(event, gestureState)
|
|
356
|
+
: true
|
|
357
|
+
},
|
|
358
|
+
}
|
|
359
|
+
return {
|
|
360
|
+
panHandlers,
|
|
361
|
+
getInteractionHandle(): number | null {
|
|
362
|
+
return interactionState.handle
|
|
363
|
+
},
|
|
364
|
+
}
|
|
365
|
+
},
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
function clearInteractionHandle(
|
|
369
|
+
interactionState: {
|
|
370
|
+
handle: number | null
|
|
371
|
+
},
|
|
372
|
+
callback: ActiveCallback | PassiveCallback | null,
|
|
373
|
+
event: PressEvent,
|
|
374
|
+
gestureState: GestureState
|
|
375
|
+
) {
|
|
376
|
+
if (interactionState.handle) {
|
|
377
|
+
InteractionManager.clearInteractionHandle(interactionState.handle)
|
|
378
|
+
interactionState.handle = null
|
|
379
|
+
}
|
|
380
|
+
if (callback) {
|
|
381
|
+
callback(event, gestureState)
|
|
382
|
+
}
|
|
383
|
+
}
|
|
384
|
+
|
|
385
|
+
export { PanResponder }
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as PanResponder } from '../vendor/react-native/PanResponder/index'
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) Nicolas Gallagher.
|
|
3
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
4
|
+
*
|
|
5
|
+
* This source code is licensed under the MIT license found in the
|
|
6
|
+
* LICENSE file in the root directory of this source tree.
|
|
7
|
+
*
|
|
8
|
+
* @flow
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
import { Dimensions } from '../Dimensions/index'
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* PixelRatio gives access to the device pixel density.
|
|
15
|
+
*/
|
|
16
|
+
export class PixelRatio {
|
|
17
|
+
/**
|
|
18
|
+
* Returns the device pixel density.
|
|
19
|
+
*/
|
|
20
|
+
static get(): number {
|
|
21
|
+
return Dimensions.get('window').scale
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* No equivalent for Web
|
|
26
|
+
*/
|
|
27
|
+
static getFontScale(): number {
|
|
28
|
+
return Dimensions.get('window').fontScale || PixelRatio.get()
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* Converts a layout size (dp) to pixel size (px).
|
|
33
|
+
* Guaranteed to return an integer number.
|
|
34
|
+
*/
|
|
35
|
+
static getPixelSizeForLayoutSize(layoutSize: number): number {
|
|
36
|
+
return Math.round(layoutSize * PixelRatio.get())
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* Rounds a layout size (dp) to the nearest layout size that corresponds to
|
|
41
|
+
* an integer number of pixels. For example, on a device with a PixelRatio
|
|
42
|
+
* of 3, `PixelRatio.roundToNearestPixel(8.4) = 8.33`, which corresponds to
|
|
43
|
+
* exactly (8.33 * 3) = 25 pixels.
|
|
44
|
+
*/
|
|
45
|
+
static roundToNearestPixel(layoutSize: number): number {
|
|
46
|
+
const ratio = PixelRatio.get()
|
|
47
|
+
return Math.round(layoutSize * ratio) / ratio
|
|
48
|
+
}
|
|
49
|
+
}
|