@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,331 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf,
|
|
6
|
+
__hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all) __defProp(target, name, {
|
|
9
|
+
get: all[name],
|
|
10
|
+
enumerable: !0
|
|
11
|
+
});
|
|
12
|
+
},
|
|
13
|
+
__copyProps = (to, from, except, desc) => {
|
|
14
|
+
if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
|
|
15
|
+
get: () => from[key],
|
|
16
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
17
|
+
});
|
|
18
|
+
return to;
|
|
19
|
+
},
|
|
20
|
+
__reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default")),
|
|
21
|
+
__toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
22
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
23
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
24
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
25
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
26
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
27
|
+
value: mod,
|
|
28
|
+
enumerable: !0
|
|
29
|
+
}) : target, mod)),
|
|
30
|
+
__toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
31
|
+
value: !0
|
|
32
|
+
}), mod);
|
|
33
|
+
var without_animated_exports = {};
|
|
34
|
+
__export(without_animated_exports, {
|
|
35
|
+
AccessibilityInfo: () => import_AccessibilityInfo.AccessibilityInfo,
|
|
36
|
+
AccessibilityUtil: () => import_react_native_web_internals.AccessibilityUtil,
|
|
37
|
+
ActivityIndicator: () => import_ActivityIndicator.ActivityIndicator,
|
|
38
|
+
Alert: () => import_Alert.Alert,
|
|
39
|
+
Animated: () => Animated,
|
|
40
|
+
AppRegistry: () => import_AppRegistry.AppRegistry,
|
|
41
|
+
AppState: () => import_AppState.AppState,
|
|
42
|
+
Appearance: () => import_Appearance.Appearance,
|
|
43
|
+
BackHandler: () => import_BackHandler.BackHandler,
|
|
44
|
+
Clipboard: () => import_Clipboard.Clipboard,
|
|
45
|
+
DeviceEmitter: () => import_DeviceEmitter.DeviceEmitter,
|
|
46
|
+
DeviceEventEmitter: () => import_DeviceEmitter2.DeviceEmitter,
|
|
47
|
+
DeviceInfo: () => import_DeviceInfo.DeviceInfo,
|
|
48
|
+
Dimensions: () => import_Dimensions.Dimensions,
|
|
49
|
+
DrawerLayoutAndroid: () => import_UnimplementedView.UnimplementedView,
|
|
50
|
+
Easing: () => Easing,
|
|
51
|
+
FlatList: () => import_UnimplementedView4.UnimplementedView,
|
|
52
|
+
I18nManager: () => import_I18nManager.I18nManager,
|
|
53
|
+
Image: () => import_Image.Image,
|
|
54
|
+
ImageBackground: () => import_ImageBackground.ImageBackground,
|
|
55
|
+
ImageLoader: () => import_react_native_web_internals.ImageLoader,
|
|
56
|
+
InteractionManager: () => import_react_native_web_internals.InteractionManager,
|
|
57
|
+
Keyboard: () => import_Keyboard.Keyboard,
|
|
58
|
+
KeyboardAvoidingView: () => import_KeyboardAvoidingView.KeyboardAvoidingView,
|
|
59
|
+
Linking: () => import_Linking.Linking,
|
|
60
|
+
LocaleProvider: () => import_react_native_web_internals.LocaleProvider,
|
|
61
|
+
LogBox: () => import_LogBox.LogBox,
|
|
62
|
+
Modal: () => import_Modal.Modal,
|
|
63
|
+
NativeEventEmitter: () => import_NativeEventEmitter.default,
|
|
64
|
+
NativeModules: () => import_NativeModules.NativeModules,
|
|
65
|
+
PanResponder: () => import_PanResponder.PanResponder,
|
|
66
|
+
PixelRatio: () => import_PixelRatio.PixelRatio,
|
|
67
|
+
Platform: () => import_react_native_web_internals.Platform,
|
|
68
|
+
Pressable: () => import_Pressable.Pressable,
|
|
69
|
+
RefreshControl: () => import_RefreshControl.RefreshControl,
|
|
70
|
+
RootTagContext: () => RootTagContext,
|
|
71
|
+
SafeAreaView: () => import_SafeAreaView.SafeAreaView,
|
|
72
|
+
ScrollView: () => import_ScrollView.ScrollView,
|
|
73
|
+
SectionList: () => import_UnimplementedView7.UnimplementedView,
|
|
74
|
+
Share: () => import_Share.Share,
|
|
75
|
+
StatusBar: () => import_StatusBar.StatusBar,
|
|
76
|
+
StyleSheet: () => import_react_native_web_internals.StyleSheet,
|
|
77
|
+
Switch: () => import_UnimplementedView2.UnimplementedView,
|
|
78
|
+
Text: () => import_Text.Text,
|
|
79
|
+
TextAncestorContext: () => import_react_native_web_internals.TextAncestorContext,
|
|
80
|
+
TextInput: () => import_TextInput.TextInput,
|
|
81
|
+
Touchable: () => import_TouchableOpacity.TouchableOpacity,
|
|
82
|
+
TouchableHighlight: () => import_UnimplementedView5.UnimplementedView,
|
|
83
|
+
TouchableNativeFeedback: () => import_UnimplementedView6.UnimplementedView,
|
|
84
|
+
TouchableOpacity: () => import_TouchableOpacity.TouchableOpacity,
|
|
85
|
+
TouchableWithoutFeedback: () => import_TouchableWithoutFeedback.TouchableWithoutFeedback,
|
|
86
|
+
UIManager: () => import_react_native_web_internals.UIManager,
|
|
87
|
+
Vibration: () => import_Vibration.Vibration,
|
|
88
|
+
View: () => import_View.View,
|
|
89
|
+
VirtualizedList: () => import_UnimplementedView3.UnimplementedView,
|
|
90
|
+
canUseDOM: () => import_react_native_web_internals.canUseDOM,
|
|
91
|
+
clickProps: () => import_react_native_web_internals.clickProps,
|
|
92
|
+
createDOMProps: () => import_react_native_web_internals.createDOMProps,
|
|
93
|
+
dismissKeyboard: () => import_react_native_web_internals.dismissKeyboard,
|
|
94
|
+
findNodeHandle: () => findNodeHandle,
|
|
95
|
+
flattenStyle: () => import_react_native_web_internals.flattenStyle,
|
|
96
|
+
isWebColor: () => import_react_native_web_internals.isWebColor,
|
|
97
|
+
mergeRefs: () => import_react_native_web_internals.mergeRefs,
|
|
98
|
+
normalizeColor: () => import_react_native_web_internals.normalizeColor,
|
|
99
|
+
processColor: () => import_react_native_web_internals.processColor,
|
|
100
|
+
processStyle: () => import_react_native_web_internals.processStyle,
|
|
101
|
+
render: () => import_render.render,
|
|
102
|
+
requireNativeComponent: () => requireNativeComponent,
|
|
103
|
+
unstable_batchedUpdates: () => import_react_dom.unstable_batchedUpdates,
|
|
104
|
+
unstable_createElement: () => import_createElement.createElement,
|
|
105
|
+
useColorScheme: () => import_useColorScheme.useColorScheme,
|
|
106
|
+
useEvent: () => import_react_native_web_internals.useEvent,
|
|
107
|
+
useHover: () => import_react_native_web_internals.useHover,
|
|
108
|
+
useLayoutEffect: () => import_react_native_web_internals.useLayoutEffect,
|
|
109
|
+
useLocaleContext: () => import_useLocaleContext.useLocaleContext,
|
|
110
|
+
useMergeRefs: () => import_react_native_web_internals.useMergeRefs,
|
|
111
|
+
usePlatformMethods: () => import_react_native_web_internals.usePlatformMethods,
|
|
112
|
+
useWindowDimensions: () => import_useWindowDimensions.useWindowDimensions
|
|
113
|
+
});
|
|
114
|
+
module.exports = __toCommonJS(without_animated_exports);
|
|
115
|
+
var import_react = require("react"),
|
|
116
|
+
import_createElement = require("./createElement/index.cjs"),
|
|
117
|
+
import_react_native_web_internals = require("@hanzogui/react-native-web-internals"),
|
|
118
|
+
import_render = require("./render/index.cjs"),
|
|
119
|
+
import_NativeModules = require("./NativeModules/index.cjs"),
|
|
120
|
+
import_NativeEventEmitter = __toESM(require("./vendor/react-native/EventEmitter/NativeEventEmitter.cjs"), 1),
|
|
121
|
+
import_AccessibilityInfo = require("./AccessibilityInfo/index.cjs"),
|
|
122
|
+
import_Alert = require("./Alert/index.cjs"),
|
|
123
|
+
import_Appearance = require("./Appearance/index.cjs"),
|
|
124
|
+
import_AppRegistry = require("./AppRegistry/index.cjs"),
|
|
125
|
+
import_AppState = require("./AppState/index.cjs"),
|
|
126
|
+
import_BackHandler = require("./BackHandler/index.cjs"),
|
|
127
|
+
import_Clipboard = require("./Clipboard/index.cjs"),
|
|
128
|
+
import_DeviceInfo = require("./DeviceInfo/index.cjs"),
|
|
129
|
+
import_DeviceEmitter = require("./DeviceEmitter.cjs"),
|
|
130
|
+
import_DeviceEmitter2 = require("./DeviceEmitter.cjs"),
|
|
131
|
+
import_Dimensions = require("./Dimensions/index.cjs"),
|
|
132
|
+
import_I18nManager = require("./I18nManager/index.cjs"),
|
|
133
|
+
import_Keyboard = require("./Keyboard/index.cjs"),
|
|
134
|
+
import_Linking = require("./Linking/index.cjs"),
|
|
135
|
+
import_PanResponder = require("./PanResponder/index.cjs"),
|
|
136
|
+
import_PixelRatio = require("./PixelRatio/index.cjs"),
|
|
137
|
+
import_Share = require("./Share/index.cjs"),
|
|
138
|
+
import_Vibration = require("./Vibration/index.cjs"),
|
|
139
|
+
import_UnimplementedView = require("./UnimplementedView.cjs"),
|
|
140
|
+
import_UnimplementedView2 = require("./UnimplementedView.cjs"),
|
|
141
|
+
import_UnimplementedView3 = require("./UnimplementedView.cjs"),
|
|
142
|
+
import_UnimplementedView4 = require("./UnimplementedView.cjs"),
|
|
143
|
+
import_UnimplementedView5 = require("./UnimplementedView.cjs"),
|
|
144
|
+
import_UnimplementedView6 = require("./UnimplementedView.cjs"),
|
|
145
|
+
import_UnimplementedView7 = require("./UnimplementedView.cjs"),
|
|
146
|
+
import_TouchableOpacity = require("./TouchableOpacity.cjs"),
|
|
147
|
+
import_TouchableWithoutFeedback = require("./TouchableWithoutFeedback.cjs"),
|
|
148
|
+
import_ActivityIndicator = require("./ActivityIndicator/index.cjs"),
|
|
149
|
+
import_Image = require("./Image/index.cjs"),
|
|
150
|
+
import_ImageBackground = require("./ImageBackground/index.cjs"),
|
|
151
|
+
import_KeyboardAvoidingView = require("./KeyboardAvoidingView/index.cjs"),
|
|
152
|
+
import_Modal = require("./Modal/index.cjs"),
|
|
153
|
+
import_Pressable = require("./Pressable/index.cjs"),
|
|
154
|
+
import_RefreshControl = require("./RefreshControl/index.cjs"),
|
|
155
|
+
import_SafeAreaView = require("./SafeAreaView/index.cjs"),
|
|
156
|
+
import_ScrollView = require("./ScrollView/index.cjs"),
|
|
157
|
+
import_StatusBar = require("./StatusBar/index.cjs"),
|
|
158
|
+
import_Text = require("./Text/index.cjs"),
|
|
159
|
+
import_TextInput = require("./TextInput/index.cjs"),
|
|
160
|
+
import_View = require("./View/index.cjs"),
|
|
161
|
+
import_LogBox = require("./LogBox/index.cjs"),
|
|
162
|
+
import_useColorScheme = require("./useColorScheme/index.cjs"),
|
|
163
|
+
import_useLocaleContext = require("./useLocaleContext/index.cjs"),
|
|
164
|
+
import_useWindowDimensions = require("./useWindowDimensions/index.cjs");
|
|
165
|
+
__reExport(without_animated_exports, require("@hanzogui/react-native-web-internals"), module.exports);
|
|
166
|
+
var import_View2 = require("./View/index.cjs"),
|
|
167
|
+
import_Text2 = require("./Text/index.cjs"),
|
|
168
|
+
import_Image2 = require("./Image/index.cjs"),
|
|
169
|
+
import_ScrollView2 = require("./ScrollView/index.cjs"),
|
|
170
|
+
import_react_dom = require("react-dom");
|
|
171
|
+
function requireNativeComponent(name) {
|
|
172
|
+
return function () {
|
|
173
|
+
return null;
|
|
174
|
+
};
|
|
175
|
+
}
|
|
176
|
+
class AnimatedValue {
|
|
177
|
+
_value;
|
|
178
|
+
_offset;
|
|
179
|
+
_listeners;
|
|
180
|
+
_nextId;
|
|
181
|
+
constructor(value = 0) {
|
|
182
|
+
this._value = value, this._offset = 0, this._listeners = {}, this._nextId = 0;
|
|
183
|
+
}
|
|
184
|
+
setValue(value) {
|
|
185
|
+
this._value = value, this._notifyListeners();
|
|
186
|
+
}
|
|
187
|
+
setOffset(offset) {
|
|
188
|
+
this._offset = offset;
|
|
189
|
+
}
|
|
190
|
+
flattenOffset() {
|
|
191
|
+
this._value += this._offset, this._offset = 0;
|
|
192
|
+
}
|
|
193
|
+
extractOffset() {
|
|
194
|
+
this._offset = this._value, this._value = 0;
|
|
195
|
+
}
|
|
196
|
+
addListener(callback) {
|
|
197
|
+
const id = String(this._nextId++);
|
|
198
|
+
return this._listeners[id] = callback, id;
|
|
199
|
+
}
|
|
200
|
+
removeListener(id) {
|
|
201
|
+
delete this._listeners[id];
|
|
202
|
+
}
|
|
203
|
+
removeAllListeners() {
|
|
204
|
+
this._listeners = {};
|
|
205
|
+
}
|
|
206
|
+
stopAnimation(callback) {
|
|
207
|
+
callback?.(this._value);
|
|
208
|
+
}
|
|
209
|
+
resetAnimation(callback) {
|
|
210
|
+
callback?.(this._value);
|
|
211
|
+
}
|
|
212
|
+
interpolate(config) {
|
|
213
|
+
return new AnimatedValue(this._value);
|
|
214
|
+
}
|
|
215
|
+
_notifyListeners() {
|
|
216
|
+
for (const key in this._listeners) this._listeners[key]({
|
|
217
|
+
value: this._value
|
|
218
|
+
});
|
|
219
|
+
}
|
|
220
|
+
__getValue() {
|
|
221
|
+
return this._value + this._offset;
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
class AnimatedValueXY {
|
|
225
|
+
x;
|
|
226
|
+
y;
|
|
227
|
+
constructor(value) {
|
|
228
|
+
this.x = new AnimatedValue(value?.x ?? 0), this.y = new AnimatedValue(value?.y ?? 0);
|
|
229
|
+
}
|
|
230
|
+
setValue(value) {
|
|
231
|
+
this.x.setValue(value.x), this.y.setValue(value.y);
|
|
232
|
+
}
|
|
233
|
+
setOffset(offset) {
|
|
234
|
+
this.x.setOffset(offset.x), this.y.setOffset(offset.y);
|
|
235
|
+
}
|
|
236
|
+
flattenOffset() {
|
|
237
|
+
this.x.flattenOffset(), this.y.flattenOffset();
|
|
238
|
+
}
|
|
239
|
+
stopAnimation(callback) {
|
|
240
|
+
callback?.({
|
|
241
|
+
x: this.x._value,
|
|
242
|
+
y: this.y._value
|
|
243
|
+
});
|
|
244
|
+
}
|
|
245
|
+
addListener(callback) {
|
|
246
|
+
const xId = this.x.addListener(() => {
|
|
247
|
+
callback({
|
|
248
|
+
x: this.x._value,
|
|
249
|
+
y: this.y._value
|
|
250
|
+
});
|
|
251
|
+
});
|
|
252
|
+
return this.y.addListener(() => {
|
|
253
|
+
callback({
|
|
254
|
+
x: this.x._value,
|
|
255
|
+
y: this.y._value
|
|
256
|
+
});
|
|
257
|
+
}), xId;
|
|
258
|
+
}
|
|
259
|
+
removeAllListeners() {
|
|
260
|
+
this.x.removeAllListeners(), this.y.removeAllListeners();
|
|
261
|
+
}
|
|
262
|
+
getLayout() {
|
|
263
|
+
return {
|
|
264
|
+
left: this.x,
|
|
265
|
+
top: this.y
|
|
266
|
+
};
|
|
267
|
+
}
|
|
268
|
+
getTranslateTransform() {
|
|
269
|
+
return [{
|
|
270
|
+
translateX: this.x
|
|
271
|
+
}, {
|
|
272
|
+
translateY: this.y
|
|
273
|
+
}];
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
const noopAnim = {
|
|
277
|
+
start: cb => cb?.({
|
|
278
|
+
finished: !0
|
|
279
|
+
}),
|
|
280
|
+
stop: () => {},
|
|
281
|
+
reset: () => {}
|
|
282
|
+
},
|
|
283
|
+
Animated = {
|
|
284
|
+
View: import_View2.View,
|
|
285
|
+
Text: import_Text2.Text,
|
|
286
|
+
Image: import_Image2.Image,
|
|
287
|
+
ScrollView: import_ScrollView2.ScrollView,
|
|
288
|
+
FlatList: import_View2.View,
|
|
289
|
+
SectionList: import_View2.View,
|
|
290
|
+
Value: AnimatedValue,
|
|
291
|
+
ValueXY: AnimatedValueXY,
|
|
292
|
+
timing: () => noopAnim,
|
|
293
|
+
spring: () => noopAnim,
|
|
294
|
+
decay: () => noopAnim,
|
|
295
|
+
sequence: () => noopAnim,
|
|
296
|
+
parallel: () => noopAnim,
|
|
297
|
+
stagger: () => noopAnim,
|
|
298
|
+
loop: () => noopAnim,
|
|
299
|
+
event: () => () => {},
|
|
300
|
+
add: (a, b) => new AnimatedValue(0),
|
|
301
|
+
subtract: (a, b) => new AnimatedValue(0),
|
|
302
|
+
multiply: (a, b) => new AnimatedValue(0),
|
|
303
|
+
divide: (a, b) => new AnimatedValue(0),
|
|
304
|
+
modulo: (a, b) => new AnimatedValue(0),
|
|
305
|
+
diffClamp: (a, min, max) => new AnimatedValue(0),
|
|
306
|
+
delay: () => noopAnim,
|
|
307
|
+
createAnimatedComponent: c => c
|
|
308
|
+
},
|
|
309
|
+
Easing = {
|
|
310
|
+
step0: () => 0,
|
|
311
|
+
step1: () => 1,
|
|
312
|
+
linear: t => t,
|
|
313
|
+
ease: t => t,
|
|
314
|
+
quad: t => t * t,
|
|
315
|
+
cubic: t => t * t * t,
|
|
316
|
+
poly: () => t => t,
|
|
317
|
+
sin: t => t,
|
|
318
|
+
circle: t => t,
|
|
319
|
+
exp: t => t,
|
|
320
|
+
elastic: () => t => t,
|
|
321
|
+
back: () => t => t,
|
|
322
|
+
bounce: t => t,
|
|
323
|
+
bezier: () => t => t,
|
|
324
|
+
in: fn => fn,
|
|
325
|
+
out: fn => fn,
|
|
326
|
+
inOut: fn => fn
|
|
327
|
+
},
|
|
328
|
+
findNodeHandle = component => {
|
|
329
|
+
throw new Error("not supported - use ref instead");
|
|
330
|
+
},
|
|
331
|
+
RootTagContext = (0, import_react.createContext)(null);
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { canUseDOM } from "@hanzogui/react-native-web-internals";
|
|
2
|
+
function isScreenReaderEnabled() {
|
|
3
|
+
return new Promise((resolve, reject) => {
|
|
4
|
+
resolve(!0);
|
|
5
|
+
});
|
|
6
|
+
}
|
|
7
|
+
const prefersReducedMotionMedia = canUseDOM && typeof window.matchMedia == "function" ? window.matchMedia("(prefers-reduced-motion: reduce)") : null;
|
|
8
|
+
function isReduceMotionEnabled() {
|
|
9
|
+
return new Promise((resolve, reject) => {
|
|
10
|
+
resolve(prefersReducedMotionMedia ? prefersReducedMotionMedia.matches : !0);
|
|
11
|
+
});
|
|
12
|
+
}
|
|
13
|
+
function addChangeListener(fn) {
|
|
14
|
+
prefersReducedMotionMedia != null && (prefersReducedMotionMedia.addEventListener != null ? prefersReducedMotionMedia.addEventListener("change", fn) : prefersReducedMotionMedia.addListener(fn));
|
|
15
|
+
}
|
|
16
|
+
function removeChangeListener(fn) {
|
|
17
|
+
prefersReducedMotionMedia != null && (prefersReducedMotionMedia.removeEventListener != null ? prefersReducedMotionMedia.removeEventListener("change", fn) : prefersReducedMotionMedia.removeListener(fn));
|
|
18
|
+
}
|
|
19
|
+
const handlers = {},
|
|
20
|
+
AccessibilityInfo = {
|
|
21
|
+
/**
|
|
22
|
+
* Query whether a screen reader is currently enabled.
|
|
23
|
+
*
|
|
24
|
+
* Returns a promise which resolves to a boolean.
|
|
25
|
+
* The result is `true` when a screen reader is enabled and `false` otherwise.
|
|
26
|
+
*/
|
|
27
|
+
isScreenReaderEnabled,
|
|
28
|
+
/**
|
|
29
|
+
* Query whether the user prefers reduced motion.
|
|
30
|
+
*
|
|
31
|
+
* Returns a promise which resolves to a boolean.
|
|
32
|
+
* The result is `true` when a screen reader is enabled and `false` otherwise.
|
|
33
|
+
*/
|
|
34
|
+
isReduceMotionEnabled,
|
|
35
|
+
/**
|
|
36
|
+
* Deprecated
|
|
37
|
+
*/
|
|
38
|
+
fetch: isScreenReaderEnabled,
|
|
39
|
+
/**
|
|
40
|
+
* Add an event handler. Supported events: reduceMotionChanged
|
|
41
|
+
*/
|
|
42
|
+
addEventListener: function (eventName, handler) {
|
|
43
|
+
if (eventName === "reduceMotionChanged") {
|
|
44
|
+
if (!prefersReducedMotionMedia) return;
|
|
45
|
+
const listener = event => {
|
|
46
|
+
handler(event.matches);
|
|
47
|
+
};
|
|
48
|
+
addChangeListener(listener), handlers[handler] = listener;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
remove: () => AccessibilityInfo.removeEventListener(eventName, handler)
|
|
52
|
+
};
|
|
53
|
+
},
|
|
54
|
+
/**
|
|
55
|
+
* Set accessibility focus to a react component.
|
|
56
|
+
*/
|
|
57
|
+
setAccessibilityFocus: function (reactTag) {},
|
|
58
|
+
/**
|
|
59
|
+
* Post a string to be announced by the screen reader.
|
|
60
|
+
*/
|
|
61
|
+
announceForAccessibility: function (announcement) {},
|
|
62
|
+
/**
|
|
63
|
+
* Remove an event handler.
|
|
64
|
+
*/
|
|
65
|
+
removeEventListener: function (eventName, handler) {
|
|
66
|
+
if (eventName === "reduceMotionChanged") {
|
|
67
|
+
const listener = handlers[handler];
|
|
68
|
+
if (!listener || !prefersReducedMotionMedia) return;
|
|
69
|
+
removeChangeListener(listener);
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
};
|
|
73
|
+
export { AccessibilityInfo };
|
|
74
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["canUseDOM","isScreenReaderEnabled","Promise","resolve","reject","prefersReducedMotionMedia","window","matchMedia","isReduceMotionEnabled","matches","addChangeListener","fn","addEventListener","addListener","removeChangeListener","removeEventListener","removeListener","handlers","AccessibilityInfo","fetch","eventName","handler","listener","event","remove","setAccessibilityFocus","reactTag","announceForAccessibility","announcement"],"sources":["../../../src/AccessibilityInfo/index.tsx"],"sourcesContent":[null],"mappings":"AAQA,SAASA,SAAA,QAAiB;AAE1B,SAASC,sBAAA,EAA0C;EACjD,OAAO,IAAIC,OAAA,CAAQ,CAACC,OAAA,EAASC,MAAA,KAAW;IACtCD,OAAA,CAAQ,EAAI;EACd,CAAC;AACH;AAEA,MAAME,yBAAA,GACJL,SAAA,IAAa,OAAOM,MAAA,CAAOC,UAAA,IAAe,aACtCD,MAAA,CAAOC,UAAA,CAAW,kCAAkC,IACpD;AAEN,SAASC,sBAAA,EAA0C;EACjD,OAAO,IAAIN,OAAA,CAAQ,CAACC,OAAA,EAASC,MAAA,KAAW;IACtCD,OAAA,CAAQE,yBAAA,GAA4BA,yBAAA,CAA0BI,OAAA,GAAU,EAAI;EAC9E,CAAC;AACH;AAEA,SAASC,kBAAkBC,EAAA,EAAI;EACzBN,yBAAA,IAA6B,SAC/BA,yBAAA,CAA0BO,gBAAA,IAAoB,OAC1CP,yBAAA,CAA0BO,gBAAA,CAAiB,UAAUD,EAAE,IACvDN,yBAAA,CAA0BQ,WAAA,CAAYF,EAAE;AAEhD;AAEA,SAASG,qBAAqBH,EAAA,EAAI;EAC5BN,yBAAA,IAA6B,SAC/BA,yBAAA,CAA0BU,mBAAA,IAAuB,OAC7CV,yBAAA,CAA0BU,mBAAA,CAAoB,UAAUJ,EAAE,IAC1DN,yBAAA,CAA0BW,cAAA,CAAeL,EAAE;AAEnD;AAEA,MAAMM,QAAA,GAAW,CAAC;EAELC,iBAAA,GAAoB;IAAA;AAAA;AAAA;AAAA;AAAA;AAAA;IAO/BjB,qBAAA;IAAA;AAAA;AAAA;AAAA;AAAA;AAAA;IAQAO,qBAAA;IAAA;AAAA;AAAA;IAKAW,KAAA,EAAOlB,qBAAA;IAAA;AAAA;AAAA;IAKPW,gBAAA,EAAkB,SAAAA,CAAUQ,SAAA,EAAmBC,OAAA,EAAwB;MACrE,IAAID,SAAA,KAAc,uBAAuB;QACvC,IAAI,CAACf,yBAAA,EACH;QAEF,MAAMiB,QAAA,GAAYC,KAAA,IAAU;UAC1BF,OAAA,CAAQE,KAAA,CAAMd,OAAO;QACvB;QACAC,iBAAA,CAAkBY,QAAQ,GAE1BL,QAAA,CAASI,OAAO,IAAIC,QAAA;MACtB;MAEA,OAAO;QACLE,MAAA,EAAQA,CAAA,KAAMN,iBAAA,CAAkBH,mBAAA,CAAoBK,SAAA,EAAWC,OAAO;MACxE;IACF;IAAA;AAAA;AAAA;IAKAI,qBAAA,EAAuB,SAAAA,CAAUC,QAAA,EAAwB,CAAC;IAAA;AAAA;AAAA;IAK1DC,wBAAA,EAA0B,SAAAA,CAAUC,YAAA,EAA4B,CAAC;IAAA;AAAA;AAAA;IAKjEb,mBAAA,EAAqB,SAAAA,CAAUK,SAAA,EAAmBC,OAAA,EAAyB;MACzE,IAAID,SAAA,KAAc,uBAAuB;QAEvC,MAAME,QAAA,GAAWL,QAAA,CAASI,OAAO;QACjC,IAAI,CAACC,QAAA,IAAY,CAACjB,yBAAA,EAChB;QAEFS,oBAAA,CAAqBQ,QAAQ;MAC/B;IAEF;EACF","ignoreList":[]}
|
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
import { render } from "@testing-library/react";
|
|
2
|
+
import { createEventTarget } from "dom-event-testing-library";
|
|
3
|
+
import React from "react";
|
|
4
|
+
import { act } from "react-dom/test-utils";
|
|
5
|
+
import ActivityIndicator from "../index.mjs";
|
|
6
|
+
import { jsx } from "react/jsx-runtime";
|
|
7
|
+
describe("components/ActivityIndicator", () => {
|
|
8
|
+
describe('prop "accessibilityLabel"', () => {
|
|
9
|
+
test("value is set", () => {
|
|
10
|
+
const {
|
|
11
|
+
container
|
|
12
|
+
} = render(/* @__PURE__ */jsx(ActivityIndicator, {
|
|
13
|
+
accessibilityLabel: "accessibility label"
|
|
14
|
+
}));
|
|
15
|
+
expect(container.firstChild).toMatchSnapshot();
|
|
16
|
+
});
|
|
17
|
+
}), describe('prop "accessibilityLiveRegion"', () => {
|
|
18
|
+
test("value is set", () => {
|
|
19
|
+
const {
|
|
20
|
+
container
|
|
21
|
+
} = render(/* @__PURE__ */jsx(ActivityIndicator, {
|
|
22
|
+
accessibilityLiveRegion: "polite"
|
|
23
|
+
}));
|
|
24
|
+
expect(container.firstChild).toMatchSnapshot();
|
|
25
|
+
});
|
|
26
|
+
}), describe('prop "animating"', () => {
|
|
27
|
+
test('is "true"', () => {
|
|
28
|
+
const {
|
|
29
|
+
container
|
|
30
|
+
} = render(/* @__PURE__ */jsx(ActivityIndicator, {
|
|
31
|
+
animating: !0
|
|
32
|
+
}));
|
|
33
|
+
expect(container.firstChild).toMatchSnapshot();
|
|
34
|
+
}), test('is "false"', () => {
|
|
35
|
+
const {
|
|
36
|
+
container
|
|
37
|
+
} = render(/* @__PURE__ */jsx(ActivityIndicator, {
|
|
38
|
+
animating: !1
|
|
39
|
+
}));
|
|
40
|
+
expect(container.firstChild).toMatchSnapshot();
|
|
41
|
+
});
|
|
42
|
+
}), test('prop "color"', () => {
|
|
43
|
+
const {
|
|
44
|
+
container
|
|
45
|
+
} = render(/* @__PURE__ */jsx(ActivityIndicator, {
|
|
46
|
+
color: "red"
|
|
47
|
+
})),
|
|
48
|
+
svg = container.firstChild.querySelector("svg");
|
|
49
|
+
expect(svg).toMatchSnapshot();
|
|
50
|
+
}), describe('prop "dataSet"', () => {
|
|
51
|
+
test("value is set", () => {
|
|
52
|
+
const {
|
|
53
|
+
container
|
|
54
|
+
} = render(/* @__PURE__ */jsx(ActivityIndicator, {
|
|
55
|
+
dataSet: {
|
|
56
|
+
one: "one",
|
|
57
|
+
two: "two"
|
|
58
|
+
}
|
|
59
|
+
}));
|
|
60
|
+
expect(container.firstChild).toMatchSnapshot();
|
|
61
|
+
});
|
|
62
|
+
}), describe('prop "hidesWhenStopped"', () => {
|
|
63
|
+
test('is "true"', () => {
|
|
64
|
+
const {
|
|
65
|
+
container
|
|
66
|
+
} = render(/* @__PURE__ */jsx(ActivityIndicator, {
|
|
67
|
+
animating: !1,
|
|
68
|
+
hidesWhenStopped: !0
|
|
69
|
+
}));
|
|
70
|
+
expect(container.firstChild).toMatchSnapshot();
|
|
71
|
+
}), test('is "false"', () => {
|
|
72
|
+
const {
|
|
73
|
+
container
|
|
74
|
+
} = render(/* @__PURE__ */jsx(ActivityIndicator, {
|
|
75
|
+
animating: !1,
|
|
76
|
+
hidesWhenStopped: !1
|
|
77
|
+
}));
|
|
78
|
+
expect(container.firstChild).toMatchSnapshot();
|
|
79
|
+
});
|
|
80
|
+
}), describe('prop "nativeID"', () => {
|
|
81
|
+
test("value is set", () => {
|
|
82
|
+
const {
|
|
83
|
+
container
|
|
84
|
+
} = render(/* @__PURE__ */jsx(ActivityIndicator, {
|
|
85
|
+
nativeID: "123"
|
|
86
|
+
}));
|
|
87
|
+
expect(container.firstChild).toMatchSnapshot();
|
|
88
|
+
});
|
|
89
|
+
}), describe('prop "onBlur"', () => {
|
|
90
|
+
test("is called", () => {
|
|
91
|
+
const onBlur = jest.fn(),
|
|
92
|
+
ref = React.createRef();
|
|
93
|
+
act(() => {
|
|
94
|
+
render(/* @__PURE__ */jsx(ActivityIndicator, {
|
|
95
|
+
onBlur,
|
|
96
|
+
ref
|
|
97
|
+
}));
|
|
98
|
+
});
|
|
99
|
+
const target = createEventTarget(ref.current),
|
|
100
|
+
body = createEventTarget(document.body);
|
|
101
|
+
act(() => {
|
|
102
|
+
target.focus(), body.focus({
|
|
103
|
+
relatedTarget: target.node
|
|
104
|
+
});
|
|
105
|
+
}), expect(onBlur).toBeCalled();
|
|
106
|
+
});
|
|
107
|
+
}), describe('prop "onFocus"', () => {
|
|
108
|
+
test("is called", () => {
|
|
109
|
+
const onFocus = jest.fn(),
|
|
110
|
+
ref = React.createRef();
|
|
111
|
+
act(() => {
|
|
112
|
+
render(/* @__PURE__ */jsx(ActivityIndicator, {
|
|
113
|
+
onFocus,
|
|
114
|
+
ref
|
|
115
|
+
}));
|
|
116
|
+
});
|
|
117
|
+
const target = createEventTarget(ref.current);
|
|
118
|
+
act(() => {
|
|
119
|
+
target.focus();
|
|
120
|
+
}), expect(onFocus).toBeCalled();
|
|
121
|
+
});
|
|
122
|
+
}), describe('prop "ref"', () => {
|
|
123
|
+
test("value is set", () => {
|
|
124
|
+
const ref = jest.fn();
|
|
125
|
+
render(/* @__PURE__ */jsx(ActivityIndicator, {
|
|
126
|
+
ref
|
|
127
|
+
})), expect(ref).toBeCalled();
|
|
128
|
+
});
|
|
129
|
+
}), describe('prop "size"', () => {
|
|
130
|
+
test('is "large"', () => {
|
|
131
|
+
const {
|
|
132
|
+
container
|
|
133
|
+
} = render(/* @__PURE__ */jsx(ActivityIndicator, {
|
|
134
|
+
size: "large"
|
|
135
|
+
}));
|
|
136
|
+
expect(container.firstChild).toMatchSnapshot();
|
|
137
|
+
}), test("is a number", () => {
|
|
138
|
+
const {
|
|
139
|
+
container
|
|
140
|
+
} = render(/* @__PURE__ */jsx(ActivityIndicator, {
|
|
141
|
+
size: 30
|
|
142
|
+
}));
|
|
143
|
+
expect(container.firstChild).toMatchSnapshot();
|
|
144
|
+
});
|
|
145
|
+
}), describe('prop "style"', () => {
|
|
146
|
+
test("value is set", () => {
|
|
147
|
+
const {
|
|
148
|
+
container
|
|
149
|
+
} = render(/* @__PURE__ */jsx(ActivityIndicator, {
|
|
150
|
+
style: {
|
|
151
|
+
borderWidth: 5
|
|
152
|
+
}
|
|
153
|
+
}));
|
|
154
|
+
expect(container.firstChild).toMatchSnapshot();
|
|
155
|
+
});
|
|
156
|
+
}), describe('prop "testID"', () => {
|
|
157
|
+
test("value is set", () => {
|
|
158
|
+
const {
|
|
159
|
+
container
|
|
160
|
+
} = render(/* @__PURE__ */jsx(ActivityIndicator, {
|
|
161
|
+
testID: "123"
|
|
162
|
+
}));
|
|
163
|
+
expect(container.firstChild).toMatchSnapshot();
|
|
164
|
+
});
|
|
165
|
+
});
|
|
166
|
+
});
|
|
167
|
+
//# sourceMappingURL=index-test.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["render","createEventTarget","React","act","ActivityIndicator","jsx","describe","test","container","accessibilityLabel","expect","firstChild","toMatchSnapshot","accessibilityLiveRegion","animating","color","svg","querySelector","dataSet","one","two","hidesWhenStopped","nativeID","onBlur","jest","fn","ref","createRef","target","current","body","document","focus","relatedTarget","node","toBeCalled","onFocus","size","style","borderWidth","testID"],"sources":["../../../../src/ActivityIndicator/__tests__/index-test.tsx"],"sourcesContent":[null],"mappings":"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","ignoreList":[]}
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { StyleSheet } from "@hanzogui/react-native-web-internals";
|
|
3
|
+
import { View } from "../View/index.mjs";
|
|
4
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
|
+
const createSvgCircle = style => /* @__PURE__ */jsx("circle", {
|
|
6
|
+
cx: "16",
|
|
7
|
+
cy: "16",
|
|
8
|
+
fill: "none",
|
|
9
|
+
r: "14",
|
|
10
|
+
strokeWidth: "4",
|
|
11
|
+
style
|
|
12
|
+
}),
|
|
13
|
+
ActivityIndicator = React.forwardRef((props, forwardedRef) => {
|
|
14
|
+
const {
|
|
15
|
+
animating = !0,
|
|
16
|
+
color = "#1976D2",
|
|
17
|
+
hidesWhenStopped = !0,
|
|
18
|
+
size = "small",
|
|
19
|
+
style,
|
|
20
|
+
...other
|
|
21
|
+
} = props,
|
|
22
|
+
svg = /* @__PURE__ */jsxs("svg", {
|
|
23
|
+
height: "100%",
|
|
24
|
+
viewBox: "0 0 32 32",
|
|
25
|
+
width: "100%",
|
|
26
|
+
children: [createSvgCircle({
|
|
27
|
+
stroke: color,
|
|
28
|
+
opacity: 0.2
|
|
29
|
+
}), createSvgCircle({
|
|
30
|
+
stroke: color,
|
|
31
|
+
strokeDasharray: 80,
|
|
32
|
+
strokeDashoffset: 60
|
|
33
|
+
})]
|
|
34
|
+
});
|
|
35
|
+
return /* @__PURE__ */jsx(View, {
|
|
36
|
+
...other,
|
|
37
|
+
accessibilityRole: "progressbar",
|
|
38
|
+
accessibilityValueMax: 1,
|
|
39
|
+
accessibilityValueMin: 0,
|
|
40
|
+
ref: forwardedRef,
|
|
41
|
+
style: [styles.container, style],
|
|
42
|
+
children: /* @__PURE__ */jsx(View, {
|
|
43
|
+
children: svg,
|
|
44
|
+
style: [typeof size == "number" ? {
|
|
45
|
+
height: size,
|
|
46
|
+
width: size
|
|
47
|
+
} : indicatorSizes[size], styles.animation, !animating && styles.animationPause, !animating && hidesWhenStopped && styles.hidesWhenStopped]
|
|
48
|
+
})
|
|
49
|
+
});
|
|
50
|
+
});
|
|
51
|
+
ActivityIndicator.displayName = "ActivityIndicator";
|
|
52
|
+
const styles = StyleSheet.create({
|
|
53
|
+
container: {
|
|
54
|
+
alignItems: "center",
|
|
55
|
+
justifyContent: "center"
|
|
56
|
+
},
|
|
57
|
+
hidesWhenStopped: {
|
|
58
|
+
visibility: "hidden"
|
|
59
|
+
},
|
|
60
|
+
animation: {
|
|
61
|
+
animationDuration: "0.75s",
|
|
62
|
+
animationKeyframes: [{
|
|
63
|
+
"0%": {
|
|
64
|
+
transform: [{
|
|
65
|
+
rotate: "0deg"
|
|
66
|
+
}]
|
|
67
|
+
},
|
|
68
|
+
"100%": {
|
|
69
|
+
transform: [{
|
|
70
|
+
rotate: "360deg"
|
|
71
|
+
}]
|
|
72
|
+
}
|
|
73
|
+
}],
|
|
74
|
+
animationTimingFunction: "linear",
|
|
75
|
+
animationIterationCount: "infinite"
|
|
76
|
+
},
|
|
77
|
+
animationPause: {
|
|
78
|
+
animationPlayState: "paused"
|
|
79
|
+
}
|
|
80
|
+
}),
|
|
81
|
+
indicatorSizes = StyleSheet.create({
|
|
82
|
+
small: {
|
|
83
|
+
width: 20,
|
|
84
|
+
height: 20
|
|
85
|
+
},
|
|
86
|
+
large: {
|
|
87
|
+
width: 36,
|
|
88
|
+
height: 36
|
|
89
|
+
}
|
|
90
|
+
});
|
|
91
|
+
var ActivityIndicator_default = ActivityIndicator;
|
|
92
|
+
export { ActivityIndicator, ActivityIndicator_default as default };
|
|
93
|
+
//# sourceMappingURL=index.mjs.map
|