@hanzogui/react-native-web-lite 2.0.0-rc.41-hanzoai.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +31 -0
- package/dist/cjs/AccessibilityInfo/index.cjs +109 -0
- package/dist/cjs/ActivityIndicator/__tests__/index-test.cjs +209 -0
- package/dist/cjs/ActivityIndicator/index.cjs +130 -0
- package/dist/cjs/Alert/index.cjs +30 -0
- package/dist/cjs/AppRegistry/AppContainer.cjs +75 -0
- package/dist/cjs/AppRegistry/__tests__/index-test.cjs +97 -0
- package/dist/cjs/AppRegistry/__tests__/index-test.node.cjs +162 -0
- package/dist/cjs/AppRegistry/index.cjs +100 -0
- package/dist/cjs/AppRegistry/renderApplication.cjs +74 -0
- package/dist/cjs/AppState/__tests__/index-test.cjs +38 -0
- package/dist/cjs/AppState/index.cjs +85 -0
- package/dist/cjs/Appearance/index.cjs +64 -0
- package/dist/cjs/BackHandler/index.cjs +37 -0
- package/dist/cjs/Clipboard/index.cjs +64 -0
- package/dist/cjs/DeviceEmitter.cjs +29 -0
- package/dist/cjs/DeviceInfo/index.cjs +76 -0
- package/dist/cjs/Dimensions/__tests__/index-test.cjs +67 -0
- package/dist/cjs/Dimensions/index.cjs +112 -0
- package/dist/cjs/FlatList.cjs +241 -0
- package/dist/cjs/I18nManager/index.cjs +40 -0
- package/dist/cjs/Image/index.cjs +355 -0
- package/dist/cjs/Image/types.cjs +18 -0
- package/dist/cjs/ImageBackground/__tests__/index-test.cjs +72 -0
- package/dist/cjs/ImageBackground/index.cjs +69 -0
- package/dist/cjs/InteractionManager/TaskQueue.cjs +111 -0
- package/dist/cjs/InteractionManager/index.cjs +141 -0
- package/dist/cjs/Keyboard/index.cjs +40 -0
- package/dist/cjs/KeyboardAvoidingView/index.cjs +72 -0
- package/dist/cjs/Libraries/Pressability/Pressability.cjs +28 -0
- package/dist/cjs/Libraries/Pressability/usePressability.cjs +28 -0
- package/dist/cjs/Linking/__tests__/index-test.cjs +56 -0
- package/dist/cjs/Linking/index.cjs +103 -0
- package/dist/cjs/LogBox/index.cjs +35 -0
- package/dist/cjs/Modal/ModalAnimation.cjs +174 -0
- package/dist/cjs/Modal/ModalContent.cjs +95 -0
- package/dist/cjs/Modal/ModalPortal.cjs +63 -0
- package/dist/cjs/Modal/index.cjs +28 -0
- package/dist/cjs/NativeModules/index.cjs +31 -0
- package/dist/cjs/PanResponder/index.cjs +39 -0
- package/dist/cjs/PixelRatio/index.cjs +59 -0
- package/dist/cjs/Pressable/index.cjs +172 -0
- package/dist/cjs/RefreshControl/index.cjs +51 -0
- package/dist/cjs/SafeAreaView/index.cjs +70 -0
- package/dist/cjs/ScrollView/ScrollViewBase.cjs +167 -0
- package/dist/cjs/ScrollView/index.cjs +672 -0
- package/dist/cjs/SectionList.cjs +41 -0
- package/dist/cjs/Share/index.cjs +58 -0
- package/dist/cjs/StatusBar/index.cjs +38 -0
- package/dist/cjs/Text/index.cjs +197 -0
- package/dist/cjs/Text/types.cjs +18 -0
- package/dist/cjs/TextInput/index.cjs +396 -0
- package/dist/cjs/TextInput/types.cjs +18 -0
- package/dist/cjs/TouchableNativeFeedback.cjs +28 -0
- package/dist/cjs/TouchableOpacity.cjs +125 -0
- package/dist/cjs/TouchableWithoutFeedback.cjs +95 -0
- package/dist/cjs/UnimplementedView.cjs +52 -0
- package/dist/cjs/Vibration/index.cjs +40 -0
- package/dist/cjs/View/index.cjs +144 -0
- package/dist/cjs/View/types.cjs +18 -0
- package/dist/cjs/VirtualizedList.cjs +41 -0
- package/dist/cjs/codegenNativeCommand.cjs +31 -0
- package/dist/cjs/codegenNativeComponent.cjs +31 -0
- package/dist/cjs/createElement/__tests__/index-test.cjs +828 -0
- package/dist/cjs/createElement/index.cjs +94 -0
- package/dist/cjs/createReactDOMStyle.cjs +30 -0
- package/dist/cjs/index.cjs +174 -0
- package/dist/cjs/modules/requestIdleCallback.cjs +45 -0
- package/dist/cjs/preprocess.cjs +32 -0
- package/dist/cjs/render/index.cjs +34 -0
- package/dist/cjs/styleTypes.cjs +18 -0
- package/dist/cjs/types.cjs +18 -0
- package/dist/cjs/useColorScheme/index.cjs +53 -0
- package/dist/cjs/useLocaleContext/index.cjs +28 -0
- package/dist/cjs/useWindowDimensions/index.cjs +58 -0
- package/dist/cjs/vendor/react-native/Animated/Animated.cjs +48 -0
- package/dist/cjs/vendor/react-native/Animated/AnimatedEvent.cjs +164 -0
- package/dist/cjs/vendor/react-native/Animated/AnimatedImplementation.cjs +587 -0
- package/dist/cjs/vendor/react-native/Animated/AnimatedMock.cjs +147 -0
- package/dist/cjs/vendor/react-native/Animated/AnimatedPlatformConfig.cjs +1 -0
- package/dist/cjs/vendor/react-native/Animated/Easing.cjs +199 -0
- package/dist/cjs/vendor/react-native/Animated/NativeAnimatedHelper.cjs +402 -0
- package/dist/cjs/vendor/react-native/Animated/NativeAnimatedModule.cjs +80 -0
- package/dist/cjs/vendor/react-native/Animated/NativeAnimatedTurboModule.cjs +77 -0
- package/dist/cjs/vendor/react-native/Animated/SpringConfig.cjs +86 -0
- package/dist/cjs/vendor/react-native/Animated/animations/Animation.cjs +72 -0
- package/dist/cjs/vendor/react-native/Animated/animations/DecayAnimation.cjs +95 -0
- package/dist/cjs/vendor/react-native/Animated/animations/SpringAnimation.cjs +233 -0
- package/dist/cjs/vendor/react-native/Animated/animations/TimingAnimation.cjs +134 -0
- package/dist/cjs/vendor/react-native/Animated/bezier.cjs +124 -0
- package/dist/cjs/vendor/react-native/Animated/components/AnimatedFlatList.cjs +50 -0
- package/dist/cjs/vendor/react-native/Animated/components/AnimatedImage.cjs +44 -0
- package/dist/cjs/vendor/react-native/Animated/components/AnimatedScrollView.cjs +50 -0
- package/dist/cjs/vendor/react-native/Animated/components/AnimatedSectionList.cjs +50 -0
- package/dist/cjs/vendor/react-native/Animated/components/AnimatedText.cjs +32 -0
- package/dist/cjs/vendor/react-native/Animated/components/AnimatedView.cjs +32 -0
- package/dist/cjs/vendor/react-native/Animated/createAnimatedComponent.cjs +65 -0
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedAddition.cjs +69 -0
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedColor.cjs +274 -0
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedDiffClamp.cjs +74 -0
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedDivision.cjs +84 -0
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedInterpolation.cjs +225 -0
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedModulo.cjs +64 -0
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedMultiplication.cjs +69 -0
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedNode.cjs +174 -0
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedProps.cjs +151 -0
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedStyle.cjs +136 -0
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedSubtraction.cjs +69 -0
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedTracking.cjs +90 -0
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedTransform.cjs +127 -0
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedValue.cjs +239 -0
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedValueXY.cjs +119 -0
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedWithChildren.cjs +87 -0
- package/dist/cjs/vendor/react-native/Animated/useAnimatedProps.cjs +104 -0
- package/dist/cjs/vendor/react-native/Batchinator/index.cjs +72 -0
- package/dist/cjs/vendor/react-native/EventEmitter/NativeEventEmitter.cjs +73 -0
- package/dist/cjs/vendor/react-native/EventEmitter/RCTDeviceEventEmitter.cjs +31 -0
- package/dist/cjs/vendor/react-native/FeatureFlags.cjs +35 -0
- package/dist/cjs/vendor/react-native/FillRateHelper/index.cjs +189 -0
- package/dist/cjs/vendor/react-native/FlatList/index.cjs +324 -0
- package/dist/cjs/vendor/react-native/JSEventLoopWatchdog/index.cjs +93 -0
- package/dist/cjs/vendor/react-native/LayoutAnimation/index.cjs +116 -0
- package/dist/cjs/vendor/react-native/PanResponder/index.cjs +207 -0
- package/dist/cjs/vendor/react-native/PooledClass/index.cjs +62 -0
- package/dist/cjs/vendor/react-native/ReactNative/ReactNativeFeatureFlags.cjs +36 -0
- package/dist/cjs/vendor/react-native/SectionList/index.cjs +128 -0
- package/dist/cjs/vendor/react-native/StaticContainer/index.cjs +52 -0
- package/dist/cjs/vendor/react-native/StaticRenderer/index.cjs +51 -0
- package/dist/cjs/vendor/react-native/TouchHistoryMath/index.cjs +125 -0
- package/dist/cjs/vendor/react-native/TurboModule/RCTExport.cjs +36 -0
- package/dist/cjs/vendor/react-native/TurboModule/TurboModuleRegistry.cjs +39 -0
- package/dist/cjs/vendor/react-native/Types/CoreEventTypes.cjs +158 -0
- package/dist/cjs/vendor/react-native/Utilities/Platform.cjs +30 -0
- package/dist/cjs/vendor/react-native/Utilities/clamp.cjs +40 -0
- package/dist/cjs/vendor/react-native/Utilities/setAndForwardRef.cjs +45 -0
- package/dist/cjs/vendor/react-native/Utilities/useMergeRefs.cjs +45 -0
- package/dist/cjs/vendor/react-native/Utilities/useRefEffect.cjs +42 -0
- package/dist/cjs/vendor/react-native/ViewabilityHelper/index.cjs +184 -0
- package/dist/cjs/vendor/react-native/ViewabilityHelper.cjs +175 -0
- package/dist/cjs/vendor/react-native/VirtualizeUtils/index.cjs +144 -0
- package/dist/cjs/vendor/react-native/VirtualizedList/CellRenderMask.cjs +110 -0
- package/dist/cjs/vendor/react-native/VirtualizedList/ChildListCollection.cjs +77 -0
- package/dist/cjs/vendor/react-native/VirtualizedList/StateSafePureComponent.cjs +92 -0
- package/dist/cjs/vendor/react-native/VirtualizedList/VirtualizedListCellRenderer.cjs +182 -0
- package/dist/cjs/vendor/react-native/VirtualizedList/VirtualizedListContext.cjs +89 -0
- package/dist/cjs/vendor/react-native/VirtualizedList/VirtualizedListProps.cjs +66 -0
- package/dist/cjs/vendor/react-native/VirtualizedList/index.cjs +310 -0
- package/dist/cjs/vendor/react-native/VirtualizedSectionList/index.cjs +165 -0
- package/dist/cjs/vendor/react-native/deepDiffer/index.cjs +74 -0
- package/dist/cjs/vendor/react-native/emitter/EventEmitter.cjs +32 -0
- package/dist/cjs/vendor/react-native/emitter/EventSubscription.cjs +1 -0
- package/dist/cjs/vendor/react-native/emitter/_EmitterSubscription.cjs +59 -0
- package/dist/cjs/vendor/react-native/emitter/_EventEmitter.cjs +136 -0
- package/dist/cjs/vendor/react-native/emitter/_EventSubscription.cjs +46 -0
- package/dist/cjs/vendor/react-native/emitter/_EventSubscriptionVendor.cjs +96 -0
- package/dist/cjs/vendor/react-native/infoLog/index.cjs +34 -0
- package/dist/cjs/vendor/react-native/useRefEffect.cjs +42 -0
- package/dist/cjs/vendor/react-native/vendor/emitter/EventEmitter.cjs +103 -0
- package/dist/cjs/without-animated.cjs +348 -0
- package/dist/esm/AccessibilityInfo/index.mjs +84 -0
- package/dist/esm/AccessibilityInfo/index.mjs.map +1 -0
- package/dist/esm/ActivityIndicator/__tests__/index-test.mjs +186 -0
- package/dist/esm/ActivityIndicator/__tests__/index-test.mjs.map +1 -0
- package/dist/esm/ActivityIndicator/index.mjs +93 -0
- package/dist/esm/ActivityIndicator/index.mjs.map +1 -0
- package/dist/esm/Alert/index.mjs +5 -0
- package/dist/esm/Alert/index.mjs.map +1 -0
- package/dist/esm/AppRegistry/AppContainer.mjs +38 -0
- package/dist/esm/AppRegistry/AppContainer.mjs.map +1 -0
- package/dist/esm/AppRegistry/__tests__/index-test.mjs +74 -0
- package/dist/esm/AppRegistry/__tests__/index-test.mjs.map +1 -0
- package/dist/esm/AppRegistry/__tests__/index-test.node.mjs +139 -0
- package/dist/esm/AppRegistry/__tests__/index-test.node.mjs.map +1 -0
- package/dist/esm/AppRegistry/index.mjs +75 -0
- package/dist/esm/AppRegistry/index.mjs.map +1 -0
- package/dist/esm/AppRegistry/renderApplication.mjs +48 -0
- package/dist/esm/AppRegistry/renderApplication.mjs.map +1 -0
- package/dist/esm/AppState/__tests__/index-test.mjs +15 -0
- package/dist/esm/AppState/__tests__/index-test.mjs.map +1 -0
- package/dist/esm/AppState/index.mjs +60 -0
- package/dist/esm/AppState/index.mjs.map +1 -0
- package/dist/esm/Appearance/index.mjs +39 -0
- package/dist/esm/Appearance/index.mjs.map +1 -0
- package/dist/esm/BackHandler/index.mjs +12 -0
- package/dist/esm/BackHandler/index.mjs.map +1 -0
- package/dist/esm/Clipboard/index.mjs +39 -0
- package/dist/esm/Clipboard/index.mjs.map +1 -0
- package/dist/esm/DeviceEmitter.mjs +4 -0
- package/dist/esm/DeviceEmitter.mjs.map +1 -0
- package/dist/esm/DeviceInfo/index.mjs +51 -0
- package/dist/esm/DeviceInfo/index.mjs.map +1 -0
- package/dist/esm/Dimensions/__tests__/index-test.mjs +44 -0
- package/dist/esm/Dimensions/__tests__/index-test.mjs.map +1 -0
- package/dist/esm/Dimensions/index.mjs +86 -0
- package/dist/esm/Dimensions/index.mjs.map +1 -0
- package/dist/esm/FlatList.mjs +204 -0
- package/dist/esm/FlatList.mjs.map +1 -0
- package/dist/esm/I18nManager/index.mjs +15 -0
- package/dist/esm/I18nManager/index.mjs.map +1 -0
- package/dist/esm/Image/index.mjs +318 -0
- package/dist/esm/Image/index.mjs.map +1 -0
- package/dist/esm/Image/types.mjs +2 -0
- package/dist/esm/Image/types.mjs.map +1 -0
- package/dist/esm/ImageBackground/__tests__/index-test.mjs +49 -0
- package/dist/esm/ImageBackground/__tests__/index-test.mjs.map +1 -0
- package/dist/esm/ImageBackground/index.mjs +43 -0
- package/dist/esm/ImageBackground/index.mjs.map +1 -0
- package/dist/esm/InteractionManager/TaskQueue.mjs +86 -0
- package/dist/esm/InteractionManager/TaskQueue.mjs.map +1 -0
- package/dist/esm/InteractionManager/index.mjs +105 -0
- package/dist/esm/InteractionManager/index.mjs.map +1 -0
- package/dist/esm/Keyboard/index.mjs +15 -0
- package/dist/esm/Keyboard/index.mjs.map +1 -0
- package/dist/esm/KeyboardAvoidingView/index.mjs +35 -0
- package/dist/esm/KeyboardAvoidingView/index.mjs.map +1 -0
- package/dist/esm/Libraries/Pressability/Pressability.mjs +3 -0
- package/dist/esm/Libraries/Pressability/Pressability.mjs.map +1 -0
- package/dist/esm/Libraries/Pressability/usePressability.mjs +3 -0
- package/dist/esm/Libraries/Pressability/usePressability.mjs.map +1 -0
- package/dist/esm/Linking/__tests__/index-test.mjs +33 -0
- package/dist/esm/Linking/__tests__/index-test.mjs.map +1 -0
- package/dist/esm/Linking/index.mjs +78 -0
- package/dist/esm/Linking/index.mjs.map +1 -0
- package/dist/esm/LogBox/index.mjs +9 -0
- package/dist/esm/LogBox/index.mjs.map +1 -0
- package/dist/esm/Modal/ModalAnimation.mjs +138 -0
- package/dist/esm/Modal/ModalAnimation.mjs.map +1 -0
- package/dist/esm/Modal/ModalContent.mjs +59 -0
- package/dist/esm/Modal/ModalContent.mjs.map +1 -0
- package/dist/esm/Modal/ModalPortal.mjs +27 -0
- package/dist/esm/Modal/ModalPortal.mjs.map +1 -0
- package/dist/esm/Modal/index.mjs +3 -0
- package/dist/esm/Modal/index.mjs.map +1 -0
- package/dist/esm/NativeModules/index.mjs +6 -0
- package/dist/esm/NativeModules/index.mjs.map +1 -0
- package/dist/esm/PanResponder/index.mjs +3 -0
- package/dist/esm/PanResponder/index.mjs.map +1 -0
- package/dist/esm/PixelRatio/index.mjs +34 -0
- package/dist/esm/PixelRatio/index.mjs.map +1 -0
- package/dist/esm/Pressable/index.mjs +133 -0
- package/dist/esm/Pressable/index.mjs.map +1 -0
- package/dist/esm/RefreshControl/index.mjs +25 -0
- package/dist/esm/RefreshControl/index.mjs.map +1 -0
- package/dist/esm/SafeAreaView/index.mjs +33 -0
- package/dist/esm/SafeAreaView/index.mjs.map +1 -0
- package/dist/esm/ScrollView/ScrollViewBase.mjs +130 -0
- package/dist/esm/ScrollView/ScrollViewBase.mjs.map +1 -0
- package/dist/esm/ScrollView/index.mjs +635 -0
- package/dist/esm/ScrollView/index.mjs.map +1 -0
- package/dist/esm/SectionList.mjs +4 -0
- package/dist/esm/SectionList.mjs.map +1 -0
- package/dist/esm/Share/index.mjs +33 -0
- package/dist/esm/Share/index.mjs.map +1 -0
- package/dist/esm/StatusBar/index.mjs +12 -0
- package/dist/esm/StatusBar/index.mjs.map +1 -0
- package/dist/esm/Text/index.mjs +160 -0
- package/dist/esm/Text/index.mjs.map +1 -0
- package/dist/esm/Text/types.mjs +2 -0
- package/dist/esm/Text/types.mjs.map +1 -0
- package/dist/esm/TextInput/index.mjs +359 -0
- package/dist/esm/TextInput/index.mjs.map +1 -0
- package/dist/esm/TextInput/types.mjs +2 -0
- package/dist/esm/TextInput/types.mjs.map +1 -0
- package/dist/esm/TouchableNativeFeedback.mjs +3 -0
- package/dist/esm/TouchableNativeFeedback.mjs.map +1 -0
- package/dist/esm/TouchableOpacity.mjs +87 -0
- package/dist/esm/TouchableOpacity.mjs.map +1 -0
- package/dist/esm/TouchableWithoutFeedback.mjs +59 -0
- package/dist/esm/TouchableWithoutFeedback.mjs.map +1 -0
- package/dist/esm/UnimplementedView.mjs +16 -0
- package/dist/esm/UnimplementedView.mjs.map +1 -0
- package/dist/esm/Vibration/index.mjs +15 -0
- package/dist/esm/Vibration/index.mjs.map +1 -0
- package/dist/esm/View/index.mjs +107 -0
- package/dist/esm/View/index.mjs.map +1 -0
- package/dist/esm/View/types.mjs +2 -0
- package/dist/esm/View/types.mjs.map +1 -0
- package/dist/esm/VirtualizedList.mjs +4 -0
- package/dist/esm/VirtualizedList.mjs.map +1 -0
- package/dist/esm/codegenNativeCommand.mjs +6 -0
- package/dist/esm/codegenNativeCommand.mjs.map +1 -0
- package/dist/esm/codegenNativeComponent.mjs +6 -0
- package/dist/esm/codegenNativeComponent.mjs.map +1 -0
- package/dist/esm/createElement/__tests__/index-test.mjs +805 -0
- package/dist/esm/createElement/__tests__/index-test.mjs.map +1 -0
- package/dist/esm/createElement/index.mjs +57 -0
- package/dist/esm/createElement/index.mjs.map +1 -0
- package/dist/esm/createReactDOMStyle.mjs +4 -0
- package/dist/esm/createReactDOMStyle.mjs.map +1 -0
- package/dist/esm/index.js +61 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/index.mjs +61 -0
- package/dist/esm/index.mjs.map +1 -0
- package/dist/esm/modules/requestIdleCallback.mjs +19 -0
- package/dist/esm/modules/requestIdleCallback.mjs.map +1 -0
- package/dist/esm/preprocess.mjs +3 -0
- package/dist/esm/preprocess.mjs.map +1 -0
- package/dist/esm/render/index.mjs +6 -0
- package/dist/esm/render/index.mjs.map +1 -0
- package/dist/esm/styleTypes.mjs +2 -0
- package/dist/esm/styleTypes.mjs.map +1 -0
- package/dist/esm/types.mjs +2 -0
- package/dist/esm/types.mjs.map +1 -0
- package/dist/esm/useColorScheme/index.mjs +17 -0
- package/dist/esm/useColorScheme/index.mjs.map +1 -0
- package/dist/esm/useLocaleContext/index.mjs +3 -0
- package/dist/esm/useLocaleContext/index.mjs.map +1 -0
- package/dist/esm/useWindowDimensions/index.mjs +22 -0
- package/dist/esm/useWindowDimensions/index.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Animated/Animated.mjs +22 -0
- package/dist/esm/vendor/react-native/Animated/Animated.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Animated/AnimatedEvent.mjs +136 -0
- package/dist/esm/vendor/react-native/Animated/AnimatedEvent.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Animated/AnimatedImplementation.mjs +558 -0
- package/dist/esm/vendor/react-native/Animated/AnimatedImplementation.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Animated/AnimatedMock.mjs +118 -0
- package/dist/esm/vendor/react-native/Animated/AnimatedMock.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Animated/AnimatedPlatformConfig.mjs +2 -0
- package/dist/esm/vendor/react-native/Animated/AnimatedPlatformConfig.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Animated/Easing.mjs +171 -0
- package/dist/esm/vendor/react-native/Animated/Easing.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Animated/NativeAnimatedHelper.mjs +360 -0
- package/dist/esm/vendor/react-native/Animated/NativeAnimatedHelper.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Animated/NativeAnimatedModule.mjs +38 -0
- package/dist/esm/vendor/react-native/Animated/NativeAnimatedModule.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Animated/NativeAnimatedTurboModule.mjs +35 -0
- package/dist/esm/vendor/react-native/Animated/NativeAnimatedTurboModule.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Animated/SpringConfig.mjs +60 -0
- package/dist/esm/vendor/react-native/Animated/SpringConfig.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Animated/animations/Animation.mjs +44 -0
- package/dist/esm/vendor/react-native/Animated/animations/Animation.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Animated/animations/DecayAnimation.mjs +67 -0
- package/dist/esm/vendor/react-native/Animated/animations/DecayAnimation.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Animated/animations/SpringAnimation.mjs +205 -0
- package/dist/esm/vendor/react-native/Animated/animations/SpringAnimation.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Animated/animations/TimingAnimation.mjs +108 -0
- package/dist/esm/vendor/react-native/Animated/animations/TimingAnimation.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Animated/bezier.mjs +96 -0
- package/dist/esm/vendor/react-native/Animated/bezier.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Animated/components/AnimatedFlatList.mjs +13 -0
- package/dist/esm/vendor/react-native/Animated/components/AnimatedFlatList.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Animated/components/AnimatedImage.mjs +7 -0
- package/dist/esm/vendor/react-native/Animated/components/AnimatedImage.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Animated/components/AnimatedScrollView.mjs +13 -0
- package/dist/esm/vendor/react-native/Animated/components/AnimatedScrollView.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Animated/components/AnimatedSectionList.mjs +13 -0
- package/dist/esm/vendor/react-native/Animated/components/AnimatedSectionList.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Animated/components/AnimatedText.mjs +6 -0
- package/dist/esm/vendor/react-native/Animated/components/AnimatedText.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Animated/components/AnimatedView.mjs +6 -0
- package/dist/esm/vendor/react-native/Animated/components/AnimatedView.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Animated/createAnimatedComponent.mjs +28 -0
- package/dist/esm/vendor/react-native/Animated/createAnimatedComponent.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedAddition.mjs +41 -0
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedAddition.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedColor.mjs +248 -0
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedColor.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedDiffClamp.mjs +48 -0
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedDiffClamp.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedDivision.mjs +56 -0
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedDivision.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedInterpolation.mjs +197 -0
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedInterpolation.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedModulo.mjs +38 -0
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedModulo.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedMultiplication.mjs +41 -0
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedMultiplication.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedNode.mjs +146 -0
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedNode.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedProps.mjs +125 -0
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedProps.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedStyle.mjs +110 -0
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedStyle.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedSubtraction.mjs +41 -0
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedSubtraction.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedTracking.mjs +64 -0
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedTracking.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedTransform.mjs +99 -0
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedTransform.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedValue.mjs +211 -0
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedValue.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedValueXY.mjs +93 -0
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedValueXY.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedWithChildren.mjs +59 -0
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedWithChildren.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Animated/useAnimatedProps.mjs +76 -0
- package/dist/esm/vendor/react-native/Animated/useAnimatedProps.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Batchinator/index.mjs +44 -0
- package/dist/esm/vendor/react-native/Batchinator/index.mjs.map +1 -0
- package/dist/esm/vendor/react-native/EventEmitter/NativeEventEmitter.mjs +45 -0
- package/dist/esm/vendor/react-native/EventEmitter/NativeEventEmitter.mjs.map +1 -0
- package/dist/esm/vendor/react-native/EventEmitter/RCTDeviceEventEmitter.mjs +5 -0
- package/dist/esm/vendor/react-native/EventEmitter/RCTDeviceEventEmitter.mjs.map +1 -0
- package/dist/esm/vendor/react-native/FeatureFlags.mjs +10 -0
- package/dist/esm/vendor/react-native/FeatureFlags.mjs.map +1 -0
- package/dist/esm/vendor/react-native/FillRateHelper/index.mjs +163 -0
- package/dist/esm/vendor/react-native/FillRateHelper/index.mjs.map +1 -0
- package/dist/esm/vendor/react-native/FlatList/index.mjs +287 -0
- package/dist/esm/vendor/react-native/FlatList/index.mjs.map +1 -0
- package/dist/esm/vendor/react-native/JSEventLoopWatchdog/index.mjs +65 -0
- package/dist/esm/vendor/react-native/JSEventLoopWatchdog/index.mjs.map +1 -0
- package/dist/esm/vendor/react-native/LayoutAnimation/index.mjs +88 -0
- package/dist/esm/vendor/react-native/LayoutAnimation/index.mjs.map +1 -0
- package/dist/esm/vendor/react-native/PanResponder/index.mjs +170 -0
- package/dist/esm/vendor/react-native/PanResponder/index.mjs.map +1 -0
- package/dist/esm/vendor/react-native/PooledClass/index.mjs +36 -0
- package/dist/esm/vendor/react-native/PooledClass/index.mjs.map +1 -0
- package/dist/esm/vendor/react-native/ReactNative/ReactNativeFeatureFlags.mjs +10 -0
- package/dist/esm/vendor/react-native/ReactNative/ReactNativeFeatureFlags.mjs.map +1 -0
- package/dist/esm/vendor/react-native/SectionList/index.mjs +91 -0
- package/dist/esm/vendor/react-native/SectionList/index.mjs.map +1 -0
- package/dist/esm/vendor/react-native/StaticContainer/index.mjs +13 -0
- package/dist/esm/vendor/react-native/StaticContainer/index.mjs.map +1 -0
- package/dist/esm/vendor/react-native/StaticRenderer/index.mjs +12 -0
- package/dist/esm/vendor/react-native/StaticRenderer/index.mjs.map +1 -0
- package/dist/esm/vendor/react-native/TouchHistoryMath/index.mjs +99 -0
- package/dist/esm/vendor/react-native/TouchHistoryMath/index.mjs.map +1 -0
- package/dist/esm/vendor/react-native/TurboModule/RCTExport.mjs +8 -0
- package/dist/esm/vendor/react-native/TurboModule/RCTExport.mjs.map +1 -0
- package/dist/esm/vendor/react-native/TurboModule/TurboModuleRegistry.mjs +11 -0
- package/dist/esm/vendor/react-native/TurboModule/TurboModuleRegistry.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Types/CoreEventTypes.mjs +126 -0
- package/dist/esm/vendor/react-native/Types/CoreEventTypes.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Utilities/Platform.mjs +4 -0
- package/dist/esm/vendor/react-native/Utilities/Platform.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Utilities/clamp.mjs +12 -0
- package/dist/esm/vendor/react-native/Utilities/clamp.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Utilities/setAndForwardRef.mjs +17 -0
- package/dist/esm/vendor/react-native/Utilities/setAndForwardRef.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Utilities/useMergeRefs.mjs +19 -0
- package/dist/esm/vendor/react-native/Utilities/useMergeRefs.mjs.map +1 -0
- package/dist/esm/vendor/react-native/Utilities/useRefEffect.mjs +16 -0
- package/dist/esm/vendor/react-native/Utilities/useRefEffect.mjs.map +1 -0
- package/dist/esm/vendor/react-native/ViewabilityHelper/index.mjs +156 -0
- package/dist/esm/vendor/react-native/ViewabilityHelper/index.mjs.map +1 -0
- package/dist/esm/vendor/react-native/ViewabilityHelper.mjs +149 -0
- package/dist/esm/vendor/react-native/ViewabilityHelper.mjs.map +1 -0
- package/dist/esm/vendor/react-native/VirtualizeUtils/index.mjs +116 -0
- package/dist/esm/vendor/react-native/VirtualizeUtils/index.mjs.map +1 -0
- package/dist/esm/vendor/react-native/VirtualizedList/CellRenderMask.mjs +85 -0
- package/dist/esm/vendor/react-native/VirtualizedList/CellRenderMask.mjs.map +1 -0
- package/dist/esm/vendor/react-native/VirtualizedList/ChildListCollection.mjs +51 -0
- package/dist/esm/vendor/react-native/VirtualizedList/ChildListCollection.mjs.map +1 -0
- package/dist/esm/vendor/react-native/VirtualizedList/StateSafePureComponent.mjs +55 -0
- package/dist/esm/vendor/react-native/VirtualizedList/StateSafePureComponent.mjs.map +1 -0
- package/dist/esm/vendor/react-native/VirtualizedList/VirtualizedListCellRenderer.mjs +145 -0
- package/dist/esm/vendor/react-native/VirtualizedList/VirtualizedListCellRenderer.mjs.map +1 -0
- package/dist/esm/vendor/react-native/VirtualizedList/VirtualizedListContext.mjs +50 -0
- package/dist/esm/vendor/react-native/VirtualizedList/VirtualizedListContext.mjs.map +1 -0
- package/dist/esm/vendor/react-native/VirtualizedList/VirtualizedListProps.mjs +40 -0
- package/dist/esm/vendor/react-native/VirtualizedList/VirtualizedListProps.mjs.map +1 -0
- package/dist/esm/vendor/react-native/VirtualizedList/index.mjs +284 -0
- package/dist/esm/vendor/react-native/VirtualizedList/index.mjs.map +1 -0
- package/dist/esm/vendor/react-native/VirtualizedSectionList/index.mjs +128 -0
- package/dist/esm/vendor/react-native/VirtualizedSectionList/index.mjs.map +1 -0
- package/dist/esm/vendor/react-native/deepDiffer/index.mjs +46 -0
- package/dist/esm/vendor/react-native/deepDiffer/index.mjs.map +1 -0
- package/dist/esm/vendor/react-native/emitter/EventEmitter.mjs +4 -0
- package/dist/esm/vendor/react-native/emitter/EventEmitter.mjs.map +1 -0
- package/dist/esm/vendor/react-native/emitter/EventSubscription.mjs +2 -0
- package/dist/esm/vendor/react-native/emitter/EventSubscription.mjs.map +1 -0
- package/dist/esm/vendor/react-native/emitter/_EmitterSubscription.mjs +31 -0
- package/dist/esm/vendor/react-native/emitter/_EmitterSubscription.mjs.map +1 -0
- package/dist/esm/vendor/react-native/emitter/_EventEmitter.mjs +110 -0
- package/dist/esm/vendor/react-native/emitter/_EventEmitter.mjs.map +1 -0
- package/dist/esm/vendor/react-native/emitter/_EventSubscription.mjs +18 -0
- package/dist/esm/vendor/react-native/emitter/_EventSubscription.mjs.map +1 -0
- package/dist/esm/vendor/react-native/emitter/_EventSubscriptionVendor.mjs +68 -0
- package/dist/esm/vendor/react-native/emitter/_EventSubscriptionVendor.mjs.map +1 -0
- package/dist/esm/vendor/react-native/infoLog/index.mjs +6 -0
- package/dist/esm/vendor/react-native/infoLog/index.mjs.map +1 -0
- package/dist/esm/vendor/react-native/useRefEffect.mjs +16 -0
- package/dist/esm/vendor/react-native/useRefEffect.mjs.map +1 -0
- package/dist/esm/vendor/react-native/vendor/emitter/EventEmitter.mjs +75 -0
- package/dist/esm/vendor/react-native/vendor/emitter/EventEmitter.mjs.map +1 -0
- package/dist/esm/without-animated.mjs +234 -0
- package/dist/esm/without-animated.mjs.map +1 -0
- package/package.json +125 -0
- package/src/AccessibilityInfo/index.tsx +113 -0
- package/src/ActivityIndicator/__tests__/__snapshots__/index-test.js.snap +466 -0
- package/src/ActivityIndicator/__tests__/index-test.tsx +147 -0
- package/src/ActivityIndicator/index.tsx +116 -0
- package/src/Alert/index.tsx +12 -0
- package/src/AppRegistry/AppContainer.tsx +54 -0
- package/src/AppRegistry/__tests__/index-test.node.tsx +144 -0
- package/src/AppRegistry/__tests__/index-test.tsx +94 -0
- package/src/AppRegistry/index.tsx +156 -0
- package/src/AppRegistry/renderApplication.tsx +75 -0
- package/src/AppState/__tests__/index-test.tsx +24 -0
- package/src/AppState/index.tsx +92 -0
- package/src/Appearance/index.tsx +59 -0
- package/src/BackHandler/index.tsx +23 -0
- package/src/Clipboard/index.tsx +61 -0
- package/src/DeviceEmitter.ts +3 -0
- package/src/DeviceInfo/index.tsx +55 -0
- package/src/Dimensions/__tests__/index-test.tsx +54 -0
- package/src/Dimensions/index.tsx +129 -0
- package/src/FlatList.tsx +331 -0
- package/src/I18nManager/index.tsx +31 -0
- package/src/Image/index.tsx +401 -0
- package/src/Image/types.tsx +112 -0
- package/src/ImageBackground/__tests__/index-test.tsx +49 -0
- package/src/ImageBackground/index.tsx +66 -0
- package/src/InteractionManager/TaskQueue.tsx +112 -0
- package/src/InteractionManager/index.tsx +140 -0
- package/src/Keyboard/index.tsx +24 -0
- package/src/KeyboardAvoidingView/index.tsx +55 -0
- package/src/Libraries/Pressability/Pressability.ts +2 -0
- package/src/Libraries/Pressability/usePressability.ts +2 -0
- package/src/Linking/__tests__/index-test.tsx +37 -0
- package/src/Linking/index.tsx +113 -0
- package/src/LogBox/index.tsx +17 -0
- package/src/Modal/ModalAnimation.js +178 -0
- package/src/Modal/ModalContent.js +73 -0
- package/src/Modal/ModalPortal.js +40 -0
- package/src/Modal/index.js +1 -0
- package/src/NativeModules/index.tsx +15 -0
- package/src/PanResponder/Alternative.tsx +385 -0
- package/src/PanResponder/index.tsx +1 -0
- package/src/PixelRatio/index.tsx +49 -0
- package/src/Pressable/__tests__/__snapshots__/index-test.js.snap +196 -0
- package/src/Pressable/index.tsx +236 -0
- package/src/RefreshControl/index.tsx +50 -0
- package/src/SafeAreaView/index.tsx +48 -0
- package/src/ScrollView/ScrollViewBase.tsx +183 -0
- package/src/ScrollView/__tests__/__snapshots__/index-test.js.snap +49 -0
- package/src/ScrollView/index.tsx +892 -0
- package/src/SectionList.tsx +9 -0
- package/src/Share/index.tsx +69 -0
- package/src/StatusBar/index.tsx +22 -0
- package/src/Text/__tests__/__snapshots__/index-test.js.snap +218 -0
- package/src/Text/index.tsx +208 -0
- package/src/Text/types.tsx +96 -0
- package/src/TextInput/index.tsx +453 -0
- package/src/TextInput/types.tsx +74 -0
- package/src/TouchableNativeFeedback.tsx +8 -0
- package/src/TouchableOpacity.tsx +150 -0
- package/src/TouchableWithoutFeedback.tsx +95 -0
- package/src/UnimplementedView.tsx +13 -0
- package/src/Vibration/index.tsx +26 -0
- package/src/View/index.tsx +139 -0
- package/src/View/types.tsx +170 -0
- package/src/VirtualizedList.tsx +9 -0
- package/src/codegenNativeCommand.ts +6 -0
- package/src/codegenNativeComponent.ts +6 -0
- package/src/createElement/__tests__/__snapshots__/index-test.js.snap +13 -0
- package/src/createElement/__tests__/index-test.tsx +647 -0
- package/src/createElement/index.tsx +92 -0
- package/src/createReactDOMStyle.ts +4 -0
- package/src/index.tsx +111 -0
- package/src/modules/requestIdleCallback.ts +32 -0
- package/src/preprocess.ts +7 -0
- package/src/render/index.tsx +16 -0
- package/src/styleTypes.ts +321 -0
- package/src/types.ts +77 -0
- package/src/useColorScheme/index.tsx +28 -0
- package/src/useLocaleContext/index.tsx +10 -0
- package/src/useWindowDimensions/index.tsx +34 -0
- package/src/vendor/react-native/Animated/Animated.js +33 -0
- package/src/vendor/react-native/Animated/AnimatedEvent.js +199 -0
- package/src/vendor/react-native/Animated/AnimatedImplementation.js +649 -0
- package/src/vendor/react-native/Animated/AnimatedMock.js +155 -0
- package/src/vendor/react-native/Animated/AnimatedPlatformConfig.js +11 -0
- package/src/vendor/react-native/Animated/Easing.js +249 -0
- package/src/vendor/react-native/Animated/NativeAnimatedHelper.js +525 -0
- package/src/vendor/react-native/Animated/NativeAnimatedModule.js +57 -0
- package/src/vendor/react-native/Animated/NativeAnimatedTurboModule.js +53 -0
- package/src/vendor/react-native/Animated/SpringConfig.js +88 -0
- package/src/vendor/react-native/Animated/animations/Animation.js +66 -0
- package/src/vendor/react-native/Animated/animations/DecayAnimation.js +88 -0
- package/src/vendor/react-native/Animated/animations/SpringAnimation.js +291 -0
- package/src/vendor/react-native/Animated/animations/TimingAnimation.js +133 -0
- package/src/vendor/react-native/Animated/bezier.js +142 -0
- package/src/vendor/react-native/Animated/components/AnimatedFlatList.jsx +24 -0
- package/src/vendor/react-native/Animated/components/AnimatedImage.js +17 -0
- package/src/vendor/react-native/Animated/components/AnimatedScrollView.jsx +24 -0
- package/src/vendor/react-native/Animated/components/AnimatedSectionList.jsx +24 -0
- package/src/vendor/react-native/Animated/components/AnimatedText.js +15 -0
- package/src/vendor/react-native/Animated/components/AnimatedView.js +15 -0
- package/src/vendor/react-native/Animated/createAnimatedComponent.jsx +39 -0
- package/src/vendor/react-native/Animated/nodes/AnimatedAddition.js +60 -0
- package/src/vendor/react-native/Animated/nodes/AnimatedColor.js +293 -0
- package/src/vendor/react-native/Animated/nodes/AnimatedDiffClamp.js +67 -0
- package/src/vendor/react-native/Animated/nodes/AnimatedDivision.js +78 -0
- package/src/vendor/react-native/Animated/nodes/AnimatedInterpolation.jsx +327 -0
- package/src/vendor/react-native/Animated/nodes/AnimatedModulo.js +56 -0
- package/src/vendor/react-native/Animated/nodes/AnimatedMultiplication.js +59 -0
- package/src/vendor/react-native/Animated/nodes/AnimatedNode.js +190 -0
- package/src/vendor/react-native/Animated/nodes/AnimatedProps.js +160 -0
- package/src/vendor/react-native/Animated/nodes/AnimatedStyle.js +137 -0
- package/src/vendor/react-native/Animated/nodes/AnimatedSubtraction.js +60 -0
- package/src/vendor/react-native/Animated/nodes/AnimatedTracking.js +90 -0
- package/src/vendor/react-native/Animated/nodes/AnimatedTransform.js +122 -0
- package/src/vendor/react-native/Animated/nodes/AnimatedValue.js +292 -0
- package/src/vendor/react-native/Animated/nodes/AnimatedValueXY.js +108 -0
- package/src/vendor/react-native/Animated/nodes/AnimatedWithChildren.js +89 -0
- package/src/vendor/react-native/Animated/useAnimatedProps.js +173 -0
- package/src/vendor/react-native/Batchinator/index.js +77 -0
- package/src/vendor/react-native/EventEmitter/NativeEventEmitter.js +85 -0
- package/src/vendor/react-native/EventEmitter/RCTDeviceEventEmitter.js +22 -0
- package/src/vendor/react-native/FeatureFlags.js +8 -0
- package/src/vendor/react-native/FillRateHelper/index.js +213 -0
- package/src/vendor/react-native/FlatList/index.jsx +518 -0
- package/src/vendor/react-native/JSEventLoopWatchdog/index.js +85 -0
- package/src/vendor/react-native/LayoutAnimation/index.js +119 -0
- package/src/vendor/react-native/PanResponder/index.js +243 -0
- package/src/vendor/react-native/PooledClass/index.js +62 -0
- package/src/vendor/react-native/ReactNative/ReactNativeFeatureFlags.js +20 -0
- package/src/vendor/react-native/SHA +2 -0
- package/src/vendor/react-native/SectionList/index.jsx +100 -0
- package/src/vendor/react-native/StaticContainer/index.js +43 -0
- package/src/vendor/react-native/StaticRenderer/index.js +26 -0
- package/src/vendor/react-native/TouchHistoryMath/index.js +137 -0
- package/src/vendor/react-native/TurboModule/RCTExport.js +37 -0
- package/src/vendor/react-native/TurboModule/TurboModuleRegistry.js +27 -0
- package/src/vendor/react-native/Types/CoreEventTypes.js +151 -0
- package/src/vendor/react-native/Utilities/Platform.js +3 -0
- package/src/vendor/react-native/Utilities/clamp.js +24 -0
- package/src/vendor/react-native/Utilities/setAndForwardRef.js +62 -0
- package/src/vendor/react-native/Utilities/useMergeRefs.js +40 -0
- package/src/vendor/react-native/Utilities/useRefEffect.js +44 -0
- package/src/vendor/react-native/ViewabilityHelper/index.js +251 -0
- package/src/vendor/react-native/ViewabilityHelper.ts +293 -0
- package/src/vendor/react-native/VirtualizeUtils/index.js +204 -0
- package/src/vendor/react-native/VirtualizedList/CellRenderMask.js +135 -0
- package/src/vendor/react-native/VirtualizedList/ChildListCollection.js +75 -0
- package/src/vendor/react-native/VirtualizedList/StateSafePureComponent.js +82 -0
- package/src/vendor/react-native/VirtualizedList/VirtualizedListCellRenderer.jsx +184 -0
- package/src/vendor/react-native/VirtualizedList/VirtualizedListContext.jsx +96 -0
- package/src/vendor/react-native/VirtualizedList/VirtualizedListProps.js +46 -0
- package/src/vendor/react-native/VirtualizedList/index.jsx +378 -0
- package/src/vendor/react-native/VirtualizedSectionList/index.jsx +149 -0
- package/src/vendor/react-native/deepDiffer/index.js +69 -0
- package/src/vendor/react-native/emitter/EventEmitter.js +14 -0
- package/src/vendor/react-native/emitter/EventSubscription.js +12 -0
- package/src/vendor/react-native/emitter/_EmitterSubscription.js +47 -0
- package/src/vendor/react-native/emitter/_EventEmitter.js +175 -0
- package/src/vendor/react-native/emitter/_EventSubscription.js +34 -0
- package/src/vendor/react-native/emitter/_EventSubscriptionVendor.js +96 -0
- package/src/vendor/react-native/infoLog/index.js +21 -0
- package/src/vendor/react-native/useRefEffect.js +44 -0
- package/src/vendor/react-native/vendor/emitter/EventEmitter.js +121 -0
- package/src/without-animated.tsx +288 -0
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) Nicolas Gallagher.
|
|
3
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
4
|
+
*
|
|
5
|
+
* This source code is licensed under the MIT license found in the
|
|
6
|
+
* LICENSE file in the root directory of this source tree.
|
|
7
|
+
*
|
|
8
|
+
* @flow
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
import * as React from 'react'
|
|
12
|
+
import { StyleSheet } from '@hanzogui/react-native-web-internals'
|
|
13
|
+
|
|
14
|
+
import type { ViewProps } from '../View/index'
|
|
15
|
+
import { View } from '../View/index'
|
|
16
|
+
|
|
17
|
+
const createSvgCircle = (style) => (
|
|
18
|
+
<circle cx="16" cy="16" fill="none" r="14" strokeWidth="4" style={style} />
|
|
19
|
+
)
|
|
20
|
+
|
|
21
|
+
type ActivityIndicatorProps = ViewProps & {
|
|
22
|
+
animating?: boolean
|
|
23
|
+
color?: string | null
|
|
24
|
+
hidesWhenStopped?: boolean
|
|
25
|
+
size?: 'small' | 'large' | number
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
const ActivityIndicator = React.forwardRef<any, ActivityIndicatorProps>(
|
|
29
|
+
(props, forwardedRef) => {
|
|
30
|
+
const {
|
|
31
|
+
animating = true,
|
|
32
|
+
color = '#1976D2',
|
|
33
|
+
hidesWhenStopped = true,
|
|
34
|
+
size = 'small',
|
|
35
|
+
style,
|
|
36
|
+
...other
|
|
37
|
+
} = props
|
|
38
|
+
|
|
39
|
+
const svg = (
|
|
40
|
+
<svg height="100%" viewBox="0 0 32 32" width="100%">
|
|
41
|
+
{createSvgCircle({
|
|
42
|
+
stroke: color,
|
|
43
|
+
opacity: 0.2,
|
|
44
|
+
})}
|
|
45
|
+
{createSvgCircle({
|
|
46
|
+
stroke: color,
|
|
47
|
+
strokeDasharray: 80,
|
|
48
|
+
strokeDashoffset: 60,
|
|
49
|
+
})}
|
|
50
|
+
</svg>
|
|
51
|
+
)
|
|
52
|
+
|
|
53
|
+
return (
|
|
54
|
+
<View
|
|
55
|
+
{...other}
|
|
56
|
+
accessibilityRole="progressbar"
|
|
57
|
+
accessibilityValueMax={1}
|
|
58
|
+
accessibilityValueMin={0}
|
|
59
|
+
ref={forwardedRef}
|
|
60
|
+
style={[styles.container, style]}
|
|
61
|
+
>
|
|
62
|
+
<View
|
|
63
|
+
children={svg}
|
|
64
|
+
style={[
|
|
65
|
+
typeof size === 'number'
|
|
66
|
+
? { height: size, width: size }
|
|
67
|
+
: indicatorSizes[size],
|
|
68
|
+
styles.animation,
|
|
69
|
+
!animating && styles.animationPause,
|
|
70
|
+
!animating && hidesWhenStopped && styles.hidesWhenStopped,
|
|
71
|
+
]}
|
|
72
|
+
/>
|
|
73
|
+
</View>
|
|
74
|
+
)
|
|
75
|
+
}
|
|
76
|
+
)
|
|
77
|
+
|
|
78
|
+
ActivityIndicator.displayName = 'ActivityIndicator'
|
|
79
|
+
|
|
80
|
+
const styles = StyleSheet.create({
|
|
81
|
+
container: {
|
|
82
|
+
alignItems: 'center',
|
|
83
|
+
justifyContent: 'center',
|
|
84
|
+
},
|
|
85
|
+
hidesWhenStopped: {
|
|
86
|
+
visibility: 'hidden',
|
|
87
|
+
},
|
|
88
|
+
animation: {
|
|
89
|
+
animationDuration: '0.75s',
|
|
90
|
+
animationKeyframes: [
|
|
91
|
+
{
|
|
92
|
+
'0%': { transform: [{ rotate: '0deg' }] },
|
|
93
|
+
'100%': { transform: [{ rotate: '360deg' }] },
|
|
94
|
+
},
|
|
95
|
+
],
|
|
96
|
+
animationTimingFunction: 'linear',
|
|
97
|
+
animationIterationCount: 'infinite',
|
|
98
|
+
},
|
|
99
|
+
animationPause: {
|
|
100
|
+
animationPlayState: 'paused',
|
|
101
|
+
},
|
|
102
|
+
})
|
|
103
|
+
|
|
104
|
+
const indicatorSizes = StyleSheet.create({
|
|
105
|
+
small: {
|
|
106
|
+
width: 20,
|
|
107
|
+
height: 20,
|
|
108
|
+
},
|
|
109
|
+
large: {
|
|
110
|
+
width: 36,
|
|
111
|
+
height: 36,
|
|
112
|
+
},
|
|
113
|
+
})
|
|
114
|
+
|
|
115
|
+
export { ActivityIndicator }
|
|
116
|
+
export default ActivityIndicator
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) Nicolas Gallagher.
|
|
3
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
4
|
+
*
|
|
5
|
+
* This source code is licensed under the MIT license found in the
|
|
6
|
+
* LICENSE file in the root directory of this source tree.
|
|
7
|
+
*
|
|
8
|
+
* @flow
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
import * as React from 'react'
|
|
12
|
+
import { StyleSheet } from '@hanzogui/react-native-web-internals'
|
|
13
|
+
|
|
14
|
+
import { View } from '../View/index'
|
|
15
|
+
|
|
16
|
+
type Props = {
|
|
17
|
+
WrapperComponent?: React.FunctionComponent<any> | null
|
|
18
|
+
children?: React.ReactNode
|
|
19
|
+
rootTag: any
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export const RootTagContext: React.Context<any> = React.createContext(null)
|
|
23
|
+
|
|
24
|
+
const AppContainer = React.forwardRef((props: Props, forwardedRef?: React.Ref<any>) => {
|
|
25
|
+
const { children, WrapperComponent } = props
|
|
26
|
+
|
|
27
|
+
let innerView = (
|
|
28
|
+
<View key={1} pointerEvents="box-none" style={styles.appContainer}>
|
|
29
|
+
{children}
|
|
30
|
+
</View>
|
|
31
|
+
)
|
|
32
|
+
|
|
33
|
+
if (WrapperComponent) {
|
|
34
|
+
innerView = <WrapperComponent>{innerView}</WrapperComponent>
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
return (
|
|
38
|
+
<RootTagContext.Provider value={props.rootTag}>
|
|
39
|
+
<View pointerEvents="box-none" ref={forwardedRef} style={styles.appContainer}>
|
|
40
|
+
{innerView}
|
|
41
|
+
</View>
|
|
42
|
+
</RootTagContext.Provider>
|
|
43
|
+
)
|
|
44
|
+
})
|
|
45
|
+
|
|
46
|
+
AppContainer.displayName = 'AppContainer'
|
|
47
|
+
|
|
48
|
+
const styles = StyleSheet.create({
|
|
49
|
+
appContainer: {
|
|
50
|
+
flex: 1,
|
|
51
|
+
},
|
|
52
|
+
})
|
|
53
|
+
|
|
54
|
+
export { AppContainer }
|
|
@@ -0,0 +1,144 @@
|
|
|
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
|
+
import React from 'react'
|
|
9
|
+
import ReactDOMServer from 'react-dom/server'
|
|
10
|
+
|
|
11
|
+
import StyleSheet from '../../StyleSheet/index'
|
|
12
|
+
import View from '../../View'
|
|
13
|
+
import AppRegistry from '..'
|
|
14
|
+
|
|
15
|
+
const NoopComponent = () => React.createElement('div')
|
|
16
|
+
|
|
17
|
+
describe('AppRegistry', () => {
|
|
18
|
+
describe('getApplication', () => {
|
|
19
|
+
test('does not throw when missing appParameters', () => {
|
|
20
|
+
AppRegistry.registerComponent('App', () => NoopComponent)
|
|
21
|
+
expect(() => AppRegistry.getApplication('App')).not.toThrow()
|
|
22
|
+
})
|
|
23
|
+
|
|
24
|
+
test('returns "element" and "getStyleElement"', () => {
|
|
25
|
+
AppRegistry.registerComponent('App', () => NoopComponent)
|
|
26
|
+
const { element, getStyleElement } = AppRegistry.getApplication('App', {})
|
|
27
|
+
const styleElement = ReactDOMServer.renderToStaticMarkup(getStyleElement())
|
|
28
|
+
|
|
29
|
+
expect(element).toMatchInlineSnapshot(`
|
|
30
|
+
<AppContainer
|
|
31
|
+
rootTag={{}}
|
|
32
|
+
>
|
|
33
|
+
<NoopComponent />
|
|
34
|
+
</AppContainer>
|
|
35
|
+
`)
|
|
36
|
+
expect(styleElement).toMatchInlineSnapshot(`
|
|
37
|
+
"<style id=\\"react-native-stylesheet\\">[stylesheet-group=\\"0\\"]{}
|
|
38
|
+
body{margin:0;}
|
|
39
|
+
button::-moz-focus-inner,input::-moz-focus-inner{border:0;padding:0;}
|
|
40
|
+
html{-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%;-webkit-tap-highlight-color:rgba(0,0,0,0);}
|
|
41
|
+
input::-webkit-search-cancel-button,input::-webkit-search-decoration,input::-webkit-search-results-button,input::-webkit-search-results-decoration{display:none;}
|
|
42
|
+
[stylesheet-group=\\"1\\"]{}
|
|
43
|
+
.css-view-175oi2r{align-items:stretch;background-color:rgba(0,0,0,0.00);border:0 solid black;box-sizing:border-box;display:flex;flex-basis:auto;flex-direction:column;flex-shrink:0;list-style:none;margin:0px;min-height:0px;min-width:0px;padding:0px;position:relative;text-decoration:none;z-index:0;}
|
|
44
|
+
[stylesheet-group=\\"2\\"]{}
|
|
45
|
+
.r-display-xoduu5{display:inline-flex;}
|
|
46
|
+
.r-flex-13awgt0{flex:1;}
|
|
47
|
+
[stylesheet-group=\\"2.2\\"]{}
|
|
48
|
+
.r-bottom-1p0dtai{bottom:0px;}
|
|
49
|
+
.r-left-1d2f490{left:0px;}
|
|
50
|
+
.r-pointerEvents-105ug2t{pointer-events:auto!important;}
|
|
51
|
+
.r-pointerEvents-12vffkv>*{pointer-events:auto;}
|
|
52
|
+
.r-pointerEvents-12vffkv{pointer-events:none!important;}
|
|
53
|
+
.r-pointerEvents-633pao{pointer-events:none!important;}
|
|
54
|
+
.r-pointerEvents-ah5dr5>*{pointer-events:none;}
|
|
55
|
+
.r-pointerEvents-ah5dr5{pointer-events:auto!important;}
|
|
56
|
+
.r-position-u8s1d{position:absolute;}
|
|
57
|
+
.r-right-zchlnj{right:0px;}
|
|
58
|
+
.r-top-ipm5af{top:0px;}</style>"
|
|
59
|
+
`)
|
|
60
|
+
})
|
|
61
|
+
|
|
62
|
+
test('"getStyleElement" adds props to <style>', () => {
|
|
63
|
+
const nonce = '2Bz9RM/UHvBbmo3jK/PbYZ=='
|
|
64
|
+
AppRegistry.registerComponent('App', () => NoopComponent)
|
|
65
|
+
const { getStyleElement } = AppRegistry.getApplication('App', {})
|
|
66
|
+
const styleElement = getStyleElement({ nonce })
|
|
67
|
+
expect(styleElement.props.nonce).toBe(nonce)
|
|
68
|
+
})
|
|
69
|
+
|
|
70
|
+
test('"getStyleElement" contains style updates', () => {
|
|
71
|
+
const getApplicationStyles = (appName) => {
|
|
72
|
+
const { getStyleElement } = AppRegistry.getApplication(appName, {})
|
|
73
|
+
return getStyleElement().props.dangerouslySetInnerHTML.__html
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
// First render "RootComponent"
|
|
77
|
+
const RootComponent = () => React.createElement(View)
|
|
78
|
+
AppRegistry.registerComponent('App', () => RootComponent)
|
|
79
|
+
const first = getApplicationStyles('App')
|
|
80
|
+
expect(first).toMatchInlineSnapshot(`
|
|
81
|
+
"[stylesheet-group=\\"0\\"]{}
|
|
82
|
+
body{margin:0;}
|
|
83
|
+
button::-moz-focus-inner,input::-moz-focus-inner{border:0;padding:0;}
|
|
84
|
+
html{-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%;-webkit-tap-highlight-color:rgba(0,0,0,0);}
|
|
85
|
+
input::-webkit-search-cancel-button,input::-webkit-search-decoration,input::-webkit-search-results-button,input::-webkit-search-results-decoration{display:none;}
|
|
86
|
+
[stylesheet-group=\\"1\\"]{}
|
|
87
|
+
.css-view-175oi2r{align-items:stretch;background-color:rgba(0,0,0,0.00);border:0 solid black;box-sizing:border-box;display:flex;flex-basis:auto;flex-direction:column;flex-shrink:0;list-style:none;margin:0px;min-height:0px;min-width:0px;padding:0px;position:relative;text-decoration:none;z-index:0;}
|
|
88
|
+
[stylesheet-group=\\"2\\"]{}
|
|
89
|
+
.r-display-xoduu5{display:inline-flex;}
|
|
90
|
+
.r-flex-13awgt0{flex:1;}
|
|
91
|
+
[stylesheet-group=\\"2.2\\"]{}
|
|
92
|
+
.r-bottom-1p0dtai{bottom:0px;}
|
|
93
|
+
.r-left-1d2f490{left:0px;}
|
|
94
|
+
.r-pointerEvents-105ug2t{pointer-events:auto!important;}
|
|
95
|
+
.r-pointerEvents-12vffkv>*{pointer-events:auto;}
|
|
96
|
+
.r-pointerEvents-12vffkv{pointer-events:none!important;}
|
|
97
|
+
.r-pointerEvents-633pao{pointer-events:none!important;}
|
|
98
|
+
.r-pointerEvents-ah5dr5>*{pointer-events:none;}
|
|
99
|
+
.r-pointerEvents-ah5dr5{pointer-events:auto!important;}
|
|
100
|
+
.r-position-u8s1d{position:absolute;}
|
|
101
|
+
.r-right-zchlnj{right:0px;}
|
|
102
|
+
.r-top-ipm5af{top:0px;}"
|
|
103
|
+
`)
|
|
104
|
+
|
|
105
|
+
// Second render "AlternativeComponent"
|
|
106
|
+
const styles = StyleSheet.create({
|
|
107
|
+
root: { borderWidth: 1234, backgroundColor: 'purple' },
|
|
108
|
+
})
|
|
109
|
+
const AlternativeComponent = () => React.createElement(View, { style: styles.root })
|
|
110
|
+
AppRegistry.registerComponent('AlternativeApp', () => AlternativeComponent)
|
|
111
|
+
const second = getApplicationStyles('AlternativeApp')
|
|
112
|
+
expect(second).toMatchInlineSnapshot(`
|
|
113
|
+
"[stylesheet-group=\\"0\\"]{}
|
|
114
|
+
body{margin:0;}
|
|
115
|
+
button::-moz-focus-inner,input::-moz-focus-inner{border:0;padding:0;}
|
|
116
|
+
html{-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%;-webkit-tap-highlight-color:rgba(0,0,0,0);}
|
|
117
|
+
input::-webkit-search-cancel-button,input::-webkit-search-decoration,input::-webkit-search-results-button,input::-webkit-search-results-decoration{display:none;}
|
|
118
|
+
[stylesheet-group=\\"1\\"]{}
|
|
119
|
+
.css-view-175oi2r{align-items:stretch;background-color:rgba(0,0,0,0.00);border:0 solid black;box-sizing:border-box;display:flex;flex-basis:auto;flex-direction:column;flex-shrink:0;list-style:none;margin:0px;min-height:0px;min-width:0px;padding:0px;position:relative;text-decoration:none;z-index:0;}
|
|
120
|
+
[stylesheet-group=\\"2\\"]{}
|
|
121
|
+
.r-borderWidth-1bee2fs{border-bottom-width:1234px;border-left-width:1234px;border-right-width:1234px;border-top-width:1234px;}
|
|
122
|
+
.r-display-xoduu5{display:inline-flex;}
|
|
123
|
+
.r-flex-13awgt0{flex:1;}
|
|
124
|
+
[stylesheet-group=\\"2.2\\"]{}
|
|
125
|
+
.r-backgroundColor-aot4c7{background-color:rgba(128,0,128,1.00);}
|
|
126
|
+
.r-bottom-1p0dtai{bottom:0px;}
|
|
127
|
+
.r-left-1d2f490{left:0px;}
|
|
128
|
+
.r-pointerEvents-105ug2t{pointer-events:auto!important;}
|
|
129
|
+
.r-pointerEvents-12vffkv>*{pointer-events:auto;}
|
|
130
|
+
.r-pointerEvents-12vffkv{pointer-events:none!important;}
|
|
131
|
+
.r-pointerEvents-633pao{pointer-events:none!important;}
|
|
132
|
+
.r-pointerEvents-ah5dr5>*{pointer-events:none;}
|
|
133
|
+
.r-pointerEvents-ah5dr5{pointer-events:auto!important;}
|
|
134
|
+
.r-position-u8s1d{position:absolute;}
|
|
135
|
+
.r-right-zchlnj{right:0px;}
|
|
136
|
+
.r-top-ipm5af{top:0px;}"
|
|
137
|
+
`)
|
|
138
|
+
|
|
139
|
+
// Third render "RootComponent" again
|
|
140
|
+
const third = getApplicationStyles('App')
|
|
141
|
+
expect(third).toEqual(second)
|
|
142
|
+
})
|
|
143
|
+
})
|
|
144
|
+
})
|
|
@@ -0,0 +1,94 @@
|
|
|
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
|
+
import React from 'react'
|
|
9
|
+
|
|
10
|
+
import AppRegistry from '..'
|
|
11
|
+
|
|
12
|
+
const NoopComponent = () => React.createElement('div')
|
|
13
|
+
|
|
14
|
+
describe('AppRegistry', () => {
|
|
15
|
+
describe('runApplication', () => {
|
|
16
|
+
let rootTag
|
|
17
|
+
|
|
18
|
+
beforeEach(() => {
|
|
19
|
+
rootTag = document.createElement('div')
|
|
20
|
+
rootTag.id = 'react-root'
|
|
21
|
+
document.body.appendChild(rootTag)
|
|
22
|
+
})
|
|
23
|
+
|
|
24
|
+
afterEach(() => {
|
|
25
|
+
document.body.removeChild(rootTag)
|
|
26
|
+
})
|
|
27
|
+
|
|
28
|
+
test('callback after render', () => {
|
|
29
|
+
const callback = jest.fn()
|
|
30
|
+
AppRegistry.registerComponent('App', () => NoopComponent)
|
|
31
|
+
AppRegistry.runApplication('App', {
|
|
32
|
+
initialProps: {},
|
|
33
|
+
rootTag,
|
|
34
|
+
callback,
|
|
35
|
+
})
|
|
36
|
+
expect(callback).toHaveBeenCalledTimes(1)
|
|
37
|
+
})
|
|
38
|
+
|
|
39
|
+
test('styles roots in different documents', () => {
|
|
40
|
+
AppRegistry.registerComponent('App', () => NoopComponent)
|
|
41
|
+
AppRegistry.runApplication('App', { initialProps: {}, rootTag })
|
|
42
|
+
|
|
43
|
+
// Create iframe context
|
|
44
|
+
const iframe = document.createElement('iframe')
|
|
45
|
+
document.body.appendChild(iframe)
|
|
46
|
+
|
|
47
|
+
const iframeRootTag = document.createElement('div')
|
|
48
|
+
iframeRootTag.id = 'react-iframe-root'
|
|
49
|
+
iframe.contentWindow.document.body.appendChild(iframeRootTag)
|
|
50
|
+
|
|
51
|
+
// Run in iframe
|
|
52
|
+
AppRegistry.registerComponent('App', () => NoopComponent)
|
|
53
|
+
AppRegistry.runApplication('App', {
|
|
54
|
+
initialProps: {},
|
|
55
|
+
rootTag: iframeRootTag,
|
|
56
|
+
})
|
|
57
|
+
|
|
58
|
+
const iframedoc = iframeRootTag.ownerDocument
|
|
59
|
+
expect(iframedoc).toBe(iframe.contentWindow.document)
|
|
60
|
+
expect(iframedoc).not.toBe(document)
|
|
61
|
+
|
|
62
|
+
const cssText = Array.prototype.slice
|
|
63
|
+
.call(iframedoc.getElementById('react-native-stylesheet').sheet.cssRules)
|
|
64
|
+
.map((cssRule) => cssRule.cssText)
|
|
65
|
+
|
|
66
|
+
expect(cssText).toMatchInlineSnapshot(`
|
|
67
|
+
[
|
|
68
|
+
"[stylesheet-group=\\"0\\"] {}",
|
|
69
|
+
"body {margin: 0;}",
|
|
70
|
+
"button::-moz-focus-inner,input::-moz-focus-inner {border: 0; padding: 0;}",
|
|
71
|
+
"html {-ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: rgba(0,0,0,0);}",
|
|
72
|
+
"input::-webkit-search-cancel-button,input::-webkit-search-decoration,input::-webkit-search-results-button,input::-webkit-search-results-decoration {display: none;}",
|
|
73
|
+
"[stylesheet-group=\\"1\\"] {}",
|
|
74
|
+
".css-view-175oi2r {align-items: stretch; background-color: rgba(0,0,0,0.00); border: 0 solid black; box-sizing: border-box; display: flex; flex-basis: auto; flex-direction: column; flex-shrink: 0; list-style: none; margin: 0px; min-height: 0px; min-width: 0px; padding: 0px; position: relative; text-decoration: none; z-index: 0;}",
|
|
75
|
+
"[stylesheet-group=\\"2\\"] {}",
|
|
76
|
+
".r-display-xoduu5 {display: inline-flex;}",
|
|
77
|
+
".r-flex-13awgt0 {flex: 1;}",
|
|
78
|
+
"[stylesheet-group=\\"2.2\\"] {}",
|
|
79
|
+
".r-bottom-1p0dtai {bottom: 0px;}",
|
|
80
|
+
".r-left-1d2f490 {left: 0px;}",
|
|
81
|
+
".r-pointerEvents-105ug2t {pointer-events: auto !important;}",
|
|
82
|
+
".r-pointerEvents-12vffkv>* {pointer-events: auto;}",
|
|
83
|
+
".r-pointerEvents-12vffkv {pointer-events: none !important;}",
|
|
84
|
+
".r-pointerEvents-633pao {pointer-events: none !important;}",
|
|
85
|
+
".r-pointerEvents-ah5dr5>* {pointer-events: none;}",
|
|
86
|
+
".r-pointerEvents-ah5dr5 {pointer-events: auto !important;}",
|
|
87
|
+
".r-position-u8s1d {position: absolute;}",
|
|
88
|
+
".r-right-zchlnj {right: 0px;}",
|
|
89
|
+
".r-top-ipm5af {top: 0px;}",
|
|
90
|
+
]
|
|
91
|
+
`)
|
|
92
|
+
})
|
|
93
|
+
})
|
|
94
|
+
})
|
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
/**
|
|
3
|
+
* Copyright (c) Nicolas Gallagher.
|
|
4
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
5
|
+
*
|
|
6
|
+
* This source code is licensed under the MIT license found in the
|
|
7
|
+
* LICENSE file in the root directory of this source tree.
|
|
8
|
+
*
|
|
9
|
+
* @flow
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
import type { ComponentType, ReactNode } from 'react'
|
|
13
|
+
import { unmountComponentAtNode } from 'react-dom'
|
|
14
|
+
import { invariant } from '@hanzogui/react-native-web-internals'
|
|
15
|
+
|
|
16
|
+
import { renderApplication, getApplication } from './renderApplication'
|
|
17
|
+
|
|
18
|
+
type AppParams = object
|
|
19
|
+
|
|
20
|
+
type Runnable = {
|
|
21
|
+
getApplication?: (appParams: AppParams) => {
|
|
22
|
+
element: ReactNode
|
|
23
|
+
getStyleElement: (arg0: any) => ReactNode
|
|
24
|
+
}
|
|
25
|
+
run: (appParams: AppParams) => any
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export type ComponentProvider = () => ComponentType<any>
|
|
29
|
+
export type ComponentProviderInstrumentationHook = (
|
|
30
|
+
component: ComponentProvider
|
|
31
|
+
) => ComponentType<any>
|
|
32
|
+
export type WrapperComponentProvider = (arg0: any) => ComponentType<unknown>
|
|
33
|
+
|
|
34
|
+
export type AppConfig = {
|
|
35
|
+
appKey: string
|
|
36
|
+
component?: ComponentProvider
|
|
37
|
+
run?: Function
|
|
38
|
+
section?: boolean
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
const emptyObject = {}
|
|
42
|
+
const runnables: {
|
|
43
|
+
[K in string]: Runnable
|
|
44
|
+
} = {}
|
|
45
|
+
|
|
46
|
+
let componentProviderInstrumentationHook: ComponentProviderInstrumentationHook = (
|
|
47
|
+
component: ComponentProvider
|
|
48
|
+
) => component()
|
|
49
|
+
let wrapperComponentProvider: WrapperComponentProvider | null
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* `AppRegistry` is the JS entry point to running all React Native apps.
|
|
53
|
+
*/
|
|
54
|
+
export class AppRegistry {
|
|
55
|
+
static getAppKeys(): Array<string> {
|
|
56
|
+
return Object.keys(runnables)
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
static getApplication(
|
|
60
|
+
appKey: string,
|
|
61
|
+
appParameters?: AppParams
|
|
62
|
+
): {
|
|
63
|
+
element: ReactNode
|
|
64
|
+
getStyleElement: (arg0: any) => ReactNode
|
|
65
|
+
} {
|
|
66
|
+
invariant(
|
|
67
|
+
runnables[appKey] && runnables[appKey].getApplication,
|
|
68
|
+
`Application ${appKey} has not been registered. ` +
|
|
69
|
+
'This is either due to an import error during initialization or failure to call AppRegistry.registerComponent.'
|
|
70
|
+
)
|
|
71
|
+
|
|
72
|
+
// @ts-ignore
|
|
73
|
+
return runnables[appKey]?.getApplication?.(appParameters)
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
static registerComponent(appKey: string, componentProvider: ComponentProvider): string {
|
|
77
|
+
runnables[appKey] = {
|
|
78
|
+
getApplication: (appParameters: any) =>
|
|
79
|
+
getApplication(
|
|
80
|
+
componentProviderInstrumentationHook(componentProvider),
|
|
81
|
+
appParameters ? appParameters.initialProps : emptyObject,
|
|
82
|
+
wrapperComponentProvider && wrapperComponentProvider(appParameters)
|
|
83
|
+
),
|
|
84
|
+
run: (appParameters: any) =>
|
|
85
|
+
renderApplication(
|
|
86
|
+
componentProviderInstrumentationHook(componentProvider),
|
|
87
|
+
wrapperComponentProvider && wrapperComponentProvider(appParameters),
|
|
88
|
+
appParameters.callback,
|
|
89
|
+
{
|
|
90
|
+
hydrate: appParameters.hydrate || false,
|
|
91
|
+
initialProps: appParameters.initialProps || emptyObject,
|
|
92
|
+
mode: appParameters.mode || 'legacy',
|
|
93
|
+
rootTag: appParameters.rootTag,
|
|
94
|
+
}
|
|
95
|
+
),
|
|
96
|
+
}
|
|
97
|
+
return appKey
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
static registerConfig(config: Array<AppConfig>) {
|
|
101
|
+
config.forEach(({ appKey, component, run }) => {
|
|
102
|
+
if (run) {
|
|
103
|
+
AppRegistry.registerRunnable(appKey, run)
|
|
104
|
+
} else {
|
|
105
|
+
invariant(component, 'No component provider passed in')
|
|
106
|
+
// @ts-ignore
|
|
107
|
+
AppRegistry.registerComponent(appKey, component)
|
|
108
|
+
}
|
|
109
|
+
})
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
// TODO: fix style sheet creation when using this method
|
|
113
|
+
static registerRunnable(appKey: string, run: Function): string {
|
|
114
|
+
// @ts-ignore
|
|
115
|
+
runnables[appKey] = { run }
|
|
116
|
+
return appKey
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
static runApplication(appKey: string, appParameters: Record<string, any>): void {
|
|
120
|
+
const isDevelopment =
|
|
121
|
+
process.env.NODE_ENV !== 'production' && process.env.NODE_ENV !== 'test'
|
|
122
|
+
if (isDevelopment) {
|
|
123
|
+
const params = { ...appParameters }
|
|
124
|
+
params.rootTag = `#${params.rootTag.id}`
|
|
125
|
+
|
|
126
|
+
console.log(
|
|
127
|
+
`Running application "${appKey}" with appParams:\n`,
|
|
128
|
+
params,
|
|
129
|
+
`\nDevelopment-level warnings: ${isDevelopment ? 'ON' : 'OFF'}.` +
|
|
130
|
+
`\nPerformance optimizations: ${isDevelopment ? 'OFF' : 'ON'}.`
|
|
131
|
+
)
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
invariant(
|
|
135
|
+
runnables[appKey] && runnables[appKey].run,
|
|
136
|
+
`Application "${appKey}" has not been registered. ` +
|
|
137
|
+
'This is either due to an import error during initialization or failure to call AppRegistry.registerComponent.'
|
|
138
|
+
)
|
|
139
|
+
|
|
140
|
+
return runnables[appKey].run(appParameters)
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
static setComponentProviderInstrumentationHook(
|
|
144
|
+
hook: ComponentProviderInstrumentationHook
|
|
145
|
+
) {
|
|
146
|
+
componentProviderInstrumentationHook = hook
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
static setWrapperComponentProvider(provider: WrapperComponentProvider) {
|
|
150
|
+
wrapperComponentProvider = provider
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
static unmountApplicationComponentAtRootTag(rootTag: any) {
|
|
154
|
+
unmountComponentAtNode(rootTag)
|
|
155
|
+
}
|
|
156
|
+
}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) Nicolas Gallagher.
|
|
3
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
4
|
+
*
|
|
5
|
+
* This source code is licensed under the MIT license found in the
|
|
6
|
+
* LICENSE file in the root directory of this source tree.
|
|
7
|
+
*
|
|
8
|
+
* @flow
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
import type { ComponentType, FunctionComponent, ReactNode } from 'react'
|
|
12
|
+
import React from 'react'
|
|
13
|
+
import { StyleSheet } from '@hanzogui/react-native-web-internals'
|
|
14
|
+
import { invariant } from '@hanzogui/react-native-web-internals'
|
|
15
|
+
|
|
16
|
+
import { renderLegacy, hydrate, hydrateLegacy, render } from '../render/index'
|
|
17
|
+
import { AppContainer } from './AppContainer'
|
|
18
|
+
|
|
19
|
+
export function renderApplication<Props extends object>(
|
|
20
|
+
RootComponent: ComponentType<Props>,
|
|
21
|
+
WrapperComponent: FunctionComponent<any> | null = null,
|
|
22
|
+
callback: () => void = () => {},
|
|
23
|
+
options: {
|
|
24
|
+
hydrate: boolean
|
|
25
|
+
initialProps: Props
|
|
26
|
+
mode: 'concurrent' | 'legacy'
|
|
27
|
+
rootTag: any
|
|
28
|
+
}
|
|
29
|
+
) {
|
|
30
|
+
const { hydrate: shouldHydrate, initialProps, mode, rootTag } = options
|
|
31
|
+
const renderFn = shouldHydrate
|
|
32
|
+
? mode === 'concurrent'
|
|
33
|
+
? hydrate
|
|
34
|
+
: hydrateLegacy
|
|
35
|
+
: mode === 'concurrent'
|
|
36
|
+
? render
|
|
37
|
+
: renderLegacy
|
|
38
|
+
|
|
39
|
+
invariant(rootTag, 'Expect to have a valid rootTag, instead got ', rootTag)
|
|
40
|
+
|
|
41
|
+
// @ts-ignore
|
|
42
|
+
return renderFn(
|
|
43
|
+
<AppContainer WrapperComponent={WrapperComponent} ref={callback} rootTag={rootTag}>
|
|
44
|
+
<RootComponent {...initialProps} />
|
|
45
|
+
</AppContainer>,
|
|
46
|
+
rootTag
|
|
47
|
+
)
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export function getApplication(
|
|
51
|
+
RootComponent: ComponentType<object>,
|
|
52
|
+
initialProps: object,
|
|
53
|
+
WrapperComponent?: FunctionComponent<any> | null
|
|
54
|
+
): {
|
|
55
|
+
element: ReactNode
|
|
56
|
+
getStyleElement: (object: object) => ReactNode
|
|
57
|
+
} {
|
|
58
|
+
const element = (
|
|
59
|
+
<AppContainer WrapperComponent={WrapperComponent} rootTag={{}}>
|
|
60
|
+
<RootComponent {...initialProps} />
|
|
61
|
+
</AppContainer>
|
|
62
|
+
)
|
|
63
|
+
// Don't escape CSS text
|
|
64
|
+
const getStyleElement = (props) => {
|
|
65
|
+
const sheet = StyleSheet.getSheet()
|
|
66
|
+
return (
|
|
67
|
+
<style
|
|
68
|
+
{...props}
|
|
69
|
+
dangerouslySetInnerHTML={{ __html: sheet.textContent }}
|
|
70
|
+
id={sheet.id}
|
|
71
|
+
/>
|
|
72
|
+
)
|
|
73
|
+
}
|
|
74
|
+
return { element, getStyleElement }
|
|
75
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
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
|
+
import AppState from '..'
|
|
9
|
+
|
|
10
|
+
describe('apis/AppState', () => {
|
|
11
|
+
const handler = () => {}
|
|
12
|
+
|
|
13
|
+
describe('addEventListener', () => {
|
|
14
|
+
test('throws if the provided "eventType" is not supported', () => {
|
|
15
|
+
expect(() => AppState.addEventListener('foo', handler)).toThrow()
|
|
16
|
+
expect(() => AppState.addEventListener('change', handler).remove()).not.toThrow()
|
|
17
|
+
})
|
|
18
|
+
|
|
19
|
+
test('returns remove subscription', () => {
|
|
20
|
+
const subscription = AppState.addEventListener('change', handler)
|
|
21
|
+
expect(() => subscription.remove()).not.toThrow()
|
|
22
|
+
})
|
|
23
|
+
})
|
|
24
|
+
})
|