@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,92 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) Nicolas Gallagher.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*
|
|
7
|
+
* @noflow
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
import {
|
|
11
|
+
AccessibilityUtil,
|
|
12
|
+
LocaleProvider,
|
|
13
|
+
createDOMProps,
|
|
14
|
+
stylesFromProps,
|
|
15
|
+
} from '@hanzogui/react-native-web-internals'
|
|
16
|
+
import {
|
|
17
|
+
type StyleObject,
|
|
18
|
+
getStyleTags,
|
|
19
|
+
insertStyleRules,
|
|
20
|
+
useDidFinishSSR,
|
|
21
|
+
} from '@hanzogui/web'
|
|
22
|
+
import React, { useInsertionEffect, useMemo } from 'react'
|
|
23
|
+
|
|
24
|
+
// SSR safe create element
|
|
25
|
+
export const useCreateElement = (component, props, options?) => {
|
|
26
|
+
const { element, styles } = createElementAndStyles(component, props, options)
|
|
27
|
+
|
|
28
|
+
const isHydrated = useDidFinishSSR()
|
|
29
|
+
|
|
30
|
+
// only for ssr
|
|
31
|
+
const styleTags = useMemo(() => {
|
|
32
|
+
return isHydrated || !styles ? null : getStyleTags(styles)
|
|
33
|
+
}, [
|
|
34
|
+
// never changes
|
|
35
|
+
])
|
|
36
|
+
|
|
37
|
+
// after that we insert
|
|
38
|
+
useInsertionEffect(() => {
|
|
39
|
+
if (!styles) return
|
|
40
|
+
const styleObj: Record<string, StyleObject> = {}
|
|
41
|
+
for (const style of styles) {
|
|
42
|
+
styleObj[style[0]] = style
|
|
43
|
+
}
|
|
44
|
+
insertStyleRules(styleObj)
|
|
45
|
+
}, [styles])
|
|
46
|
+
|
|
47
|
+
return (
|
|
48
|
+
<>
|
|
49
|
+
{element}
|
|
50
|
+
{styleTags}
|
|
51
|
+
</>
|
|
52
|
+
)
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export const createElement = (component, props, options?) => {
|
|
56
|
+
const { element, styles } = createElementAndStyles(component, props, options)
|
|
57
|
+
|
|
58
|
+
return (
|
|
59
|
+
<>
|
|
60
|
+
{element}
|
|
61
|
+
{styles ? getStyleTags(styles) : null}
|
|
62
|
+
</>
|
|
63
|
+
)
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
const createElementAndStyles = (component, props, options?) => {
|
|
67
|
+
// Use equivalent platform elements where possible.
|
|
68
|
+
let accessibilityComponent
|
|
69
|
+
if (component && component.constructor === String) {
|
|
70
|
+
accessibilityComponent = AccessibilityUtil.propsToAccessibilityComponent(props)
|
|
71
|
+
}
|
|
72
|
+
const Component = accessibilityComponent || component
|
|
73
|
+
const domProps = createDOMProps(Component, props, options)
|
|
74
|
+
|
|
75
|
+
const styles = stylesFromProps.get(domProps)
|
|
76
|
+
|
|
77
|
+
let element = React.createElement(Component, domProps)
|
|
78
|
+
|
|
79
|
+
// Update locale context if element's writing direction prop changes
|
|
80
|
+
const elementWithLocaleProvider = domProps.dir ? (
|
|
81
|
+
<LocaleProvider direction={domProps.dir} locale={domProps.lang}>
|
|
82
|
+
{element}
|
|
83
|
+
</LocaleProvider>
|
|
84
|
+
) : (
|
|
85
|
+
element
|
|
86
|
+
)
|
|
87
|
+
|
|
88
|
+
return {
|
|
89
|
+
element: elementWithLocaleProvider,
|
|
90
|
+
styles,
|
|
91
|
+
}
|
|
92
|
+
}
|
package/src/index.tsx
ADDED
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
import { createContext } from 'react'
|
|
2
|
+
|
|
3
|
+
export {
|
|
4
|
+
AccessibilityUtil,
|
|
5
|
+
canUseDOM,
|
|
6
|
+
clickProps,
|
|
7
|
+
createDOMProps,
|
|
8
|
+
dismissKeyboard,
|
|
9
|
+
flattenStyle,
|
|
10
|
+
ImageLoader,
|
|
11
|
+
InteractionManager,
|
|
12
|
+
isWebColor,
|
|
13
|
+
LocaleProvider,
|
|
14
|
+
mergeRefs,
|
|
15
|
+
normalizeColor,
|
|
16
|
+
Platform,
|
|
17
|
+
processColor,
|
|
18
|
+
processStyle,
|
|
19
|
+
StyleSheet,
|
|
20
|
+
TextAncestorContext,
|
|
21
|
+
UIManager,
|
|
22
|
+
useEvent,
|
|
23
|
+
useHover,
|
|
24
|
+
useLayoutEffect,
|
|
25
|
+
useMergeRefs,
|
|
26
|
+
usePlatformMethods,
|
|
27
|
+
} from '@hanzogui/react-native-web-internals'
|
|
28
|
+
export { createElement as unstable_createElement } from './createElement/index'
|
|
29
|
+
export { NativeModules } from './NativeModules/index'
|
|
30
|
+
export { render } from './render/index'
|
|
31
|
+
|
|
32
|
+
// animated - keep default as these are vendor files
|
|
33
|
+
export { default as Animated } from './vendor/react-native/Animated/Animated'
|
|
34
|
+
export { default as Easing } from './vendor/react-native/Animated/Easing'
|
|
35
|
+
|
|
36
|
+
// react-native - keep default as these are vendor files
|
|
37
|
+
export { default as NativeEventEmitter } from './vendor/react-native/EventEmitter/NativeEventEmitter'
|
|
38
|
+
|
|
39
|
+
// APIs
|
|
40
|
+
export { AccessibilityInfo } from './AccessibilityInfo/index'
|
|
41
|
+
export { Alert } from './Alert/index'
|
|
42
|
+
export { Appearance } from './Appearance/index'
|
|
43
|
+
export { AppRegistry } from './AppRegistry/index'
|
|
44
|
+
export { AppState } from './AppState/index'
|
|
45
|
+
export { BackHandler } from './BackHandler/index'
|
|
46
|
+
export { Clipboard } from './Clipboard/index'
|
|
47
|
+
export { DeviceEmitter, DeviceEmitter as DeviceEventEmitter } from './DeviceEmitter'
|
|
48
|
+
export { DeviceInfo } from './DeviceInfo/index'
|
|
49
|
+
export { Dimensions } from './Dimensions/index'
|
|
50
|
+
export { I18nManager } from './I18nManager/index'
|
|
51
|
+
export { Keyboard } from './Keyboard/index'
|
|
52
|
+
|
|
53
|
+
export { Linking } from './Linking/index'
|
|
54
|
+
export { PanResponder } from './PanResponder/index'
|
|
55
|
+
export { PixelRatio } from './PixelRatio/index'
|
|
56
|
+
export { Share } from './Share/index'
|
|
57
|
+
export { Vibration } from './Vibration/index'
|
|
58
|
+
|
|
59
|
+
// implemented components
|
|
60
|
+
export { FlatList } from './FlatList'
|
|
61
|
+
export { SectionList } from './SectionList'
|
|
62
|
+
export { VirtualizedList } from './VirtualizedList'
|
|
63
|
+
export { TouchableNativeFeedback } from './TouchableNativeFeedback'
|
|
64
|
+
|
|
65
|
+
// unimplemented
|
|
66
|
+
export {
|
|
67
|
+
UnimplementedView as DrawerLayoutAndroid,
|
|
68
|
+
UnimplementedView as Switch,
|
|
69
|
+
UnimplementedView as TouchableHighlight,
|
|
70
|
+
} from './UnimplementedView'
|
|
71
|
+
|
|
72
|
+
export { TouchableOpacity as Touchable, TouchableOpacity } from './TouchableOpacity'
|
|
73
|
+
export { TouchableWithoutFeedback } from './TouchableWithoutFeedback'
|
|
74
|
+
|
|
75
|
+
// components
|
|
76
|
+
export { ActivityIndicator } from './ActivityIndicator/index'
|
|
77
|
+
export { Image } from './Image/index'
|
|
78
|
+
export { ImageBackground } from './ImageBackground/index'
|
|
79
|
+
export { KeyboardAvoidingView } from './KeyboardAvoidingView/index'
|
|
80
|
+
export { LogBox } from './LogBox/index'
|
|
81
|
+
export { Modal } from './Modal/index'
|
|
82
|
+
export { Pressable } from './Pressable/index'
|
|
83
|
+
export { RefreshControl } from './RefreshControl/index'
|
|
84
|
+
export { SafeAreaView } from './SafeAreaView/index'
|
|
85
|
+
export { ScrollView } from './ScrollView/index'
|
|
86
|
+
export type { ScrollViewRef, ScrollViewMethods } from './ScrollView/index'
|
|
87
|
+
export { StatusBar } from './StatusBar/index'
|
|
88
|
+
export { Text } from './Text/index'
|
|
89
|
+
export { TextInput } from './TextInput/index'
|
|
90
|
+
export { View } from './View/index'
|
|
91
|
+
|
|
92
|
+
// hooks
|
|
93
|
+
export { useColorScheme } from './useColorScheme/index'
|
|
94
|
+
export { useLocaleContext } from './useLocaleContext/index'
|
|
95
|
+
export { useWindowDimensions } from './useWindowDimensions/index'
|
|
96
|
+
|
|
97
|
+
export function requireNativeComponent(name: string) {
|
|
98
|
+
return function FakeComponent() {
|
|
99
|
+
return null
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
export const findNodeHandle = (component: any) => {
|
|
104
|
+
throw new Error('not supported - use ref instead')
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
// compat with rn:
|
|
108
|
+
|
|
109
|
+
export { unstable_batchedUpdates } from 'react-dom'
|
|
110
|
+
|
|
111
|
+
export const RootTagContext = createContext(null)
|
|
@@ -0,0 +1,32 @@
|
|
|
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
|
+
|
|
8
|
+
const _requestIdleCallback = function (cb: Function, options?: any) {
|
|
9
|
+
return setTimeout(() => {
|
|
10
|
+
const start = Date.now()
|
|
11
|
+
cb({
|
|
12
|
+
didTimeout: false,
|
|
13
|
+
timeRemaining() {
|
|
14
|
+
return Math.max(0, 50 - (Date.now() - start))
|
|
15
|
+
},
|
|
16
|
+
})
|
|
17
|
+
}, 1)
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
const _cancelIdleCallback = function (id: any) {
|
|
21
|
+
clearTimeout(id)
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
const isSupported =
|
|
25
|
+
typeof window !== 'undefined' && typeof window.requestIdleCallback !== 'undefined'
|
|
26
|
+
|
|
27
|
+
export const requestIdleCallback: (cb: any, options?: any) => any = isSupported
|
|
28
|
+
? window.requestIdleCallback
|
|
29
|
+
: _requestIdleCallback
|
|
30
|
+
export const cancelIdleCallback: (id: any) => void = isSupported
|
|
31
|
+
? window.cancelIdleCallback
|
|
32
|
+
: _cancelIdleCallback
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) Nicolas Gallagher.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*
|
|
7
|
+
* @noflow
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
export function hydrate(element, root) {}
|
|
11
|
+
|
|
12
|
+
export function render(element, root) {}
|
|
13
|
+
|
|
14
|
+
export function hydrateLegacy(element, root, callback) {}
|
|
15
|
+
|
|
16
|
+
export function renderLegacy(element, root, callback) {}
|
|
@@ -0,0 +1,321 @@
|
|
|
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 type { ColorValue, DimensionValue } from './types'
|
|
11
|
+
|
|
12
|
+
type NumberOrString = number | string
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* Animations and transitions
|
|
16
|
+
*/
|
|
17
|
+
|
|
18
|
+
type AnimationDirection = 'alternate' | 'alternate-reverse' | 'normal' | 'reverse'
|
|
19
|
+
|
|
20
|
+
type AnimationFillMode = 'none' | 'forwards' | 'backwards' | 'both'
|
|
21
|
+
type AnimationIterationCount = number | 'infinite'
|
|
22
|
+
type AnimationKeyframes = string | object
|
|
23
|
+
type AnimationPlayState = 'paused' | 'running'
|
|
24
|
+
|
|
25
|
+
export type AnimationStyles = {
|
|
26
|
+
animationDelay?: string | Array<string> | null
|
|
27
|
+
animationDirection?: AnimationDirection | Array<AnimationDirection> | null
|
|
28
|
+
animationDuration?: string | Array<string> | null
|
|
29
|
+
animationFillMode?: AnimationFillMode | Array<AnimationFillMode> | null
|
|
30
|
+
animationIterationCount?:
|
|
31
|
+
| AnimationIterationCount
|
|
32
|
+
| Array<AnimationIterationCount>
|
|
33
|
+
| null
|
|
34
|
+
animationKeyframes?: AnimationKeyframes | Array<AnimationKeyframes> | null
|
|
35
|
+
animationPlayState?: AnimationPlayState | Array<AnimationPlayState> | null
|
|
36
|
+
animationTimingFunction?: string | Array<string> | null
|
|
37
|
+
transitionDelay?: string | Array<string> | null
|
|
38
|
+
transitionDuration?: string | Array<string> | null
|
|
39
|
+
transitionProperty?: string | Array<string> | null
|
|
40
|
+
transitionTimingFunction?: string | Array<string> | null
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* Border
|
|
45
|
+
*/
|
|
46
|
+
|
|
47
|
+
type BorderRadiusValue = number | string
|
|
48
|
+
|
|
49
|
+
type BorderStyleValue = 'solid' | 'dotted' | 'dashed'
|
|
50
|
+
|
|
51
|
+
export type BorderStyles = {
|
|
52
|
+
borderColor?: ColorValue | null
|
|
53
|
+
borderBottomColor?: ColorValue | null
|
|
54
|
+
borderEndColor?: ColorValue | null
|
|
55
|
+
borderLeftColor?: ColorValue | null
|
|
56
|
+
borderRightColor?: ColorValue | null
|
|
57
|
+
borderStartColor?: ColorValue | null
|
|
58
|
+
borderTopColor?: ColorValue | null
|
|
59
|
+
borderRadius?: BorderRadiusValue | null
|
|
60
|
+
borderBottomEndRadius?: BorderRadiusValue | null
|
|
61
|
+
borderBottomLeftRadius?: BorderRadiusValue | null
|
|
62
|
+
borderBottomRightRadius?: BorderRadiusValue | null
|
|
63
|
+
borderBottomStartRadius?: BorderRadiusValue | null
|
|
64
|
+
borderTopEndRadius?: BorderRadiusValue | null
|
|
65
|
+
borderTopLeftRadius?: BorderRadiusValue | null
|
|
66
|
+
borderTopRightRadius?: BorderRadiusValue | null
|
|
67
|
+
borderTopStartRadius?: BorderRadiusValue | null
|
|
68
|
+
borderStyle?: BorderStyleValue | null
|
|
69
|
+
borderBottomStyle?: BorderStyleValue | null
|
|
70
|
+
borderEndStyle?: BorderStyleValue | null
|
|
71
|
+
borderLeftStyle?: BorderStyleValue | null
|
|
72
|
+
borderRightStyle?: BorderStyleValue | null
|
|
73
|
+
borderStartStyle?: BorderStyleValue | null
|
|
74
|
+
borderTopStyle?: BorderStyleValue | null
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* Interactions
|
|
79
|
+
*/
|
|
80
|
+
|
|
81
|
+
type CursorValue =
|
|
82
|
+
| 'alias'
|
|
83
|
+
| 'all-scroll'
|
|
84
|
+
| 'auto'
|
|
85
|
+
| 'cell'
|
|
86
|
+
| 'context-menu'
|
|
87
|
+
| 'copy'
|
|
88
|
+
| 'crosshair'
|
|
89
|
+
| 'default'
|
|
90
|
+
| 'grab'
|
|
91
|
+
| 'grabbing'
|
|
92
|
+
| 'help'
|
|
93
|
+
| 'pointer'
|
|
94
|
+
| 'progress'
|
|
95
|
+
| 'wait'
|
|
96
|
+
| 'text'
|
|
97
|
+
| 'vertical-text'
|
|
98
|
+
| 'move'
|
|
99
|
+
| 'none'
|
|
100
|
+
| 'no-drop'
|
|
101
|
+
| 'not-allowed'
|
|
102
|
+
| 'zoom-in' // resize
|
|
103
|
+
| 'zoom-out'
|
|
104
|
+
| 'col-resize'
|
|
105
|
+
| 'e-resize'
|
|
106
|
+
| 'ew-resize'
|
|
107
|
+
| 'n-resize'
|
|
108
|
+
| 'ne-resize'
|
|
109
|
+
| 'ns-resize'
|
|
110
|
+
| 'nw-resize'
|
|
111
|
+
| 'row-resize'
|
|
112
|
+
| 's-resize'
|
|
113
|
+
| 'se-resize'
|
|
114
|
+
| 'sw-resize'
|
|
115
|
+
| 'w-resize'
|
|
116
|
+
| 'nesw-resize'
|
|
117
|
+
| 'nwse-resize'
|
|
118
|
+
|
|
119
|
+
type TouchActionValue =
|
|
120
|
+
| 'auto'
|
|
121
|
+
| 'inherit'
|
|
122
|
+
| 'manipulation'
|
|
123
|
+
| 'none'
|
|
124
|
+
| 'pan-down'
|
|
125
|
+
| 'pan-left'
|
|
126
|
+
| 'pan-right'
|
|
127
|
+
| 'pan-up'
|
|
128
|
+
| 'pan-x'
|
|
129
|
+
| 'pan-y'
|
|
130
|
+
| 'pinch-zoom'
|
|
131
|
+
type UserSelect = 'all' | 'auto' | 'contain' | 'none' | 'text'
|
|
132
|
+
|
|
133
|
+
export type InteractionStyles = {
|
|
134
|
+
// https://developer.mozilla.org/en-US/docs/Web/CSS/cursor#Formal_syntax
|
|
135
|
+
cursor?: CursorValue | null
|
|
136
|
+
// https://developer.mozilla.org/en-US/docs/Web/CSS/touch-action#Formal_syntax
|
|
137
|
+
touchAction?: TouchActionValue | null
|
|
138
|
+
// https://developer.mozilla.org/en-US/docs/Web/CSS/user-select#Formal_syntax_2
|
|
139
|
+
userSelect?: UserSelect | null
|
|
140
|
+
willChange?: string | null
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
/**
|
|
144
|
+
* Layout
|
|
145
|
+
*/
|
|
146
|
+
|
|
147
|
+
type OverflowValue = 'auto' | 'hidden' | 'scroll' | 'visible'
|
|
148
|
+
|
|
149
|
+
type VisiblilityValue = 'hidden' | 'visible'
|
|
150
|
+
|
|
151
|
+
export type LayoutStyles = {
|
|
152
|
+
alignContent?:
|
|
153
|
+
| 'center'
|
|
154
|
+
| 'flex-end'
|
|
155
|
+
| 'flex-start'
|
|
156
|
+
| 'space-around'
|
|
157
|
+
| 'space-between'
|
|
158
|
+
| 'stretch'
|
|
159
|
+
alignItems?: 'baseline' | 'center' | 'flex-end' | 'flex-start' | 'stretch' | null
|
|
160
|
+
alignSelf?:
|
|
161
|
+
| 'auto'
|
|
162
|
+
| 'baseline'
|
|
163
|
+
| 'center'
|
|
164
|
+
| 'flex-end'
|
|
165
|
+
| 'flex-start'
|
|
166
|
+
| 'stretch'
|
|
167
|
+
| null
|
|
168
|
+
aspectRatio?: number | null
|
|
169
|
+
backfaceVisibility?: VisiblilityValue | null
|
|
170
|
+
borderWidth?: DimensionValue | null
|
|
171
|
+
borderBottomWidth?: DimensionValue | null
|
|
172
|
+
borderEndWidth?: DimensionValue | null
|
|
173
|
+
borderLeftWidth?: DimensionValue | null
|
|
174
|
+
borderRightWidth?: DimensionValue | null
|
|
175
|
+
borderStartWidth?: DimensionValue | null
|
|
176
|
+
borderTopWidth?: DimensionValue | null
|
|
177
|
+
bottom?: DimensionValue | null
|
|
178
|
+
boxSizing?: 'border-box' | 'content-box' | 'padding-box' | null
|
|
179
|
+
direction?: 'inherit' | 'ltr' | 'rtl' | null
|
|
180
|
+
display?: string | null
|
|
181
|
+
end?: DimensionValue | null
|
|
182
|
+
flex?: number | null
|
|
183
|
+
flexBasis?: DimensionValue | null
|
|
184
|
+
flexDirection?: 'column' | 'column-reverse' | 'row' | 'row-reverse' | null
|
|
185
|
+
flexGrow?: number | null
|
|
186
|
+
flexShrink?: number | null
|
|
187
|
+
flexWrap?: 'nowrap' | 'wrap' | 'wrap-reverse' | null
|
|
188
|
+
height?: DimensionValue | null
|
|
189
|
+
justifyContent?:
|
|
190
|
+
| 'center'
|
|
191
|
+
| 'flex-end'
|
|
192
|
+
| 'flex-start'
|
|
193
|
+
| 'space-around'
|
|
194
|
+
| 'space-between'
|
|
195
|
+
| 'space-evenly'
|
|
196
|
+
| null
|
|
197
|
+
left?: DimensionValue | null
|
|
198
|
+
margin?: DimensionValue | null
|
|
199
|
+
marginBottom?: DimensionValue | null
|
|
200
|
+
marginHorizontal?: DimensionValue | null
|
|
201
|
+
marginEnd?: DimensionValue | null
|
|
202
|
+
marginLeft?: DimensionValue | null
|
|
203
|
+
marginRight?: DimensionValue | null
|
|
204
|
+
marginStart?: DimensionValue | null
|
|
205
|
+
marginTop?: DimensionValue | null
|
|
206
|
+
marginVertical?: DimensionValue | null
|
|
207
|
+
maxHeight?: DimensionValue | null
|
|
208
|
+
maxWidth?: DimensionValue | null
|
|
209
|
+
minHeight?: DimensionValue | null
|
|
210
|
+
minWidth?: DimensionValue | null
|
|
211
|
+
order?: number | null
|
|
212
|
+
overflow?: OverflowValue | null
|
|
213
|
+
overflowX?: OverflowValue | null
|
|
214
|
+
overflowY?: OverflowValue | null
|
|
215
|
+
padding?: DimensionValue | null
|
|
216
|
+
paddingBottom?: DimensionValue | null
|
|
217
|
+
paddingHorizontal?: DimensionValue | null
|
|
218
|
+
paddingEnd?: DimensionValue | null
|
|
219
|
+
paddingLeft?: DimensionValue | null
|
|
220
|
+
paddingRight?: DimensionValue | null
|
|
221
|
+
paddingStart?: DimensionValue | null
|
|
222
|
+
paddingTop?: DimensionValue | null
|
|
223
|
+
paddingVertical?: DimensionValue | null
|
|
224
|
+
position?: 'absolute' | 'fixed' | 'relative' | 'static' | 'sticky' | null
|
|
225
|
+
right?: DimensionValue | null
|
|
226
|
+
start?: DimensionValue | null
|
|
227
|
+
top?: DimensionValue | null
|
|
228
|
+
visibility?: VisiblilityValue | null
|
|
229
|
+
width?: DimensionValue | null
|
|
230
|
+
zIndex?: number | null
|
|
231
|
+
/**
|
|
232
|
+
* @platform web
|
|
233
|
+
*/
|
|
234
|
+
gridAutoColumns?: string | null
|
|
235
|
+
gridAutoFlow?: string | null
|
|
236
|
+
gridAutoRows?: string | null
|
|
237
|
+
gridColumnEnd?: string | null
|
|
238
|
+
gridColumnGap?: string | null
|
|
239
|
+
gridColumnStart?: string | null
|
|
240
|
+
gridRowEnd?: string | null
|
|
241
|
+
gridRowGap?: string | null
|
|
242
|
+
gridRowStart?: string | null
|
|
243
|
+
gridTemplateColumns?: string | null
|
|
244
|
+
gridTemplateRows?: string | null
|
|
245
|
+
gridTemplateAreas?: string | null
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
/**
|
|
249
|
+
* Shadows
|
|
250
|
+
*/
|
|
251
|
+
|
|
252
|
+
export type ShadowStyles = {
|
|
253
|
+
shadowColor?: ColorValue | null
|
|
254
|
+
shadowOffset?: {
|
|
255
|
+
width?: DimensionValue
|
|
256
|
+
height?: DimensionValue
|
|
257
|
+
}
|
|
258
|
+
shadowOpacity?: number | null
|
|
259
|
+
shadowRadius?: DimensionValue | null
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
/**
|
|
263
|
+
* Transforms
|
|
264
|
+
*/
|
|
265
|
+
|
|
266
|
+
export type TransformStyles = {
|
|
267
|
+
perspective?: NumberOrString | null
|
|
268
|
+
perspectiveOrigin?: string | null
|
|
269
|
+
transform?: Array<
|
|
270
|
+
| {
|
|
271
|
+
readonly perspective: NumberOrString
|
|
272
|
+
}
|
|
273
|
+
| {
|
|
274
|
+
readonly rotate: string
|
|
275
|
+
}
|
|
276
|
+
| {
|
|
277
|
+
readonly rotateX: string
|
|
278
|
+
}
|
|
279
|
+
| {
|
|
280
|
+
readonly rotateY: string
|
|
281
|
+
}
|
|
282
|
+
| {
|
|
283
|
+
readonly rotateZ: string
|
|
284
|
+
}
|
|
285
|
+
| {
|
|
286
|
+
readonly scale: number
|
|
287
|
+
}
|
|
288
|
+
| {
|
|
289
|
+
readonly scaleX: number
|
|
290
|
+
}
|
|
291
|
+
| {
|
|
292
|
+
readonly scaleY: number
|
|
293
|
+
}
|
|
294
|
+
| {
|
|
295
|
+
readonly scaleZ: number
|
|
296
|
+
}
|
|
297
|
+
| {
|
|
298
|
+
readonly scale3d: string
|
|
299
|
+
}
|
|
300
|
+
| {
|
|
301
|
+
readonly skewX: string
|
|
302
|
+
}
|
|
303
|
+
| {
|
|
304
|
+
readonly skewY: string
|
|
305
|
+
}
|
|
306
|
+
| {
|
|
307
|
+
readonly translateX: NumberOrString
|
|
308
|
+
}
|
|
309
|
+
| {
|
|
310
|
+
readonly translateY: NumberOrString
|
|
311
|
+
}
|
|
312
|
+
| {
|
|
313
|
+
readonly translateZ: NumberOrString
|
|
314
|
+
}
|
|
315
|
+
| {
|
|
316
|
+
readonly translate3d: string
|
|
317
|
+
}
|
|
318
|
+
>
|
|
319
|
+
transformOrigin?: string | null
|
|
320
|
+
transformStyle?: 'flat' | 'preserve-3d' | null
|
|
321
|
+
}
|
package/src/types.ts
ADDED
|
@@ -0,0 +1,77 @@
|
|
|
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
|
+
export type ColorValue = null | string
|
|
11
|
+
|
|
12
|
+
export type DimensionValue = null | number | string
|
|
13
|
+
|
|
14
|
+
export type EdgeInsetsValue = {
|
|
15
|
+
top: number
|
|
16
|
+
left: number
|
|
17
|
+
right: number
|
|
18
|
+
bottom: number
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export type GenericStyleProp<T> =
|
|
22
|
+
| null
|
|
23
|
+
| void
|
|
24
|
+
| T
|
|
25
|
+
| false
|
|
26
|
+
| ''
|
|
27
|
+
| ReadonlyArray<GenericStyleProp<T>>
|
|
28
|
+
|
|
29
|
+
export type LayoutValue = {
|
|
30
|
+
x: number
|
|
31
|
+
y: number
|
|
32
|
+
width: number
|
|
33
|
+
height: number
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export type LayoutEvent = {
|
|
37
|
+
nativeEvent: {
|
|
38
|
+
layout: LayoutValue
|
|
39
|
+
target: any
|
|
40
|
+
}
|
|
41
|
+
timeStamp: number
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export type PointValue = {
|
|
45
|
+
x: number
|
|
46
|
+
y: number
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
type LayoutCallback = (
|
|
50
|
+
x: number,
|
|
51
|
+
y: number,
|
|
52
|
+
width: number,
|
|
53
|
+
height: number,
|
|
54
|
+
left: number,
|
|
55
|
+
top: number
|
|
56
|
+
) => void
|
|
57
|
+
|
|
58
|
+
type MeasureInWindowCallback = (
|
|
59
|
+
left: number,
|
|
60
|
+
top: number,
|
|
61
|
+
width: number,
|
|
62
|
+
height: number
|
|
63
|
+
) => void
|
|
64
|
+
|
|
65
|
+
// Mixin to HTMLElement that represents additions from the `usePlatformMethods` hook
|
|
66
|
+
export interface PlatformMethods {
|
|
67
|
+
blur: () => void
|
|
68
|
+
focus: () => void
|
|
69
|
+
measure: (callback: LayoutCallback) => void
|
|
70
|
+
measureInWindow: (callback: MeasureInWindowCallback) => void
|
|
71
|
+
measureLayout: (
|
|
72
|
+
relativeToNativeNode: {},
|
|
73
|
+
onSuccess: LayoutCallback,
|
|
74
|
+
onFail: () => void
|
|
75
|
+
) => void
|
|
76
|
+
setNativeProps: (nativeProps: {}) => void
|
|
77
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
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
|
+
|
|
13
|
+
import type { ColorSchemeName } from '../Appearance/index'
|
|
14
|
+
import { Appearance } from '../Appearance/index'
|
|
15
|
+
|
|
16
|
+
export function useColorScheme(): ColorSchemeName {
|
|
17
|
+
const [colorScheme, setColorScheme] = React.useState(Appearance.getColorScheme())
|
|
18
|
+
|
|
19
|
+
React.useEffect(() => {
|
|
20
|
+
function listener(appearance) {
|
|
21
|
+
setColorScheme(appearance.colorScheme)
|
|
22
|
+
}
|
|
23
|
+
const { remove } = Appearance.addChangeListener(listener)
|
|
24
|
+
return remove
|
|
25
|
+
})
|
|
26
|
+
|
|
27
|
+
return colorScheme
|
|
28
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
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 strict
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
export { useLocaleContext } from '@hanzogui/react-native-web-internals'
|