@hanzogui/react-native-web-lite 2.0.0
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 +97 -0
- package/dist/cjs/ActivityIndicator/__tests__/index-test.cjs +188 -0
- package/dist/cjs/ActivityIndicator/index.cjs +128 -0
- package/dist/cjs/Alert/index.cjs +28 -0
- package/dist/cjs/AppRegistry/AppContainer.cjs +70 -0
- package/dist/cjs/AppRegistry/__tests__/index-test.cjs +83 -0
- package/dist/cjs/AppRegistry/__tests__/index-test.node.cjs +155 -0
- package/dist/cjs/AppRegistry/index.cjs +88 -0
- package/dist/cjs/AppRegistry/renderApplication.cjs +69 -0
- package/dist/cjs/AppState/__tests__/index-test.cjs +34 -0
- package/dist/cjs/AppState/index.cjs +69 -0
- package/dist/cjs/Appearance/index.cjs +53 -0
- package/dist/cjs/BackHandler/index.cjs +35 -0
- package/dist/cjs/Clipboard/index.cjs +51 -0
- package/dist/cjs/DeviceEmitter.cjs +27 -0
- package/dist/cjs/DeviceInfo/index.cjs +68 -0
- package/dist/cjs/Dimensions/__tests__/index-test.cjs +54 -0
- package/dist/cjs/Dimensions/index.cjs +82 -0
- package/dist/cjs/FlatList.cjs +197 -0
- package/dist/cjs/I18nManager/index.cjs +34 -0
- package/dist/cjs/Image/index.cjs +293 -0
- package/dist/cjs/Image/types.cjs +16 -0
- package/dist/cjs/ImageBackground/__tests__/index-test.cjs +68 -0
- package/dist/cjs/ImageBackground/index.cjs +67 -0
- package/dist/cjs/InteractionManager/TaskQueue.cjs +87 -0
- package/dist/cjs/InteractionManager/index.cjs +114 -0
- package/dist/cjs/Keyboard/index.cjs +38 -0
- package/dist/cjs/KeyboardAvoidingView/index.cjs +68 -0
- package/dist/cjs/Libraries/Pressability/Pressability.cjs +26 -0
- package/dist/cjs/Libraries/Pressability/usePressability.cjs +26 -0
- package/dist/cjs/Linking/__tests__/index-test.cjs +40 -0
- package/dist/cjs/Linking/index.cjs +89 -0
- package/dist/cjs/LogBox/index.cjs +33 -0
- package/dist/cjs/Modal/ModalAnimation.cjs +147 -0
- package/dist/cjs/Modal/ModalContent.cjs +85 -0
- package/dist/cjs/Modal/ModalPortal.cjs +52 -0
- package/dist/cjs/Modal/index.cjs +26 -0
- package/dist/cjs/NativeModules/index.cjs +29 -0
- package/dist/cjs/PanResponder/index.cjs +37 -0
- package/dist/cjs/PixelRatio/index.cjs +57 -0
- package/dist/cjs/Pressable/index.cjs +144 -0
- package/dist/cjs/RefreshControl/index.cjs +49 -0
- package/dist/cjs/SafeAreaView/index.cjs +63 -0
- package/dist/cjs/ScrollView/ScrollViewBase.cjs +140 -0
- package/dist/cjs/ScrollView/index.cjs +589 -0
- package/dist/cjs/SectionList.cjs +39 -0
- package/dist/cjs/Share/index.cjs +48 -0
- package/dist/cjs/StatusBar/index.cjs +36 -0
- package/dist/cjs/Text/index.cjs +170 -0
- package/dist/cjs/Text/types.cjs +16 -0
- package/dist/cjs/TextInput/index.cjs +285 -0
- package/dist/cjs/TextInput/types.cjs +16 -0
- package/dist/cjs/TouchableNativeFeedback.cjs +26 -0
- package/dist/cjs/TouchableOpacity.cjs +116 -0
- package/dist/cjs/TouchableWithoutFeedback.cjs +91 -0
- package/dist/cjs/UnimplementedView.cjs +47 -0
- package/dist/cjs/Vibration/index.cjs +36 -0
- package/dist/cjs/View/index.cjs +123 -0
- package/dist/cjs/View/types.cjs +16 -0
- package/dist/cjs/VirtualizedList.cjs +39 -0
- package/dist/cjs/codegenNativeCommand.cjs +28 -0
- package/dist/cjs/codegenNativeComponent.cjs +28 -0
- package/dist/cjs/createElement/__tests__/index-test.cjs +765 -0
- package/dist/cjs/createElement/index.cjs +84 -0
- package/dist/cjs/createReactDOMStyle.cjs +28 -0
- package/dist/cjs/index.cjs +172 -0
- package/dist/cjs/modules/requestIdleCallback.cjs +43 -0
- package/dist/cjs/preprocess.cjs +30 -0
- package/dist/cjs/render/index.cjs +32 -0
- package/dist/cjs/styleTypes.cjs +16 -0
- package/dist/cjs/types.cjs +16 -0
- package/dist/cjs/useColorScheme/index.cjs +50 -0
- package/dist/cjs/useLocaleContext/index.cjs +26 -0
- package/dist/cjs/useWindowDimensions/index.cjs +51 -0
- package/dist/cjs/vendor/react-native/Animated/Animated.cjs +46 -0
- package/dist/cjs/vendor/react-native/Animated/AnimatedEvent.cjs +112 -0
- package/dist/cjs/vendor/react-native/Animated/AnimatedImplementation.cjs +508 -0
- package/dist/cjs/vendor/react-native/Animated/AnimatedMock.cjs +140 -0
- package/dist/cjs/vendor/react-native/Animated/AnimatedPlatformConfig.cjs +1 -0
- package/dist/cjs/vendor/react-native/Animated/Easing.cjs +187 -0
- package/dist/cjs/vendor/react-native/Animated/NativeAnimatedHelper.cjs +314 -0
- package/dist/cjs/vendor/react-native/Animated/NativeAnimatedModule.cjs +78 -0
- package/dist/cjs/vendor/react-native/Animated/NativeAnimatedTurboModule.cjs +75 -0
- package/dist/cjs/vendor/react-native/Animated/SpringConfig.cjs +78 -0
- package/dist/cjs/vendor/react-native/Animated/animations/Animation.cjs +64 -0
- package/dist/cjs/vendor/react-native/Animated/animations/DecayAnimation.cjs +71 -0
- package/dist/cjs/vendor/react-native/Animated/animations/SpringAnimation.cjs +161 -0
- package/dist/cjs/vendor/react-native/Animated/animations/TimingAnimation.cjs +89 -0
- package/dist/cjs/vendor/react-native/Animated/bezier.cjs +83 -0
- package/dist/cjs/vendor/react-native/Animated/components/AnimatedFlatList.cjs +48 -0
- package/dist/cjs/vendor/react-native/Animated/components/AnimatedImage.cjs +31 -0
- package/dist/cjs/vendor/react-native/Animated/components/AnimatedScrollView.cjs +48 -0
- package/dist/cjs/vendor/react-native/Animated/components/AnimatedSectionList.cjs +48 -0
- package/dist/cjs/vendor/react-native/Animated/components/AnimatedText.cjs +30 -0
- package/dist/cjs/vendor/react-native/Animated/components/AnimatedView.cjs +30 -0
- package/dist/cjs/vendor/react-native/Animated/createAnimatedComponent.cjs +62 -0
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedAddition.cjs +60 -0
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedColor.cjs +191 -0
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedDiffClamp.cjs +64 -0
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedDivision.cjs +64 -0
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedInterpolation.cjs +150 -0
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedModulo.cjs +58 -0
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedMultiplication.cjs +60 -0
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedNode.cjs +131 -0
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedProps.cjs +110 -0
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedStyle.cjs +104 -0
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedSubtraction.cjs +60 -0
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedTracking.cjs +73 -0
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedTransform.cjs +102 -0
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedValue.cjs +170 -0
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedValueXY.cjs +96 -0
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedWithChildren.cjs +61 -0
- package/dist/cjs/vendor/react-native/Animated/useAnimatedProps.cjs +84 -0
- package/dist/cjs/vendor/react-native/Batchinator/index.cjs +60 -0
- package/dist/cjs/vendor/react-native/EventEmitter/NativeEventEmitter.cjs +61 -0
- package/dist/cjs/vendor/react-native/EventEmitter/RCTDeviceEventEmitter.cjs +29 -0
- package/dist/cjs/vendor/react-native/FeatureFlags.cjs +33 -0
- package/dist/cjs/vendor/react-native/FillRateHelper/index.cjs +139 -0
- package/dist/cjs/vendor/react-native/FlatList/index.cjs +263 -0
- package/dist/cjs/vendor/react-native/JSEventLoopWatchdog/index.cjs +78 -0
- package/dist/cjs/vendor/react-native/LayoutAnimation/index.cjs +112 -0
- package/dist/cjs/vendor/react-native/PanResponder/index.cjs +144 -0
- package/dist/cjs/vendor/react-native/PooledClass/index.cjs +48 -0
- package/dist/cjs/vendor/react-native/ReactNative/ReactNativeFeatureFlags.cjs +34 -0
- package/dist/cjs/vendor/react-native/SectionList/index.cjs +104 -0
- package/dist/cjs/vendor/react-native/StaticContainer/index.cjs +50 -0
- package/dist/cjs/vendor/react-native/StaticRenderer/index.cjs +49 -0
- package/dist/cjs/vendor/react-native/TouchHistoryMath/index.cjs +106 -0
- package/dist/cjs/vendor/react-native/TurboModule/RCTExport.cjs +34 -0
- package/dist/cjs/vendor/react-native/TurboModule/TurboModuleRegistry.cjs +36 -0
- package/dist/cjs/vendor/react-native/Types/CoreEventTypes.cjs +156 -0
- package/dist/cjs/vendor/react-native/Utilities/Platform.cjs +28 -0
- package/dist/cjs/vendor/react-native/Utilities/clamp.cjs +32 -0
- package/dist/cjs/vendor/react-native/Utilities/setAndForwardRef.cjs +38 -0
- package/dist/cjs/vendor/react-native/Utilities/useMergeRefs.cjs +35 -0
- package/dist/cjs/vendor/react-native/Utilities/useRefEffect.cjs +34 -0
- package/dist/cjs/vendor/react-native/ViewabilityHelper/index.cjs +143 -0
- package/dist/cjs/vendor/react-native/ViewabilityHelper.cjs +134 -0
- package/dist/cjs/vendor/react-native/VirtualizeUtils/index.cjs +106 -0
- package/dist/cjs/vendor/react-native/VirtualizedList/CellRenderMask.cjs +79 -0
- package/dist/cjs/vendor/react-native/VirtualizedList/ChildListCollection.cjs +58 -0
- package/dist/cjs/vendor/react-native/VirtualizedList/StateSafePureComponent.cjs +82 -0
- package/dist/cjs/vendor/react-native/VirtualizedList/VirtualizedListCellRenderer.cjs +173 -0
- package/dist/cjs/vendor/react-native/VirtualizedList/VirtualizedListContext.cjs +85 -0
- package/dist/cjs/vendor/react-native/VirtualizedList/VirtualizedListProps.cjs +64 -0
- package/dist/cjs/vendor/react-native/VirtualizedList/index.cjs +264 -0
- package/dist/cjs/vendor/react-native/VirtualizedSectionList/index.cjs +130 -0
- package/dist/cjs/vendor/react-native/deepDiffer/index.cjs +44 -0
- package/dist/cjs/vendor/react-native/emitter/EventEmitter.cjs +30 -0
- package/dist/cjs/vendor/react-native/emitter/EventSubscription.cjs +1 -0
- package/dist/cjs/vendor/react-native/emitter/_EmitterSubscription.cjs +54 -0
- package/dist/cjs/vendor/react-native/emitter/_EventEmitter.cjs +125 -0
- package/dist/cjs/vendor/react-native/emitter/_EventSubscription.cjs +44 -0
- package/dist/cjs/vendor/react-native/emitter/_EventSubscriptionVendor.cjs +82 -0
- package/dist/cjs/vendor/react-native/infoLog/index.cjs +32 -0
- package/dist/cjs/vendor/react-native/useRefEffect.cjs +34 -0
- package/dist/cjs/vendor/react-native/vendor/emitter/EventEmitter.cjs +88 -0
- package/dist/cjs/without-animated.cjs +331 -0
- package/dist/esm/AccessibilityInfo/index.mjs +74 -0
- package/dist/esm/AccessibilityInfo/index.mjs.map +1 -0
- package/dist/esm/ActivityIndicator/__tests__/index-test.mjs +167 -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 +35 -0
- package/dist/esm/AppRegistry/AppContainer.mjs.map +1 -0
- package/dist/esm/AppRegistry/__tests__/index-test.mjs +62 -0
- package/dist/esm/AppRegistry/__tests__/index-test.mjs.map +1 -0
- package/dist/esm/AppRegistry/__tests__/index-test.node.mjs +134 -0
- package/dist/esm/AppRegistry/__tests__/index-test.node.mjs.map +1 -0
- package/dist/esm/AppRegistry/index.mjs +65 -0
- package/dist/esm/AppRegistry/index.mjs.map +1 -0
- package/dist/esm/AppRegistry/renderApplication.mjs +45 -0
- package/dist/esm/AppRegistry/renderApplication.mjs.map +1 -0
- package/dist/esm/AppState/__tests__/index-test.mjs +13 -0
- package/dist/esm/AppState/__tests__/index-test.mjs.map +1 -0
- package/dist/esm/AppState/index.mjs +46 -0
- package/dist/esm/AppState/index.mjs.map +1 -0
- package/dist/esm/Appearance/index.mjs +30 -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 +28 -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 +45 -0
- package/dist/esm/DeviceInfo/index.mjs.map +1 -0
- package/dist/esm/Dimensions/__tests__/index-test.mjs +33 -0
- package/dist/esm/Dimensions/__tests__/index-test.mjs.map +1 -0
- package/dist/esm/Dimensions/index.mjs +58 -0
- package/dist/esm/Dimensions/index.mjs.map +1 -0
- package/dist/esm/FlatList.mjs +162 -0
- package/dist/esm/FlatList.mjs.map +1 -0
- package/dist/esm/I18nManager/index.mjs +11 -0
- package/dist/esm/I18nManager/index.mjs.map +1 -0
- package/dist/esm/Image/index.mjs +258 -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 +47 -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 +64 -0
- package/dist/esm/InteractionManager/TaskQueue.mjs.map +1 -0
- package/dist/esm/InteractionManager/index.mjs +80 -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 +33 -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 +19 -0
- package/dist/esm/Linking/__tests__/index-test.mjs.map +1 -0
- package/dist/esm/Linking/index.mjs +66 -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 +113 -0
- package/dist/esm/Modal/ModalAnimation.mjs.map +1 -0
- package/dist/esm/Modal/ModalContent.mjs +51 -0
- package/dist/esm/Modal/ModalContent.mjs.map +1 -0
- package/dist/esm/Modal/ModalPortal.mjs +18 -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 +107 -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 +28 -0
- package/dist/esm/SafeAreaView/index.mjs.map +1 -0
- package/dist/esm/ScrollView/ScrollViewBase.mjs +105 -0
- package/dist/esm/ScrollView/ScrollViewBase.mjs.map +1 -0
- package/dist/esm/ScrollView/index.mjs +554 -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 +25 -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 +135 -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 +250 -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 +80 -0
- package/dist/esm/TouchableOpacity.mjs.map +1 -0
- package/dist/esm/TouchableWithoutFeedback.mjs +57 -0
- package/dist/esm/TouchableWithoutFeedback.mjs.map +1 -0
- package/dist/esm/UnimplementedView.mjs +13 -0
- package/dist/esm/UnimplementedView.mjs.map +1 -0
- package/dist/esm/Vibration/index.mjs +13 -0
- package/dist/esm/Vibration/index.mjs.map +1 -0
- package/dist/esm/View/index.mjs +88 -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 +5 -0
- package/dist/esm/codegenNativeCommand.mjs.map +1 -0
- package/dist/esm/codegenNativeComponent.mjs +5 -0
- package/dist/esm/codegenNativeComponent.mjs.map +1 -0
- package/dist/esm/createElement/__tests__/index-test.mjs +744 -0
- package/dist/esm/createElement/__tests__/index-test.mjs.map +1 -0
- package/dist/esm/createElement/index.mjs +49 -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 +16 -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 +17 -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 +86 -0
- package/dist/esm/vendor/react-native/Animated/AnimatedEvent.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Animated/AnimatedImplementation.mjs +481 -0
- package/dist/esm/vendor/react-native/Animated/AnimatedImplementation.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Animated/AnimatedMock.mjs +113 -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 +161 -0
- package/dist/esm/vendor/react-native/Animated/Easing.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Animated/NativeAnimatedHelper.mjs +274 -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 +54 -0
- package/dist/esm/vendor/react-native/Animated/SpringConfig.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Animated/animations/Animation.mjs +38 -0
- package/dist/esm/vendor/react-native/Animated/animations/Animation.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Animated/animations/DecayAnimation.mjs +45 -0
- package/dist/esm/vendor/react-native/Animated/animations/DecayAnimation.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Animated/animations/SpringAnimation.mjs +135 -0
- package/dist/esm/vendor/react-native/Animated/animations/SpringAnimation.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Animated/animations/TimingAnimation.mjs +65 -0
- package/dist/esm/vendor/react-native/Animated/animations/TimingAnimation.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Animated/bezier.mjs +57 -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 +27 -0
- package/dist/esm/vendor/react-native/Animated/createAnimatedComponent.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedAddition.mjs +34 -0
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedAddition.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedColor.mjs +167 -0
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedColor.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedDiffClamp.mjs +40 -0
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedDiffClamp.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedDivision.mjs +38 -0
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedDivision.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedInterpolation.mjs +124 -0
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedInterpolation.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedModulo.mjs +34 -0
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedModulo.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedMultiplication.mjs +34 -0
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedMultiplication.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedNode.mjs +105 -0
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedNode.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedProps.mjs +86 -0
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedProps.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedStyle.mjs +80 -0
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedStyle.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedSubtraction.mjs +34 -0
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedSubtraction.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedTracking.mjs +49 -0
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedTracking.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedTransform.mjs +76 -0
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedTransform.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedValue.mjs +144 -0
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedValue.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedValueXY.mjs +72 -0
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedValueXY.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedWithChildren.mjs +35 -0
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedWithChildren.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Animated/useAnimatedProps.mjs +58 -0
- package/dist/esm/vendor/react-native/Animated/useAnimatedProps.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Batchinator/index.mjs +34 -0
- package/dist/esm/vendor/react-native/Batchinator/index.mjs.map +1 -0
- package/dist/esm/vendor/react-native/EventEmitter/NativeEventEmitter.mjs +35 -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 +115 -0
- package/dist/esm/vendor/react-native/FillRateHelper/index.mjs.map +1 -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/JSEventLoopWatchdog/index.mjs +52 -0
- package/dist/esm/vendor/react-native/JSEventLoopWatchdog/index.mjs.map +1 -0
- package/dist/esm/vendor/react-native/LayoutAnimation/index.mjs +86 -0
- package/dist/esm/vendor/react-native/LayoutAnimation/index.mjs.map +1 -0
- package/dist/esm/vendor/react-native/PanResponder/index.mjs +109 -0
- package/dist/esm/vendor/react-native/PanResponder/index.mjs.map +1 -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/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 +69 -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 +82 -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 +10 -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 +6 -0
- package/dist/esm/vendor/react-native/Utilities/clamp.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Utilities/setAndForwardRef.mjs +12 -0
- package/dist/esm/vendor/react-native/Utilities/setAndForwardRef.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Utilities/useMergeRefs.mjs +11 -0
- package/dist/esm/vendor/react-native/Utilities/useMergeRefs.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Utilities/useRefEffect.mjs +10 -0
- package/dist/esm/vendor/react-native/Utilities/useRefEffect.mjs.map +1 -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.mjs +110 -0
- package/dist/esm/vendor/react-native/ViewabilityHelper.mjs.map +1 -0
- package/dist/esm/vendor/react-native/VirtualizeUtils/index.mjs +80 -0
- package/dist/esm/vendor/react-native/VirtualizeUtils/index.mjs.map +1 -0
- package/dist/esm/vendor/react-native/VirtualizedList/CellRenderMask.mjs +56 -0
- package/dist/esm/vendor/react-native/VirtualizedList/CellRenderMask.mjs.map +1 -0
- package/dist/esm/vendor/react-native/VirtualizedList/ChildListCollection.mjs +34 -0
- package/dist/esm/vendor/react-native/VirtualizedList/ChildListCollection.mjs.map +1 -0
- package/dist/esm/vendor/react-native/VirtualizedList/StateSafePureComponent.mjs +47 -0
- package/dist/esm/vendor/react-native/VirtualizedList/StateSafePureComponent.mjs.map +1 -0
- package/dist/esm/vendor/react-native/VirtualizedList/VirtualizedListCellRenderer.mjs +138 -0
- package/dist/esm/vendor/react-native/VirtualizedList/VirtualizedListCellRenderer.mjs.map +1 -0
- package/dist/esm/vendor/react-native/VirtualizedList/VirtualizedListContext.mjs +48 -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 +240 -0
- package/dist/esm/vendor/react-native/VirtualizedList/index.mjs.map +1 -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/deepDiffer/index.mjs +18 -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 +28 -0
- package/dist/esm/vendor/react-native/emitter/_EmitterSubscription.mjs.map +1 -0
- package/dist/esm/vendor/react-native/emitter/_EventEmitter.mjs +101 -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 +56 -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 +10 -0
- package/dist/esm/vendor/react-native/useRefEffect.mjs.map +1 -0
- package/dist/esm/vendor/react-native/vendor/emitter/EventEmitter.mjs +62 -0
- package/dist/esm/vendor/react-native/vendor/emitter/EventEmitter.mjs.map +1 -0
- package/dist/esm/without-animated.mjs +219 -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,196 @@
|
|
|
1
|
+
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
+
|
|
3
|
+
exports[`components/Pressable default 1`] = `
|
|
4
|
+
<div
|
|
5
|
+
class="css-view-175oi2r r-cursor-1loqt21 r-touchAction-1otgn73"
|
|
6
|
+
tabindex="0"
|
|
7
|
+
/>
|
|
8
|
+
`;
|
|
9
|
+
|
|
10
|
+
exports[`components/Pressable focus interaction 1`] = `
|
|
11
|
+
<div
|
|
12
|
+
class="css-view-175oi2r r-cursor-1loqt21 r-touchAction-1otgn73"
|
|
13
|
+
tabindex="0"
|
|
14
|
+
/>
|
|
15
|
+
`;
|
|
16
|
+
|
|
17
|
+
exports[`components/Pressable focus interaction 2`] = `
|
|
18
|
+
<div
|
|
19
|
+
class="css-view-175oi2r r-cursor-1loqt21 r-touchAction-1otgn73"
|
|
20
|
+
style="outline: focus-ring;"
|
|
21
|
+
tabindex="0"
|
|
22
|
+
>
|
|
23
|
+
<div
|
|
24
|
+
data-testid="focus-content"
|
|
25
|
+
/>
|
|
26
|
+
</div>
|
|
27
|
+
`;
|
|
28
|
+
|
|
29
|
+
exports[`components/Pressable focus interaction 3`] = `
|
|
30
|
+
<div
|
|
31
|
+
class="css-view-175oi2r r-cursor-1loqt21 r-touchAction-1otgn73"
|
|
32
|
+
style=""
|
|
33
|
+
tabindex="0"
|
|
34
|
+
/>
|
|
35
|
+
`;
|
|
36
|
+
|
|
37
|
+
exports[`components/Pressable hover interaction 1`] = `
|
|
38
|
+
<div
|
|
39
|
+
class="css-view-175oi2r r-cursor-1loqt21 r-touchAction-1otgn73"
|
|
40
|
+
tabindex="0"
|
|
41
|
+
/>
|
|
42
|
+
`;
|
|
43
|
+
|
|
44
|
+
exports[`components/Pressable hover interaction 2`] = `
|
|
45
|
+
<div
|
|
46
|
+
class="css-view-175oi2r r-cursor-1loqt21 r-touchAction-1otgn73"
|
|
47
|
+
style="outline: hover-ring;"
|
|
48
|
+
tabindex="0"
|
|
49
|
+
>
|
|
50
|
+
<div
|
|
51
|
+
data-testid="hover-content"
|
|
52
|
+
/>
|
|
53
|
+
</div>
|
|
54
|
+
`;
|
|
55
|
+
|
|
56
|
+
exports[`components/Pressable hover interaction 3`] = `
|
|
57
|
+
<div
|
|
58
|
+
class="css-view-175oi2r r-cursor-1loqt21 r-touchAction-1otgn73"
|
|
59
|
+
style=""
|
|
60
|
+
tabindex="0"
|
|
61
|
+
/>
|
|
62
|
+
`;
|
|
63
|
+
|
|
64
|
+
exports[`components/Pressable press interaction (keyboard) 1`] = `
|
|
65
|
+
<div
|
|
66
|
+
class="css-view-175oi2r r-cursor-1loqt21 r-touchAction-1otgn73"
|
|
67
|
+
tabindex="0"
|
|
68
|
+
/>
|
|
69
|
+
`;
|
|
70
|
+
|
|
71
|
+
exports[`components/Pressable press interaction (keyboard) 2`] = `
|
|
72
|
+
<div
|
|
73
|
+
class="css-view-175oi2r r-cursor-1loqt21 r-touchAction-1otgn73"
|
|
74
|
+
style="outline: press-ring;"
|
|
75
|
+
tabindex="0"
|
|
76
|
+
>
|
|
77
|
+
<div
|
|
78
|
+
data-testid="press-content"
|
|
79
|
+
/>
|
|
80
|
+
</div>
|
|
81
|
+
`;
|
|
82
|
+
|
|
83
|
+
exports[`components/Pressable press interaction (keyboard) 3`] = `null`;
|
|
84
|
+
|
|
85
|
+
exports[`components/Pressable press interaction (pointer) 1`] = `
|
|
86
|
+
<div
|
|
87
|
+
class="css-view-175oi2r r-cursor-1loqt21 r-touchAction-1otgn73"
|
|
88
|
+
tabindex="0"
|
|
89
|
+
/>
|
|
90
|
+
`;
|
|
91
|
+
|
|
92
|
+
exports[`components/Pressable press interaction (pointer) 2`] = `
|
|
93
|
+
<div
|
|
94
|
+
class="css-view-175oi2r r-cursor-1loqt21 r-touchAction-1otgn73"
|
|
95
|
+
style="outline: press-ring;"
|
|
96
|
+
tabindex="0"
|
|
97
|
+
>
|
|
98
|
+
<div
|
|
99
|
+
data-testid="press-content"
|
|
100
|
+
/>
|
|
101
|
+
</div>
|
|
102
|
+
`;
|
|
103
|
+
|
|
104
|
+
exports[`components/Pressable press interaction (pointer) 3`] = `
|
|
105
|
+
<div
|
|
106
|
+
class="css-view-175oi2r r-cursor-1loqt21 r-touchAction-1otgn73"
|
|
107
|
+
style=""
|
|
108
|
+
tabindex="0"
|
|
109
|
+
/>
|
|
110
|
+
`;
|
|
111
|
+
|
|
112
|
+
exports[`components/Pressable prop "accessibilityLabel" value is set 1`] = `
|
|
113
|
+
<div
|
|
114
|
+
aria-label="label"
|
|
115
|
+
class="css-view-175oi2r r-cursor-1loqt21 r-touchAction-1otgn73"
|
|
116
|
+
tabindex="0"
|
|
117
|
+
/>
|
|
118
|
+
`;
|
|
119
|
+
|
|
120
|
+
exports[`components/Pressable prop "accessibilityLiveRegion" value is set 1`] = `
|
|
121
|
+
<div
|
|
122
|
+
aria-live="polite"
|
|
123
|
+
class="css-view-175oi2r r-cursor-1loqt21 r-touchAction-1otgn73"
|
|
124
|
+
tabindex="0"
|
|
125
|
+
/>
|
|
126
|
+
`;
|
|
127
|
+
|
|
128
|
+
exports[`components/Pressable prop "accessibilityRole" value alters HTML element 1`] = `
|
|
129
|
+
<article
|
|
130
|
+
class="css-view-175oi2r r-cursor-1loqt21 r-touchAction-1otgn73"
|
|
131
|
+
role="article"
|
|
132
|
+
tabindex="0"
|
|
133
|
+
/>
|
|
134
|
+
`;
|
|
135
|
+
|
|
136
|
+
exports[`components/Pressable prop "accessibilityRole" value is "button" 1`] = `
|
|
137
|
+
<div
|
|
138
|
+
class="css-view-175oi2r r-cursor-1loqt21 r-touchAction-1otgn73"
|
|
139
|
+
role="button"
|
|
140
|
+
tabindex="0"
|
|
141
|
+
/>
|
|
142
|
+
`;
|
|
143
|
+
|
|
144
|
+
exports[`components/Pressable prop "accessibilityRole" value is set 1`] = `
|
|
145
|
+
<div
|
|
146
|
+
class="css-view-175oi2r r-cursor-1loqt21 r-touchAction-1otgn73"
|
|
147
|
+
role="presentation"
|
|
148
|
+
tabindex="0"
|
|
149
|
+
/>
|
|
150
|
+
`;
|
|
151
|
+
|
|
152
|
+
exports[`components/Pressable prop "disabled" 1`] = `
|
|
153
|
+
<div
|
|
154
|
+
aria-disabled="true"
|
|
155
|
+
class="css-view-175oi2r r-pointerEvents-633pao"
|
|
156
|
+
tabindex="-1"
|
|
157
|
+
/>
|
|
158
|
+
`;
|
|
159
|
+
|
|
160
|
+
exports[`components/Pressable prop "href" 1`] = `
|
|
161
|
+
<a
|
|
162
|
+
class="css-view-175oi2r r-cursor-1loqt21 r-touchAction-1otgn73"
|
|
163
|
+
href="#href"
|
|
164
|
+
/>
|
|
165
|
+
`;
|
|
166
|
+
|
|
167
|
+
exports[`components/Pressable prop "nativeID" value is set 1`] = `
|
|
168
|
+
<div
|
|
169
|
+
class="css-view-175oi2r r-cursor-1loqt21 r-touchAction-1otgn73"
|
|
170
|
+
id="nativeID"
|
|
171
|
+
tabindex="0"
|
|
172
|
+
/>
|
|
173
|
+
`;
|
|
174
|
+
|
|
175
|
+
exports[`components/Pressable prop "pointerEvents" 1`] = `
|
|
176
|
+
<div
|
|
177
|
+
class="css-view-175oi2r r-cursor-1loqt21 r-touchAction-1otgn73 r-pointerEvents-ah5dr5"
|
|
178
|
+
tabindex="0"
|
|
179
|
+
/>
|
|
180
|
+
`;
|
|
181
|
+
|
|
182
|
+
exports[`components/Pressable prop "style" value is set 1`] = `
|
|
183
|
+
<div
|
|
184
|
+
class="css-view-175oi2r r-cursor-1loqt21 r-touchAction-1otgn73"
|
|
185
|
+
style="border-top-width: 5px; border-right-width: 5px; border-bottom-width: 5px; border-left-width: 5px;"
|
|
186
|
+
tabindex="0"
|
|
187
|
+
/>
|
|
188
|
+
`;
|
|
189
|
+
|
|
190
|
+
exports[`components/Pressable prop "testID" value is set 1`] = `
|
|
191
|
+
<div
|
|
192
|
+
class="css-view-175oi2r r-cursor-1loqt21 r-touchAction-1otgn73"
|
|
193
|
+
data-testid="123"
|
|
194
|
+
tabindex="0"
|
|
195
|
+
/>
|
|
196
|
+
`;
|
|
@@ -0,0 +1,236 @@
|
|
|
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 strict-local
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
'use strict'
|
|
11
|
+
|
|
12
|
+
import { usePressEvents } from '@hanzogui/react-native-use-pressable'
|
|
13
|
+
import type { PressResponderConfig } from '@hanzogui/react-native-use-pressable'
|
|
14
|
+
import * as React from 'react'
|
|
15
|
+
import { forwardRef, memo, useMemo, useRef, useState } from 'react'
|
|
16
|
+
import { StyleSheet } from '@hanzogui/react-native-web-internals'
|
|
17
|
+
import { useHover, useMergeRefs } from '@hanzogui/react-native-web-internals'
|
|
18
|
+
|
|
19
|
+
import type { ViewProps } from '../View/index'
|
|
20
|
+
import { View } from '../View/index'
|
|
21
|
+
|
|
22
|
+
type HoverEventsConfig = any
|
|
23
|
+
|
|
24
|
+
export type StateCallbackType = {
|
|
25
|
+
focused: boolean
|
|
26
|
+
hovered: boolean
|
|
27
|
+
pressed: boolean
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
type ViewStyleProp = ViewProps['style']
|
|
31
|
+
|
|
32
|
+
type Props = ViewProps & {
|
|
33
|
+
children: React.ReactNode | ((state: StateCallbackType) => React.ReactNode)
|
|
34
|
+
// Duration (in milliseconds) from `onPressIn` before `onLongPress` is called.
|
|
35
|
+
delayLongPress?: number | null
|
|
36
|
+
// Duration (in milliseconds) from `onPressStart` is called after pointerdown
|
|
37
|
+
delayPressIn?: number | null
|
|
38
|
+
// Duration (in milliseconds) from `onPressEnd` is called after pointerup.
|
|
39
|
+
delayPressOut?: number | null
|
|
40
|
+
// Whether the press behavior is disabled.
|
|
41
|
+
disabled?: boolean | null
|
|
42
|
+
// Called when the view is hovered
|
|
43
|
+
onHoverIn?: HoverEventsConfig['onHoverStart']
|
|
44
|
+
// Called when the view is no longer hovered
|
|
45
|
+
onHoverOut?: HoverEventsConfig['onHoverEnd']
|
|
46
|
+
// Called when this view's layout changes
|
|
47
|
+
onLayout?: ViewProps['onLayout']
|
|
48
|
+
// Called when a long-tap gesture is detected.
|
|
49
|
+
onLongPress?: PressResponderConfig['onLongPress']
|
|
50
|
+
// Called when a single tap gesture is detected.
|
|
51
|
+
onPress?: PressResponderConfig['onPress']
|
|
52
|
+
// Called when a touch is engaged, before `onPress`.
|
|
53
|
+
onPressIn?: PressResponderConfig['onPressStart']
|
|
54
|
+
// Called when a touch is moving, after `onPressIn`.
|
|
55
|
+
onPressMove?: PressResponderConfig['onPressMove']
|
|
56
|
+
// Called when a touch is released, before `onPress`.
|
|
57
|
+
onPressOut?: PressResponderConfig['onPressEnd']
|
|
58
|
+
style?: ViewStyleProp | ((state: StateCallbackType) => ViewStyleProp)
|
|
59
|
+
/**
|
|
60
|
+
* Used only for documentation or testing (e.g. snapshot testing).
|
|
61
|
+
*/
|
|
62
|
+
testOnly_hovered?: boolean | null
|
|
63
|
+
testOnly_pressed?: boolean | null
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* Component used to build display components that should respond to whether the
|
|
68
|
+
* component is currently pressed or not.
|
|
69
|
+
*/
|
|
70
|
+
function Pressable(props: Props, forwardedRef): React.ReactNode {
|
|
71
|
+
const {
|
|
72
|
+
children,
|
|
73
|
+
delayLongPress,
|
|
74
|
+
delayPressIn,
|
|
75
|
+
delayPressOut,
|
|
76
|
+
disabled,
|
|
77
|
+
focusable,
|
|
78
|
+
onBlur,
|
|
79
|
+
onContextMenu,
|
|
80
|
+
onFocus,
|
|
81
|
+
onHoverIn,
|
|
82
|
+
onHoverOut,
|
|
83
|
+
onKeyDown,
|
|
84
|
+
onLongPress,
|
|
85
|
+
onPress,
|
|
86
|
+
onPressMove,
|
|
87
|
+
onPressIn,
|
|
88
|
+
onPressOut,
|
|
89
|
+
style,
|
|
90
|
+
testOnly_hovered,
|
|
91
|
+
testOnly_pressed,
|
|
92
|
+
...rest
|
|
93
|
+
} = props
|
|
94
|
+
|
|
95
|
+
const [hovered, setHovered] = useForceableState(testOnly_hovered === true)
|
|
96
|
+
const [focused, setFocused] = useForceableState(false)
|
|
97
|
+
const [pressed, setPressed] = useForceableState(testOnly_pressed === true)
|
|
98
|
+
|
|
99
|
+
const hostRef = useRef(null)
|
|
100
|
+
const setRef = useMergeRefs(forwardedRef, hostRef)
|
|
101
|
+
|
|
102
|
+
const pressConfig = useMemo(
|
|
103
|
+
() => ({
|
|
104
|
+
delayLongPress,
|
|
105
|
+
delayPressStart: delayPressIn,
|
|
106
|
+
delayPressEnd: delayPressOut,
|
|
107
|
+
disabled,
|
|
108
|
+
onLongPress,
|
|
109
|
+
onPress,
|
|
110
|
+
onPressChange: setPressed,
|
|
111
|
+
onPressStart: onPressIn,
|
|
112
|
+
onPressMove,
|
|
113
|
+
onPressEnd: onPressOut,
|
|
114
|
+
}),
|
|
115
|
+
[
|
|
116
|
+
delayLongPress,
|
|
117
|
+
delayPressIn,
|
|
118
|
+
delayPressOut,
|
|
119
|
+
disabled,
|
|
120
|
+
onLongPress,
|
|
121
|
+
onPress,
|
|
122
|
+
onPressIn,
|
|
123
|
+
onPressMove,
|
|
124
|
+
onPressOut,
|
|
125
|
+
setPressed,
|
|
126
|
+
]
|
|
127
|
+
)
|
|
128
|
+
|
|
129
|
+
const pressEventHandlers = usePressEvents(hostRef, pressConfig)
|
|
130
|
+
|
|
131
|
+
const { onContextMenu: onContextMenuPress, onKeyDown: onKeyDownPress } =
|
|
132
|
+
pressEventHandlers
|
|
133
|
+
|
|
134
|
+
useHover(hostRef, {
|
|
135
|
+
contain: true,
|
|
136
|
+
disabled,
|
|
137
|
+
onHoverChange: setHovered,
|
|
138
|
+
onHoverStart: onHoverIn,
|
|
139
|
+
onHoverEnd: onHoverOut,
|
|
140
|
+
})
|
|
141
|
+
|
|
142
|
+
const interactionState = { hovered, focused, pressed }
|
|
143
|
+
|
|
144
|
+
const blurHandler = React.useCallback(
|
|
145
|
+
(e) => {
|
|
146
|
+
if (disabled) {
|
|
147
|
+
return
|
|
148
|
+
}
|
|
149
|
+
if (e.nativeEvent.target === hostRef.current) {
|
|
150
|
+
setFocused(false)
|
|
151
|
+
if (onBlur != null) {
|
|
152
|
+
onBlur(e)
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
},
|
|
156
|
+
[disabled, hostRef, setFocused, onBlur]
|
|
157
|
+
)
|
|
158
|
+
|
|
159
|
+
const focusHandler = React.useCallback(
|
|
160
|
+
(e) => {
|
|
161
|
+
if (disabled) {
|
|
162
|
+
return
|
|
163
|
+
}
|
|
164
|
+
if (e.nativeEvent.target === hostRef.current) {
|
|
165
|
+
setFocused(true)
|
|
166
|
+
if (onFocus != null) {
|
|
167
|
+
onFocus(e)
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
},
|
|
171
|
+
[disabled, hostRef, setFocused, onFocus]
|
|
172
|
+
)
|
|
173
|
+
|
|
174
|
+
const contextMenuHandler = React.useCallback(
|
|
175
|
+
(e) => {
|
|
176
|
+
if (onContextMenuPress != null) {
|
|
177
|
+
onContextMenuPress(e)
|
|
178
|
+
}
|
|
179
|
+
if (onContextMenu != null) {
|
|
180
|
+
onContextMenu(e)
|
|
181
|
+
}
|
|
182
|
+
},
|
|
183
|
+
[onContextMenu, onContextMenuPress]
|
|
184
|
+
)
|
|
185
|
+
|
|
186
|
+
const keyDownHandler = React.useCallback(
|
|
187
|
+
(e) => {
|
|
188
|
+
if (onKeyDownPress != null) {
|
|
189
|
+
onKeyDownPress(e)
|
|
190
|
+
}
|
|
191
|
+
if (onKeyDown != null) {
|
|
192
|
+
onKeyDown(e)
|
|
193
|
+
}
|
|
194
|
+
},
|
|
195
|
+
[onKeyDown, onKeyDownPress]
|
|
196
|
+
)
|
|
197
|
+
|
|
198
|
+
return (
|
|
199
|
+
<View
|
|
200
|
+
{...rest}
|
|
201
|
+
{...pressEventHandlers}
|
|
202
|
+
accessibilityDisabled={disabled}
|
|
203
|
+
focusable={!disabled && focusable !== false}
|
|
204
|
+
onBlur={blurHandler}
|
|
205
|
+
onContextMenu={contextMenuHandler}
|
|
206
|
+
onFocus={focusHandler}
|
|
207
|
+
onKeyDown={keyDownHandler}
|
|
208
|
+
pointerEvents={disabled ? 'none' : rest.pointerEvents}
|
|
209
|
+
ref={setRef}
|
|
210
|
+
style={[
|
|
211
|
+
!disabled && styles.root,
|
|
212
|
+
typeof style === 'function' ? style(interactionState) : style,
|
|
213
|
+
]}
|
|
214
|
+
>
|
|
215
|
+
{typeof children === 'function' ? children(interactionState) : children}
|
|
216
|
+
</View>
|
|
217
|
+
)
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
function useForceableState(forced: boolean): [boolean, (boolean) => void] {
|
|
221
|
+
const [bool, setBool] = useState(false)
|
|
222
|
+
return [bool || forced, setBool]
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
const styles = StyleSheet.create({
|
|
226
|
+
root: {
|
|
227
|
+
cursor: 'pointer',
|
|
228
|
+
touchAction: 'manipulation',
|
|
229
|
+
},
|
|
230
|
+
})
|
|
231
|
+
|
|
232
|
+
const PressableComponent = memo(forwardRef(Pressable as any))
|
|
233
|
+
PressableComponent.displayName = 'Pressable'
|
|
234
|
+
|
|
235
|
+
export { PressableComponent as Pressable }
|
|
236
|
+
export default PressableComponent
|
|
@@ -0,0 +1,50 @@
|
|
|
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 type { ReactNode } from 'react'
|
|
12
|
+
|
|
13
|
+
import type { ColorValue } from '../types'
|
|
14
|
+
import type { ViewProps } from '../View/index'
|
|
15
|
+
import { View } from '../View/index'
|
|
16
|
+
|
|
17
|
+
type RefreshControlProps = {
|
|
18
|
+
colors?: Array<ColorValue>
|
|
19
|
+
enabled?: boolean
|
|
20
|
+
onRefresh?: () => void
|
|
21
|
+
progressBackgroundColor?: ColorValue
|
|
22
|
+
progressViewOffset?: number
|
|
23
|
+
refreshing: boolean
|
|
24
|
+
size?: 0 | 1
|
|
25
|
+
tintColor?: ColorValue
|
|
26
|
+
title?: string
|
|
27
|
+
titleColor?: ColorValue
|
|
28
|
+
} & ViewProps
|
|
29
|
+
|
|
30
|
+
export function RefreshControl(props: RefreshControlProps): ReactNode {
|
|
31
|
+
const {
|
|
32
|
+
/* eslint-disable */
|
|
33
|
+
colors,
|
|
34
|
+
enabled,
|
|
35
|
+
onRefresh,
|
|
36
|
+
progressBackgroundColor,
|
|
37
|
+
progressViewOffset,
|
|
38
|
+
refreshing,
|
|
39
|
+
size,
|
|
40
|
+
tintColor,
|
|
41
|
+
title,
|
|
42
|
+
titleColor,
|
|
43
|
+
/* eslint-enable */
|
|
44
|
+
...rest
|
|
45
|
+
} = props
|
|
46
|
+
|
|
47
|
+
return <View {...rest} />
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export default RefreshControl
|
|
@@ -0,0 +1,48 @@
|
|
|
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 * as React from 'react'
|
|
12
|
+
import { StyleSheet, canUseDOM } from '@hanzogui/react-native-web-internals'
|
|
13
|
+
|
|
14
|
+
import type { ViewProps } from '../View/index'
|
|
15
|
+
import { View } from '../View/index'
|
|
16
|
+
|
|
17
|
+
const cssFunction: 'constant' | 'env' = (() => {
|
|
18
|
+
if (
|
|
19
|
+
canUseDOM &&
|
|
20
|
+
window.CSS &&
|
|
21
|
+
window.CSS.supports &&
|
|
22
|
+
window.CSS.supports('top: constant(safe-area-inset-top)')
|
|
23
|
+
) {
|
|
24
|
+
return 'constant'
|
|
25
|
+
}
|
|
26
|
+
return 'env'
|
|
27
|
+
})()
|
|
28
|
+
|
|
29
|
+
const SafeAreaView = React.forwardRef<typeof View, ViewProps>((props, ref) => {
|
|
30
|
+
const { style, ...rest } = props
|
|
31
|
+
return (
|
|
32
|
+
<View {...rest} ref={ref as any} style={StyleSheet.compose(styles.root, style)} />
|
|
33
|
+
)
|
|
34
|
+
})
|
|
35
|
+
|
|
36
|
+
SafeAreaView.displayName = 'SafeAreaView'
|
|
37
|
+
|
|
38
|
+
const styles = StyleSheet.create({
|
|
39
|
+
root: {
|
|
40
|
+
paddingTop: `${cssFunction}(safe-area-inset-top)`,
|
|
41
|
+
paddingRight: `${cssFunction}(safe-area-inset-right)`,
|
|
42
|
+
paddingBottom: `${cssFunction}(safe-area-inset-bottom)`,
|
|
43
|
+
paddingLeft: `${cssFunction}(safe-area-inset-left)`,
|
|
44
|
+
},
|
|
45
|
+
})
|
|
46
|
+
|
|
47
|
+
export { SafeAreaView }
|
|
48
|
+
export default SafeAreaView
|
|
@@ -0,0 +1,183 @@
|
|
|
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
|
+
* @flow
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
import { useMergeRefs } from '@hanzogui/react-native-web-internals'
|
|
11
|
+
import * as React from 'react'
|
|
12
|
+
|
|
13
|
+
import type { ViewProps } from '../View/index'
|
|
14
|
+
import { View } from '../View/index'
|
|
15
|
+
|
|
16
|
+
type Props = ViewProps & {
|
|
17
|
+
onMomentumScrollBegin?: (e: any) => void
|
|
18
|
+
onMomentumScrollEnd?: (e: any) => void
|
|
19
|
+
onScroll?: (e: any) => void
|
|
20
|
+
onScrollBeginDrag?: (e: any) => void
|
|
21
|
+
onScrollEndDrag?: (e: any) => void
|
|
22
|
+
onTouchMove?: (e: any) => void
|
|
23
|
+
onWheel?: (e: any) => void
|
|
24
|
+
scrollEnabled?: boolean
|
|
25
|
+
scrollEventThrottle?: number
|
|
26
|
+
showsHorizontalScrollIndicator?: boolean
|
|
27
|
+
showsVerticalScrollIndicator?: boolean
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
function normalizeScrollEvent(e) {
|
|
31
|
+
return {
|
|
32
|
+
nativeEvent: {
|
|
33
|
+
contentOffset: {
|
|
34
|
+
get x() {
|
|
35
|
+
return e.target.scrollLeft
|
|
36
|
+
},
|
|
37
|
+
get y() {
|
|
38
|
+
return e.target.scrollTop
|
|
39
|
+
},
|
|
40
|
+
},
|
|
41
|
+
contentSize: {
|
|
42
|
+
get height() {
|
|
43
|
+
return e.target.scrollHeight
|
|
44
|
+
},
|
|
45
|
+
get width() {
|
|
46
|
+
return e.target.scrollWidth
|
|
47
|
+
},
|
|
48
|
+
},
|
|
49
|
+
layoutMeasurement: {
|
|
50
|
+
get height() {
|
|
51
|
+
return e.target.offsetHeight
|
|
52
|
+
},
|
|
53
|
+
get width() {
|
|
54
|
+
return e.target.offsetWidth
|
|
55
|
+
},
|
|
56
|
+
},
|
|
57
|
+
},
|
|
58
|
+
timeStamp: Date.now(),
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
function shouldEmitScrollEvent(lastTick: number, eventThrottle: number) {
|
|
63
|
+
const timeSinceLastTick = Date.now() - lastTick
|
|
64
|
+
return eventThrottle > 0 && timeSinceLastTick >= eventThrottle
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* Encapsulates the Web-specific scroll throttling and disabling logic
|
|
69
|
+
*/
|
|
70
|
+
const ScrollViewBase = React.forwardRef((props: Props, forwardedRef) => {
|
|
71
|
+
const {
|
|
72
|
+
onScroll,
|
|
73
|
+
onTouchMove,
|
|
74
|
+
onWheel,
|
|
75
|
+
scrollEnabled = true,
|
|
76
|
+
scrollEventThrottle = 0,
|
|
77
|
+
showsHorizontalScrollIndicator,
|
|
78
|
+
showsVerticalScrollIndicator,
|
|
79
|
+
style,
|
|
80
|
+
// strip RN-only props that shouldn't reach the DOM
|
|
81
|
+
onMomentumScrollBegin,
|
|
82
|
+
onMomentumScrollEnd,
|
|
83
|
+
onScrollBeginDrag,
|
|
84
|
+
onScrollEndDrag,
|
|
85
|
+
...rest
|
|
86
|
+
} = props
|
|
87
|
+
|
|
88
|
+
const scrollState = React.useRef({ isScrolling: false, scrollLastTick: 0 })
|
|
89
|
+
const scrollTimeout = React.useRef(null)
|
|
90
|
+
const scrollRef = React.useRef(null)
|
|
91
|
+
|
|
92
|
+
function createPreventableScrollHandler(handler: Function) {
|
|
93
|
+
return (e: object) => {
|
|
94
|
+
if (scrollEnabled) {
|
|
95
|
+
if (handler) {
|
|
96
|
+
handler(e)
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
function handleScroll(e: any) {
|
|
103
|
+
e.stopPropagation()
|
|
104
|
+
if (e.target === scrollRef.current) {
|
|
105
|
+
e.persist()
|
|
106
|
+
// A scroll happened, so the scroll resets the scrollend timeout.
|
|
107
|
+
if (scrollTimeout.current != null) {
|
|
108
|
+
clearTimeout(scrollTimeout.current)
|
|
109
|
+
}
|
|
110
|
+
// @ts-ignore
|
|
111
|
+
scrollTimeout.current = setTimeout(() => {
|
|
112
|
+
handleScrollEnd(e)
|
|
113
|
+
}, 100)
|
|
114
|
+
if (scrollState.current.isScrolling) {
|
|
115
|
+
// Scroll last tick may have changed, check if we need to notify
|
|
116
|
+
if (
|
|
117
|
+
shouldEmitScrollEvent(scrollState.current.scrollLastTick, scrollEventThrottle)
|
|
118
|
+
) {
|
|
119
|
+
handleScrollTick(e)
|
|
120
|
+
}
|
|
121
|
+
} else {
|
|
122
|
+
// Weren't scrolling, so we must have just started
|
|
123
|
+
handleScrollStart(e)
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
function handleScrollStart(e: object) {
|
|
129
|
+
scrollState.current.isScrolling = true
|
|
130
|
+
handleScrollTick(e)
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
function handleScrollTick(e: object) {
|
|
134
|
+
scrollState.current.scrollLastTick = Date.now()
|
|
135
|
+
if (onScroll) {
|
|
136
|
+
onScroll(normalizeScrollEvent(e))
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
function handleScrollEnd(e: object) {
|
|
141
|
+
scrollState.current.isScrolling = false
|
|
142
|
+
if (onScroll) {
|
|
143
|
+
onScroll(normalizeScrollEvent(e))
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
const hideHorizontalScrollbar = showsHorizontalScrollIndicator === false
|
|
148
|
+
const hideVerticalScrollbar = showsVerticalScrollIndicator === false
|
|
149
|
+
|
|
150
|
+
return (
|
|
151
|
+
<View
|
|
152
|
+
{...rest}
|
|
153
|
+
className={
|
|
154
|
+
'_dsp_contents' +
|
|
155
|
+
(hideHorizontalScrollbar ? ' _hsb-x' : '') +
|
|
156
|
+
(hideVerticalScrollbar ? ' _hsb-y' : '')
|
|
157
|
+
}
|
|
158
|
+
onScroll={handleScroll}
|
|
159
|
+
onTouchMove={createPreventableScrollHandler(onTouchMove as any)}
|
|
160
|
+
onWheel={createPreventableScrollHandler(onWheel as any)}
|
|
161
|
+
ref={useMergeRefs(scrollRef, forwardedRef)}
|
|
162
|
+
style={[
|
|
163
|
+
style,
|
|
164
|
+
// @ts-ignore
|
|
165
|
+
!scrollEnabled && styles.scrollDisabled,
|
|
166
|
+
]}
|
|
167
|
+
/>
|
|
168
|
+
)
|
|
169
|
+
})
|
|
170
|
+
|
|
171
|
+
// Chrome doesn't support e.preventDefault in this case; touch-action must be
|
|
172
|
+
// used to disable scrolling.
|
|
173
|
+
// https://developers.google.com/web/updates/2017/01/scrolling-intervention
|
|
174
|
+
const styles = {
|
|
175
|
+
scrollDisabled: {
|
|
176
|
+
overflowX: 'hidden',
|
|
177
|
+
overflowY: 'hidden',
|
|
178
|
+
touchAction: 'none',
|
|
179
|
+
},
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
export { ScrollViewBase }
|
|
183
|
+
export default ScrollViewBase
|