@tamagui/react-native-web-lite 1.114.3 → 1.115.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/dist/cjs/AccessibilityInfo/index.cjs +98 -0
- package/dist/cjs/ActivityIndicator/__tests__/index-test.cjs +188 -0
- package/dist/cjs/ActivityIndicator/index.cjs +127 -0
- package/dist/cjs/Alert/index.cjs +29 -0
- package/dist/cjs/AppRegistry/AppContainer.cjs +70 -0
- package/dist/cjs/AppRegistry/__tests__/{index-test.js → index-test.cjs} +22 -16
- package/dist/cjs/AppRegistry/__tests__/{index-test.node.js → index-test.node.cjs} +46 -22
- package/dist/cjs/AppRegistry/index.cjs +99 -0
- package/dist/cjs/AppRegistry/renderApplication.cjs +80 -0
- package/dist/cjs/AppState/__tests__/{index-test.js → index-test.cjs} +17 -16
- package/dist/cjs/AppState/index.cjs +69 -0
- package/dist/cjs/Appearance/index.cjs +54 -0
- package/dist/cjs/BackHandler/index.cjs +36 -0
- package/dist/cjs/Clipboard/{index.js → index.cjs} +17 -13
- package/dist/cjs/{DeviceEmitter.js → DeviceEmitter.cjs} +23 -14
- package/dist/cjs/DeviceInfo/{index.js → index.cjs} +37 -19
- package/dist/cjs/Dimensions/__tests__/{index-test.js → index-test.cjs} +18 -15
- package/dist/cjs/Dimensions/{index.js → index.cjs} +34 -28
- package/dist/cjs/I18nManager/index.cjs +35 -0
- package/dist/cjs/Image/index.cjs +292 -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 +77 -0
- package/dist/cjs/Keyboard/index.cjs +39 -0
- package/dist/cjs/KeyboardAvoidingView/{index.js → index.cjs} +32 -21
- package/dist/cjs/Linking/__tests__/{index-test.js → index-test.cjs} +19 -17
- package/dist/cjs/Linking/{index.js → index.cjs} +18 -15
- package/dist/cjs/LogBox/index.cjs +32 -0
- package/dist/cjs/Modal/ModalAnimation.cjs +148 -0
- package/dist/cjs/Modal/ModalContent.cjs +86 -0
- package/dist/cjs/Modal/ModalFocusTrap.cjs +108 -0
- package/dist/cjs/Modal/ModalPortal.cjs +53 -0
- package/dist/cjs/Modal/index.cjs +97 -0
- package/dist/cjs/NativeModules/index.cjs +30 -0
- package/dist/cjs/PanResponder/Alternative.cjs +198 -0
- package/dist/cjs/PanResponder/Alternative.cjs.map +6 -0
- package/dist/cjs/PanResponder/{index.js → index.cjs} +23 -14
- package/dist/cjs/PixelRatio/{index.js → index.cjs} +23 -15
- package/dist/cjs/Pressable/index.cjs +143 -0
- package/dist/cjs/RefreshControl/{index.js → index.cjs} +27 -16
- package/dist/cjs/SafeAreaView/index.cjs +62 -0
- package/dist/cjs/ScrollView/ScrollViewBase.cjs +137 -0
- package/dist/cjs/ScrollView/{index.js → index.cjs} +123 -108
- package/dist/cjs/Share/index.cjs +49 -0
- package/dist/cjs/StatusBar/{index.js → index.cjs} +17 -13
- package/dist/cjs/Text/index.cjs +170 -0
- package/dist/cjs/Text/types.cjs +16 -0
- package/dist/cjs/TextInput/__tests__/index-test.cjs +709 -0
- package/dist/cjs/TextInput/index.cjs +277 -0
- package/dist/cjs/TextInput/types.cjs +16 -0
- package/dist/cjs/TouchableOpacity.cjs +117 -0
- package/dist/cjs/{TouchableWithoutFeedback.js → TouchableWithoutFeedback.cjs} +60 -58
- package/dist/cjs/UnimplementedView.cjs +47 -0
- package/dist/cjs/Vibration/index.cjs +37 -0
- package/dist/cjs/View/{index.js → index.cjs} +49 -28
- package/dist/cjs/View/types.cjs +16 -0
- package/dist/cjs/createElement/__tests__/index-test.cjs +765 -0
- package/dist/cjs/createElement/index.cjs +54 -0
- package/dist/cjs/createReactDOMStyle.cjs +27 -0
- package/dist/cjs/findNodeHandle.cjs +33 -0
- package/dist/cjs/{index.js → index.cjs} +77 -16
- package/dist/cjs/render/{index.js → index.cjs} +20 -14
- package/dist/cjs/styleTypes.cjs +16 -0
- package/dist/cjs/types.cjs +16 -0
- package/dist/cjs/useColorScheme/{index.js → index.cjs} +27 -16
- package/dist/cjs/useLocaleContext/index.cjs +26 -0
- package/dist/cjs/useWindowDimensions/{index.js → index.cjs} +28 -16
- package/dist/cjs/vendor/react-native/Animated/Animated.cjs +52 -0
- package/dist/cjs/vendor/react-native/Animated/AnimatedEvent.cjs +125 -0
- package/dist/cjs/vendor/react-native/Animated/AnimatedImplementation.cjs +514 -0
- package/dist/cjs/vendor/react-native/Animated/AnimatedMock.cjs +149 -0
- package/dist/cjs/vendor/react-native/Animated/AnimatedPlatformConfig.cjs +1 -0
- package/dist/cjs/vendor/react-native/Animated/{Easing.js → Easing.cjs} +31 -22
- package/dist/cjs/vendor/react-native/Animated/NativeAnimatedHelper.cjs +331 -0
- package/dist/cjs/vendor/react-native/Animated/{NativeAnimatedModule.js → NativeAnimatedModule.cjs} +23 -14
- package/dist/cjs/vendor/react-native/Animated/{NativeAnimatedTurboModule.js → NativeAnimatedTurboModule.cjs} +23 -14
- package/dist/cjs/vendor/react-native/Animated/{SpringConfig.js → SpringConfig.cjs} +20 -12
- package/dist/cjs/vendor/react-native/Animated/animations/{Animation.js → Animation.cjs} +29 -24
- package/dist/cjs/vendor/react-native/Animated/animations/{DecayAnimation.js → DecayAnimation.cjs} +27 -16
- package/dist/cjs/vendor/react-native/Animated/animations/{SpringAnimation.js → SpringAnimation.cjs} +48 -34
- package/dist/cjs/vendor/react-native/Animated/animations/{TimingAnimation.js → TimingAnimation.cjs} +32 -26
- package/dist/cjs/vendor/react-native/Animated/{bezier.js → bezier.cjs} +38 -27
- package/dist/cjs/vendor/react-native/Animated/components/AnimatedImage.cjs +40 -0
- package/dist/cjs/vendor/react-native/Animated/components/AnimatedScrollView.cjs +45 -0
- package/dist/cjs/vendor/react-native/Animated/components/AnimatedText.cjs +40 -0
- package/dist/cjs/vendor/react-native/Animated/components/AnimatedView.cjs +40 -0
- package/dist/cjs/vendor/react-native/Animated/createAnimatedComponent.cjs +61 -0
- package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedAddition.js → AnimatedAddition.cjs} +26 -15
- package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedColor.js → AnimatedColor.cjs} +57 -40
- package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedDiffClamp.js → AnimatedDiffClamp.cjs} +27 -16
- package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedDivision.js → AnimatedDivision.cjs} +29 -16
- package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedInterpolation.js → AnimatedInterpolation.cjs} +62 -72
- package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedModulo.js → AnimatedModulo.cjs} +25 -15
- package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedMultiplication.js → AnimatedMultiplication.cjs} +26 -15
- package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedNode.js → AnimatedNode.cjs} +39 -39
- package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedProps.js → AnimatedProps.cjs} +34 -24
- package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedStyle.js → AnimatedStyle.cjs} +35 -21
- package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedSubtraction.js → AnimatedSubtraction.cjs} +26 -15
- package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedTracking.js → AnimatedTracking.cjs} +34 -32
- package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedTransform.js → AnimatedTransform.cjs} +32 -21
- package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedValue.js → AnimatedValue.cjs} +43 -50
- package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedValueXY.js → AnimatedValueXY.cjs} +38 -31
- package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedWithChildren.js → AnimatedWithChildren.cjs} +31 -21
- package/dist/cjs/vendor/react-native/Animated/{useAnimatedProps.js → useAnimatedProps.cjs} +44 -31
- package/dist/cjs/vendor/react-native/{FeatureFlags.js → FeatureFlags.cjs} +16 -11
- package/dist/cjs/vendor/react-native/NativeEventEmitter/{RCTDeviceEventEmitter.js → RCTDeviceEventEmitter.cjs} +23 -14
- package/dist/cjs/vendor/react-native/NativeEventEmitter/{index.js → index.cjs} +29 -25
- package/dist/cjs/vendor/react-native/PanResponder/index.cjs +272 -0
- package/dist/cjs/vendor/react-native/TouchHistoryMath/index.cjs +105 -0
- package/dist/cjs/vendor/react-native/TurboModule/RCTExport.cjs +1 -0
- package/dist/cjs/vendor/react-native/TurboModule/TurboModuleRegistry.cjs +34 -0
- package/dist/cjs/vendor/react-native/Types/CoreEventTypes.cjs +18 -0
- package/dist/cjs/vendor/react-native/Utilities/setAndForwardRef.cjs +36 -0
- package/dist/cjs/vendor/react-native/emitter/{EventEmitter.js → EventEmitter.cjs} +24 -14
- package/dist/cjs/vendor/react-native/emitter/EventSubscription.cjs +1 -0
- package/dist/cjs/vendor/react-native/emitter/{_EmitterSubscription.js → _EmitterSubscription.cjs} +24 -15
- package/dist/cjs/vendor/react-native/emitter/{_EventEmitter.js → _EventEmitter.cjs} +39 -39
- package/dist/cjs/vendor/react-native/emitter/{_EventSubscription.js → _EventSubscription.cjs} +17 -11
- package/dist/cjs/vendor/react-native/emitter/{_EventSubscriptionVendor.js → _EventSubscriptionVendor.cjs} +21 -16
- package/dist/cjs/vendor/react-native/infoLog/index.cjs +31 -0
- package/dist/cjs/vendor/react-native/useRefEffect.cjs +32 -0
- package/dist/cjs/without-animated.cjs +155 -0
- package/package.json +9 -8
- package/dist/cjs/AccessibilityInfo/index.js +0 -96
- package/dist/cjs/ActivityIndicator/__tests__/index-test.js +0 -116
- package/dist/cjs/ActivityIndicator/index.js +0 -108
- package/dist/cjs/Alert/index.js +0 -25
- package/dist/cjs/AppRegistry/AppContainer.js +0 -41
- package/dist/cjs/AppRegistry/index.js +0 -98
- package/dist/cjs/AppRegistry/renderApplication.js +0 -51
- package/dist/cjs/AppState/index.js +0 -71
- package/dist/cjs/Appearance/index.js +0 -41
- package/dist/cjs/BackHandler/index.js +0 -32
- package/dist/cjs/I18nManager/index.js +0 -30
- package/dist/cjs/Image/index.js +0 -253
- package/dist/cjs/Image/types.js +0 -14
- package/dist/cjs/ImageBackground/__tests__/index-test.js +0 -48
- package/dist/cjs/ImageBackground/index.js +0 -62
- package/dist/cjs/Keyboard/index.js +0 -35
- package/dist/cjs/LogBox/index.js +0 -31
- package/dist/cjs/Modal/ModalAnimation.js +0 -137
- package/dist/cjs/Modal/ModalContent.js +0 -75
- package/dist/cjs/Modal/ModalFocusTrap.js +0 -105
- package/dist/cjs/Modal/ModalPortal.js +0 -43
- package/dist/cjs/Modal/index.js +0 -92
- package/dist/cjs/NativeModules/index.js +0 -25
- package/dist/cjs/Pressable/index.js +0 -140
- package/dist/cjs/SafeAreaView/index.js +0 -43
- package/dist/cjs/ScrollView/ScrollViewBase.js +0 -124
- package/dist/cjs/Share/index.js +0 -56
- package/dist/cjs/Text/index.js +0 -152
- package/dist/cjs/Text/types.js +0 -14
- package/dist/cjs/TextInput/__tests__/index-test.js +0 -422
- package/dist/cjs/TextInput/index.js +0 -260
- package/dist/cjs/TextInput/types.js +0 -14
- package/dist/cjs/TouchableOpacity.js +0 -123
- package/dist/cjs/UnimplementedView.js +0 -36
- package/dist/cjs/Vibration/index.js +0 -31
- package/dist/cjs/View/types.js +0 -14
- package/dist/cjs/createElement/__tests__/index-test.js +0 -536
- package/dist/cjs/createElement/index.js +0 -37
- package/dist/cjs/createReactDOMStyle.js +0 -21
- package/dist/cjs/findNodeHandle.js +0 -29
- package/dist/cjs/styleTypes.js +0 -14
- package/dist/cjs/types.js +0 -14
- package/dist/cjs/useLocaleContext/index.js +0 -21
- package/dist/cjs/vendor/react-native/Animated/Animated.js +0 -35
- package/dist/cjs/vendor/react-native/Animated/AnimatedEvent.js +0 -143
- package/dist/cjs/vendor/react-native/Animated/AnimatedImplementation.js +0 -458
- package/dist/cjs/vendor/react-native/Animated/AnimatedMock.js +0 -126
- package/dist/cjs/vendor/react-native/Animated/AnimatedPlatformConfig.js +0 -2
- package/dist/cjs/vendor/react-native/Animated/NativeAnimatedHelper.js +0 -335
- package/dist/cjs/vendor/react-native/Animated/components/AnimatedImage.js +0 -29
- package/dist/cjs/vendor/react-native/Animated/components/AnimatedScrollView.js +0 -38
- package/dist/cjs/vendor/react-native/Animated/components/AnimatedText.js +0 -29
- package/dist/cjs/vendor/react-native/Animated/components/AnimatedView.js +0 -29
- package/dist/cjs/vendor/react-native/Animated/createAnimatedComponent.js +0 -42
- package/dist/cjs/vendor/react-native/PanResponder/index.js +0 -272
- package/dist/cjs/vendor/react-native/TouchHistoryMath/index.js +0 -118
- package/dist/cjs/vendor/react-native/TurboModule/RCTExport.js +0 -2
- package/dist/cjs/vendor/react-native/TurboModule/TurboModuleRegistry.js +0 -28
- package/dist/cjs/vendor/react-native/Types/CoreEventTypes.js +0 -15
- package/dist/cjs/vendor/react-native/Utilities/setAndForwardRef.js +0 -29
- package/dist/cjs/vendor/react-native/emitter/EventSubscription.js +0 -2
- package/dist/cjs/vendor/react-native/infoLog/index.js +0 -25
- package/dist/cjs/vendor/react-native/useRefEffect.js +0 -30
- package/dist/cjs/without-animated.js +0 -95
- /package/dist/cjs/AccessibilityInfo/{index.js.map → index.cjs.map} +0 -0
- /package/dist/cjs/ActivityIndicator/__tests__/{index-test.js.map → index-test.cjs.map} +0 -0
- /package/dist/cjs/ActivityIndicator/{index.js.map → index.cjs.map} +0 -0
- /package/dist/cjs/Alert/{index.js.map → index.cjs.map} +0 -0
- /package/dist/cjs/AppRegistry/{AppContainer.js.map → AppContainer.cjs.map} +0 -0
- /package/dist/cjs/AppRegistry/__tests__/{index-test.js.map → index-test.cjs.map} +0 -0
- /package/dist/cjs/AppRegistry/__tests__/{index-test.node.js.map → index-test.node.cjs.map} +0 -0
- /package/dist/cjs/AppRegistry/{index.js.map → index.cjs.map} +0 -0
- /package/dist/cjs/AppRegistry/{renderApplication.js.map → renderApplication.cjs.map} +0 -0
- /package/dist/cjs/AppState/__tests__/{index-test.js.map → index-test.cjs.map} +0 -0
- /package/dist/cjs/AppState/{index.js.map → index.cjs.map} +0 -0
- /package/dist/cjs/Appearance/{index.js.map → index.cjs.map} +0 -0
- /package/dist/cjs/BackHandler/{index.js.map → index.cjs.map} +0 -0
- /package/dist/cjs/Clipboard/{index.js.map → index.cjs.map} +0 -0
- /package/dist/cjs/{DeviceEmitter.js.map → DeviceEmitter.cjs.map} +0 -0
- /package/dist/cjs/DeviceInfo/{index.js.map → index.cjs.map} +0 -0
- /package/dist/cjs/Dimensions/__tests__/{index-test.js.map → index-test.cjs.map} +0 -0
- /package/dist/cjs/Dimensions/{index.js.map → index.cjs.map} +0 -0
- /package/dist/cjs/I18nManager/{index.js.map → index.cjs.map} +0 -0
- /package/dist/cjs/Image/{index.js.map → index.cjs.map} +0 -0
- /package/dist/cjs/Image/{types.js.map → types.cjs.map} +0 -0
- /package/dist/cjs/ImageBackground/__tests__/{index-test.js.map → index-test.cjs.map} +0 -0
- /package/dist/cjs/ImageBackground/{index.js.map → index.cjs.map} +0 -0
- /package/dist/cjs/Keyboard/{index.js.map → index.cjs.map} +0 -0
- /package/dist/cjs/KeyboardAvoidingView/{index.js.map → index.cjs.map} +0 -0
- /package/dist/cjs/Linking/__tests__/{index-test.js.map → index-test.cjs.map} +0 -0
- /package/dist/cjs/Linking/{index.js.map → index.cjs.map} +0 -0
- /package/dist/cjs/LogBox/{index.js.map → index.cjs.map} +0 -0
- /package/dist/cjs/Modal/{ModalAnimation.js.map → ModalAnimation.cjs.map} +0 -0
- /package/dist/cjs/Modal/{ModalContent.js.map → ModalContent.cjs.map} +0 -0
- /package/dist/cjs/Modal/{ModalFocusTrap.js.map → ModalFocusTrap.cjs.map} +0 -0
- /package/dist/cjs/Modal/{ModalPortal.js.map → ModalPortal.cjs.map} +0 -0
- /package/dist/cjs/Modal/{index.js.map → index.cjs.map} +0 -0
- /package/dist/cjs/NativeModules/{index.js.map → index.cjs.map} +0 -0
- /package/dist/cjs/PanResponder/{index.js.map → index.cjs.map} +0 -0
- /package/dist/cjs/PixelRatio/{index.js.map → index.cjs.map} +0 -0
- /package/dist/cjs/Pressable/{index.js.map → index.cjs.map} +0 -0
- /package/dist/cjs/RefreshControl/{index.js.map → index.cjs.map} +0 -0
- /package/dist/cjs/SafeAreaView/{index.js.map → index.cjs.map} +0 -0
- /package/dist/cjs/ScrollView/{ScrollViewBase.js.map → ScrollViewBase.cjs.map} +0 -0
- /package/dist/cjs/ScrollView/{index.js.map → index.cjs.map} +0 -0
- /package/dist/cjs/Share/{index.js.map → index.cjs.map} +0 -0
- /package/dist/cjs/StatusBar/{index.js.map → index.cjs.map} +0 -0
- /package/dist/cjs/Text/{index.js.map → index.cjs.map} +0 -0
- /package/dist/cjs/Text/{types.js.map → types.cjs.map} +0 -0
- /package/dist/cjs/TextInput/__tests__/{index-test.js.map → index-test.cjs.map} +0 -0
- /package/dist/cjs/TextInput/{index.js.map → index.cjs.map} +0 -0
- /package/dist/cjs/TextInput/{types.js.map → types.cjs.map} +0 -0
- /package/dist/cjs/{TouchableOpacity.js.map → TouchableOpacity.cjs.map} +0 -0
- /package/dist/cjs/{TouchableWithoutFeedback.js.map → TouchableWithoutFeedback.cjs.map} +0 -0
- /package/dist/cjs/{UnimplementedView.js.map → UnimplementedView.cjs.map} +0 -0
- /package/dist/cjs/Vibration/{index.js.map → index.cjs.map} +0 -0
- /package/dist/cjs/View/{index.js.map → index.cjs.map} +0 -0
- /package/dist/cjs/View/{types.js.map → types.cjs.map} +0 -0
- /package/dist/cjs/createElement/__tests__/{index-test.js.map → index-test.cjs.map} +0 -0
- /package/dist/cjs/createElement/{index.js.map → index.cjs.map} +0 -0
- /package/dist/cjs/{createReactDOMStyle.js.map → createReactDOMStyle.cjs.map} +0 -0
- /package/dist/cjs/{findNodeHandle.js.map → findNodeHandle.cjs.map} +0 -0
- /package/dist/cjs/{index.js.map → index.cjs.map} +0 -0
- /package/dist/cjs/render/{index.js.map → index.cjs.map} +0 -0
- /package/dist/cjs/{styleTypes.js.map → styleTypes.cjs.map} +0 -0
- /package/dist/cjs/{types.js.map → types.cjs.map} +0 -0
- /package/dist/cjs/useColorScheme/{index.js.map → index.cjs.map} +0 -0
- /package/dist/cjs/useLocaleContext/{index.js.map → index.cjs.map} +0 -0
- /package/dist/cjs/useWindowDimensions/{index.js.map → index.cjs.map} +0 -0
- /package/dist/cjs/vendor/react-native/Animated/{Animated.js.map → Animated.cjs.map} +0 -0
- /package/dist/cjs/vendor/react-native/Animated/{AnimatedEvent.js.map → AnimatedEvent.cjs.map} +0 -0
- /package/dist/cjs/vendor/react-native/Animated/{AnimatedImplementation.js.map → AnimatedImplementation.cjs.map} +0 -0
- /package/dist/cjs/vendor/react-native/Animated/{AnimatedMock.js.map → AnimatedMock.cjs.map} +0 -0
- /package/dist/cjs/vendor/react-native/Animated/{AnimatedPlatformConfig.js.map → AnimatedPlatformConfig.cjs.map} +0 -0
- /package/dist/cjs/vendor/react-native/Animated/{Easing.js.map → Easing.cjs.map} +0 -0
- /package/dist/cjs/vendor/react-native/Animated/{NativeAnimatedHelper.js.map → NativeAnimatedHelper.cjs.map} +0 -0
- /package/dist/cjs/vendor/react-native/Animated/{NativeAnimatedModule.js.map → NativeAnimatedModule.cjs.map} +0 -0
- /package/dist/cjs/vendor/react-native/Animated/{NativeAnimatedTurboModule.js.map → NativeAnimatedTurboModule.cjs.map} +0 -0
- /package/dist/cjs/vendor/react-native/Animated/{SpringConfig.js.map → SpringConfig.cjs.map} +0 -0
- /package/dist/cjs/vendor/react-native/Animated/animations/{Animation.js.map → Animation.cjs.map} +0 -0
- /package/dist/cjs/vendor/react-native/Animated/animations/{DecayAnimation.js.map → DecayAnimation.cjs.map} +0 -0
- /package/dist/cjs/vendor/react-native/Animated/animations/{SpringAnimation.js.map → SpringAnimation.cjs.map} +0 -0
- /package/dist/cjs/vendor/react-native/Animated/animations/{TimingAnimation.js.map → TimingAnimation.cjs.map} +0 -0
- /package/dist/cjs/vendor/react-native/Animated/{bezier.js.map → bezier.cjs.map} +0 -0
- /package/dist/cjs/vendor/react-native/Animated/components/{AnimatedImage.js.map → AnimatedImage.cjs.map} +0 -0
- /package/dist/cjs/vendor/react-native/Animated/components/{AnimatedScrollView.js.map → AnimatedScrollView.cjs.map} +0 -0
- /package/dist/cjs/vendor/react-native/Animated/components/{AnimatedText.js.map → AnimatedText.cjs.map} +0 -0
- /package/dist/cjs/vendor/react-native/Animated/components/{AnimatedView.js.map → AnimatedView.cjs.map} +0 -0
- /package/dist/cjs/vendor/react-native/Animated/{createAnimatedComponent.js.map → createAnimatedComponent.cjs.map} +0 -0
- /package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedAddition.js.map → AnimatedAddition.cjs.map} +0 -0
- /package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedColor.js.map → AnimatedColor.cjs.map} +0 -0
- /package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedDiffClamp.js.map → AnimatedDiffClamp.cjs.map} +0 -0
- /package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedDivision.js.map → AnimatedDivision.cjs.map} +0 -0
- /package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedInterpolation.js.map → AnimatedInterpolation.cjs.map} +0 -0
- /package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedModulo.js.map → AnimatedModulo.cjs.map} +0 -0
- /package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedMultiplication.js.map → AnimatedMultiplication.cjs.map} +0 -0
- /package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedNode.js.map → AnimatedNode.cjs.map} +0 -0
- /package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedProps.js.map → AnimatedProps.cjs.map} +0 -0
- /package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedStyle.js.map → AnimatedStyle.cjs.map} +0 -0
- /package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedSubtraction.js.map → AnimatedSubtraction.cjs.map} +0 -0
- /package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedTracking.js.map → AnimatedTracking.cjs.map} +0 -0
- /package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedTransform.js.map → AnimatedTransform.cjs.map} +0 -0
- /package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedValue.js.map → AnimatedValue.cjs.map} +0 -0
- /package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedValueXY.js.map → AnimatedValueXY.cjs.map} +0 -0
- /package/dist/cjs/vendor/react-native/Animated/nodes/{AnimatedWithChildren.js.map → AnimatedWithChildren.cjs.map} +0 -0
- /package/dist/cjs/vendor/react-native/Animated/{useAnimatedProps.js.map → useAnimatedProps.cjs.map} +0 -0
- /package/dist/cjs/vendor/react-native/{FeatureFlags.js.map → FeatureFlags.cjs.map} +0 -0
- /package/dist/cjs/vendor/react-native/NativeEventEmitter/{RCTDeviceEventEmitter.js.map → RCTDeviceEventEmitter.cjs.map} +0 -0
- /package/dist/cjs/vendor/react-native/NativeEventEmitter/{index.js.map → index.cjs.map} +0 -0
- /package/dist/cjs/vendor/react-native/PanResponder/{index.js.map → index.cjs.map} +0 -0
- /package/dist/cjs/vendor/react-native/TouchHistoryMath/{index.js.map → index.cjs.map} +0 -0
- /package/dist/cjs/vendor/react-native/TurboModule/{RCTExport.js.map → RCTExport.cjs.map} +0 -0
- /package/dist/cjs/vendor/react-native/TurboModule/{TurboModuleRegistry.js.map → TurboModuleRegistry.cjs.map} +0 -0
- /package/dist/cjs/vendor/react-native/Types/{CoreEventTypes.js.map → CoreEventTypes.cjs.map} +0 -0
- /package/dist/cjs/vendor/react-native/Utilities/{setAndForwardRef.js.map → setAndForwardRef.cjs.map} +0 -0
- /package/dist/cjs/vendor/react-native/emitter/{EventEmitter.js.map → EventEmitter.cjs.map} +0 -0
- /package/dist/cjs/vendor/react-native/emitter/{EventSubscription.js.map → EventSubscription.cjs.map} +0 -0
- /package/dist/cjs/vendor/react-native/emitter/{_EmitterSubscription.js.map → _EmitterSubscription.cjs.map} +0 -0
- /package/dist/cjs/vendor/react-native/emitter/{_EventEmitter.js.map → _EventEmitter.cjs.map} +0 -0
- /package/dist/cjs/vendor/react-native/emitter/{_EventSubscription.js.map → _EventSubscription.cjs.map} +0 -0
- /package/dist/cjs/vendor/react-native/emitter/{_EventSubscriptionVendor.js.map → _EventSubscriptionVendor.cjs.map} +0 -0
- /package/dist/cjs/vendor/react-native/infoLog/{index.js.map → index.cjs.map} +0 -0
- /package/dist/cjs/vendor/react-native/{useRefEffect.js.map → useRefEffect.cjs.map} +0 -0
- /package/dist/cjs/{without-animated.js.map → without-animated.cjs.map} +0 -0
|
@@ -1,32 +1,44 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
|
|
2
3
|
var __create = Object.create;
|
|
3
4
|
var __defProp = Object.defineProperty;
|
|
4
5
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
6
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __getProtoOf = Object.getPrototypeOf,
|
|
7
|
+
var __getProtoOf = Object.getPrototypeOf,
|
|
8
|
+
__hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
9
|
var __export = (target, all) => {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
10
|
+
for (var name in all) __defProp(target, name, {
|
|
11
|
+
get: all[name],
|
|
12
|
+
enumerable: !0
|
|
13
|
+
});
|
|
14
|
+
},
|
|
15
|
+
__copyProps = (to, from, except, desc) => {
|
|
16
|
+
if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
|
|
17
|
+
get: () => from[key],
|
|
18
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
19
|
+
});
|
|
20
|
+
return to;
|
|
21
|
+
};
|
|
16
22
|
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
17
23
|
// If the importer is in node compatibility mode or this is not an ESM
|
|
18
24
|
// file that has been converted to a CommonJS file using a Babel-
|
|
19
25
|
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
20
26
|
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
21
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
22
|
-
|
|
23
|
-
|
|
27
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
28
|
+
value: mod,
|
|
29
|
+
enumerable: !0
|
|
30
|
+
}) : target, mod)),
|
|
31
|
+
__toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
32
|
+
value: !0
|
|
33
|
+
}), mod);
|
|
24
34
|
var AnimatedWithChildren_exports = {};
|
|
25
35
|
__export(AnimatedWithChildren_exports, {
|
|
26
36
|
default: () => AnimatedWithChildren_default
|
|
27
37
|
});
|
|
28
38
|
module.exports = __toCommonJS(AnimatedWithChildren_exports);
|
|
29
|
-
var import_createForOfIteratorHelperLoose = __toESM(require("@babel/runtime/helpers/createForOfIteratorHelperLoose")),
|
|
39
|
+
var import_createForOfIteratorHelperLoose = __toESM(require("@babel/runtime/helpers/createForOfIteratorHelperLoose")),
|
|
40
|
+
import_AnimatedNode = __toESM(require("./AnimatedNode.cjs")),
|
|
41
|
+
import_NativeAnimatedHelper = __toESM(require("../NativeAnimatedHelper.cjs"));
|
|
30
42
|
class AnimatedWithChildren extends import_AnimatedNode.default {
|
|
31
43
|
constructor() {
|
|
32
44
|
super(), this._children = [];
|
|
@@ -34,7 +46,7 @@ class AnimatedWithChildren extends import_AnimatedNode.default {
|
|
|
34
46
|
__makeNative(platformConfig) {
|
|
35
47
|
if (!this.__isNative) {
|
|
36
48
|
this.__isNative = !0;
|
|
37
|
-
for (var _iterator = (0, import_createForOfIteratorHelperLoose.default)(this._children), _step; !(_step = _iterator()).done;
|
|
49
|
+
for (var _iterator = (0, import_createForOfIteratorHelperLoose.default)(this._children), _step; !(_step = _iterator()).done;) {
|
|
38
50
|
var child = _step.value;
|
|
39
51
|
child.__makeNative(platformConfig), import_NativeAnimatedHelper.default.API.connectAnimatedNodes(this.__getNativeTag(), child.__getNativeTag());
|
|
40
52
|
}
|
|
@@ -56,12 +68,10 @@ class AnimatedWithChildren extends import_AnimatedNode.default {
|
|
|
56
68
|
return this._children;
|
|
57
69
|
}
|
|
58
70
|
__callListeners(value) {
|
|
59
|
-
if (super.__callListeners(value), !this.__isNative)
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
}
|
|
71
|
+
if (super.__callListeners(value), !this.__isNative) for (var _iterator2 = (0, import_createForOfIteratorHelperLoose.default)(this._children), _step2; !(_step2 = _iterator2()).done;) {
|
|
72
|
+
var child = _step2.value;
|
|
73
|
+
child.__getValue && child.__callListeners(child.__getValue());
|
|
74
|
+
}
|
|
64
75
|
}
|
|
65
76
|
}
|
|
66
|
-
var AnimatedWithChildren_default = AnimatedWithChildren;
|
|
67
|
-
//# sourceMappingURL=AnimatedWithChildren.js.map
|
|
77
|
+
var AnimatedWithChildren_default = AnimatedWithChildren;
|
|
@@ -1,64 +1,77 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
|
|
2
3
|
var __create = Object.create;
|
|
3
4
|
var __defProp = Object.defineProperty;
|
|
4
5
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
6
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __getProtoOf = Object.getPrototypeOf,
|
|
7
|
+
var __getProtoOf = Object.getPrototypeOf,
|
|
8
|
+
__hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
9
|
var __export = (target, all) => {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
10
|
+
for (var name in all) __defProp(target, name, {
|
|
11
|
+
get: all[name],
|
|
12
|
+
enumerable: !0
|
|
13
|
+
});
|
|
14
|
+
},
|
|
15
|
+
__copyProps = (to, from, except, desc) => {
|
|
16
|
+
if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
|
|
17
|
+
get: () => from[key],
|
|
18
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
19
|
+
});
|
|
20
|
+
return to;
|
|
21
|
+
};
|
|
16
22
|
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
17
23
|
// If the importer is in node compatibility mode or this is not an ESM
|
|
18
24
|
// file that has been converted to a CommonJS file using a Babel-
|
|
19
25
|
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
20
26
|
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
21
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
22
|
-
|
|
23
|
-
|
|
27
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
28
|
+
value: mod,
|
|
29
|
+
enumerable: !0
|
|
30
|
+
}) : target, mod)),
|
|
31
|
+
__toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
32
|
+
value: !0
|
|
33
|
+
}), mod);
|
|
24
34
|
var useAnimatedProps_exports = {};
|
|
25
35
|
__export(useAnimatedProps_exports, {
|
|
26
36
|
default: () => useAnimatedProps
|
|
27
37
|
});
|
|
28
38
|
module.exports = __toCommonJS(useAnimatedProps_exports);
|
|
29
|
-
var import_createForOfIteratorHelperLoose = __toESM(require("@babel/runtime/helpers/createForOfIteratorHelperLoose")),
|
|
39
|
+
var import_createForOfIteratorHelperLoose = __toESM(require("@babel/runtime/helpers/createForOfIteratorHelperLoose")),
|
|
40
|
+
import_react = require("react"),
|
|
41
|
+
import_useRefEffect = __toESM(require("../useRefEffect.cjs")),
|
|
42
|
+
import_AnimatedEvent = require("./AnimatedEvent.cjs"),
|
|
43
|
+
import_NativeAnimatedHelper = __toESM(require("./NativeAnimatedHelper.cjs")),
|
|
44
|
+
import_AnimatedProps = __toESM(require("./nodes/AnimatedProps.cjs"));
|
|
30
45
|
const useLayoutEffect = typeof window > "u" ? import_react.useEffect : import_react.useLayoutEffect;
|
|
31
46
|
function useAnimatedProps(props) {
|
|
32
|
-
var _useReducer = (0, import_react.useReducer)(
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
),
|
|
37
|
-
[props]
|
|
38
|
-
);
|
|
47
|
+
var _useReducer = (0, import_react.useReducer)(count => count + 1, 0),
|
|
48
|
+
scheduleUpdate = _useReducer[1],
|
|
49
|
+
onUpdateRef = (0, import_react.useRef)(null),
|
|
50
|
+
node = (0, import_react.useMemo)(() => new import_AnimatedProps.default(props, () => onUpdateRef.current == null ? void 0 : onUpdateRef.current()), [props]);
|
|
39
51
|
useAnimatedPropsLifecycle(node);
|
|
40
|
-
var refEffect = (0, import_react.useCallback)(
|
|
41
|
-
(instance) => {
|
|
52
|
+
var refEffect = (0, import_react.useCallback)(instance => {
|
|
42
53
|
node.setNativeView(instance), onUpdateRef.current = () => {
|
|
43
54
|
(0, import_react.startTransition)(() => {
|
|
44
55
|
scheduleUpdate();
|
|
45
56
|
});
|
|
46
57
|
};
|
|
47
|
-
var target = getEventTarget(instance),
|
|
58
|
+
var target = getEventTarget(instance),
|
|
59
|
+
events = [];
|
|
48
60
|
for (var propName in props) {
|
|
49
61
|
var propValue = props[propName];
|
|
50
62
|
propValue instanceof import_AnimatedEvent.AnimatedEvent && propValue.__isNative && (propValue.__attach(target, propName), events.push([propName, propValue]));
|
|
51
63
|
}
|
|
52
64
|
return () => {
|
|
53
65
|
onUpdateRef.current = null;
|
|
54
|
-
for (var _iterator = (0, import_createForOfIteratorHelperLoose.default)(events), _step; !(_step = _iterator()).done;
|
|
55
|
-
var _step$value = _step.value,
|
|
66
|
+
for (var _iterator = (0, import_createForOfIteratorHelperLoose.default)(events), _step; !(_step = _iterator()).done;) {
|
|
67
|
+
var _step$value = _step.value,
|
|
68
|
+
_propName = _step$value[0],
|
|
69
|
+
_propValue = _step$value[1];
|
|
56
70
|
_propValue.__detach(target, _propName);
|
|
57
71
|
}
|
|
58
72
|
};
|
|
59
|
-
},
|
|
60
|
-
|
|
61
|
-
), callbackRef = (0, import_useRefEffect.default)(refEffect);
|
|
73
|
+
}, [props, node]),
|
|
74
|
+
callbackRef = (0, import_useRefEffect.default)(refEffect);
|
|
62
75
|
return [reduceAnimatedProps(node), callbackRef];
|
|
63
76
|
}
|
|
64
77
|
function reduceAnimatedProps(node) {
|
|
@@ -68,7 +81,8 @@ function reduceAnimatedProps(node) {
|
|
|
68
81
|
};
|
|
69
82
|
}
|
|
70
83
|
function useAnimatedPropsLifecycle(node) {
|
|
71
|
-
var prevNodeRef = (0, import_react.useRef)(null),
|
|
84
|
+
var prevNodeRef = (0, import_react.useRef)(null),
|
|
85
|
+
isUnmountingRef = (0, import_react.useRef)(!1);
|
|
72
86
|
(0, import_react.useEffect)(() => {
|
|
73
87
|
import_NativeAnimatedHelper.default.API.flushQueue();
|
|
74
88
|
}), useLayoutEffect(() => (isUnmountingRef.current = !1, () => {
|
|
@@ -85,5 +99,4 @@ function useAnimatedPropsLifecycle(node) {
|
|
|
85
99
|
}
|
|
86
100
|
function getEventTarget(instance) {
|
|
87
101
|
return typeof instance == "object" && typeof instance?.getScrollableNode == "function" ? instance.getScrollableNode() : instance;
|
|
88
|
-
}
|
|
89
|
-
//# sourceMappingURL=useAnimatedProps.js.map
|
|
102
|
+
}
|
|
@@ -3,15 +3,21 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
|
3
3
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
4
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
5
|
var __export = (target, all) => {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
6
|
+
for (var name in all) __defProp(target, name, {
|
|
7
|
+
get: all[name],
|
|
8
|
+
enumerable: !0
|
|
9
|
+
});
|
|
10
|
+
},
|
|
11
|
+
__copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
|
|
13
|
+
get: () => from[key],
|
|
14
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
15
|
+
});
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
19
|
+
value: !0
|
|
20
|
+
}), mod);
|
|
15
21
|
var FeatureFlags_exports = {};
|
|
16
22
|
__export(FeatureFlags_exports, {
|
|
17
23
|
ReactNativeFeatureFlags: () => ReactNativeFeatureFlags
|
|
@@ -24,5 +30,4 @@ const ReactNativeFeatureFlags = {
|
|
|
24
30
|
animatedShouldDebounceQueueFlush: () => !1,
|
|
25
31
|
animatedShouldUseSingleOp: () => !1,
|
|
26
32
|
enableCppComponents: () => !1
|
|
27
|
-
};
|
|
28
|
-
//# sourceMappingURL=FeatureFlags.js.map
|
|
33
|
+
};
|
|
@@ -2,28 +2,37 @@ var __create = Object.create;
|
|
|
2
2
|
var __defProp = Object.defineProperty;
|
|
3
3
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __getProtoOf = Object.getPrototypeOf,
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf,
|
|
6
|
+
__hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
7
|
var __export = (target, all) => {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
8
|
+
for (var name in all) __defProp(target, name, {
|
|
9
|
+
get: all[name],
|
|
10
|
+
enumerable: !0
|
|
11
|
+
});
|
|
12
|
+
},
|
|
13
|
+
__copyProps = (to, from, except, desc) => {
|
|
14
|
+
if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
|
|
15
|
+
get: () => from[key],
|
|
16
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
17
|
+
});
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
15
20
|
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
16
21
|
// If the importer is in node compatibility mode or this is not an ESM
|
|
17
22
|
// file that has been converted to a CommonJS file using a Babel-
|
|
18
23
|
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
19
24
|
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
20
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
21
|
-
|
|
22
|
-
|
|
25
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
26
|
+
value: mod,
|
|
27
|
+
enumerable: !0
|
|
28
|
+
}) : target, mod)),
|
|
29
|
+
__toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
30
|
+
value: !0
|
|
31
|
+
}), mod);
|
|
23
32
|
var RCTDeviceEventEmitter_exports = {};
|
|
24
33
|
__export(RCTDeviceEventEmitter_exports, {
|
|
25
34
|
default: () => RCTDeviceEventEmitter_default
|
|
26
35
|
});
|
|
27
36
|
module.exports = __toCommonJS(RCTDeviceEventEmitter_exports);
|
|
28
|
-
var import_EventEmitter = __toESM(require("../emitter/EventEmitter")),
|
|
29
|
-
|
|
37
|
+
var import_EventEmitter = __toESM(require("../emitter/EventEmitter.cjs")),
|
|
38
|
+
RCTDeviceEventEmitter_default = new import_EventEmitter.default();
|
|
@@ -1,38 +1,47 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
|
|
2
3
|
var __create = Object.create;
|
|
3
4
|
var __defProp = Object.defineProperty;
|
|
4
5
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
6
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __getProtoOf = Object.getPrototypeOf,
|
|
7
|
+
var __getProtoOf = Object.getPrototypeOf,
|
|
8
|
+
__hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
9
|
var __export = (target, all) => {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
10
|
+
for (var name in all) __defProp(target, name, {
|
|
11
|
+
get: all[name],
|
|
12
|
+
enumerable: !0
|
|
13
|
+
});
|
|
14
|
+
},
|
|
15
|
+
__copyProps = (to, from, except, desc) => {
|
|
16
|
+
if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
|
|
17
|
+
get: () => from[key],
|
|
18
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
19
|
+
});
|
|
20
|
+
return to;
|
|
21
|
+
};
|
|
16
22
|
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
17
23
|
// If the importer is in node compatibility mode or this is not an ESM
|
|
18
24
|
// file that has been converted to a CommonJS file using a Babel-
|
|
19
25
|
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
20
26
|
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
21
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
22
|
-
|
|
23
|
-
|
|
27
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
28
|
+
value: mod,
|
|
29
|
+
enumerable: !0
|
|
30
|
+
}) : target, mod)),
|
|
31
|
+
__toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
32
|
+
value: !0
|
|
33
|
+
}), mod);
|
|
24
34
|
var NativeEventEmitter_exports = {};
|
|
25
35
|
__export(NativeEventEmitter_exports, {
|
|
26
36
|
default: () => NativeEventEmitter
|
|
27
37
|
});
|
|
28
38
|
module.exports = __toCommonJS(NativeEventEmitter_exports);
|
|
29
|
-
var import_react_native_web_internals = require("@tamagui/react-native-web-internals"),
|
|
39
|
+
var import_react_native_web_internals = require("@tamagui/react-native-web-internals"),
|
|
40
|
+
import_react_native_web_internals2 = require("@tamagui/react-native-web-internals"),
|
|
41
|
+
import_RCTDeviceEventEmitter = __toESM(require("./RCTDeviceEventEmitter.cjs"));
|
|
30
42
|
class NativeEventEmitter {
|
|
31
43
|
constructor(nativeModule) {
|
|
32
|
-
import_react_native_web_internals2.Platform.OS === "ios" && ((0, import_react_native_web_internals.invariant)(
|
|
33
|
-
nativeModule != null,
|
|
34
|
-
"`new NativeEventEmitter()` requires a non-null argument."
|
|
35
|
-
), this._nativeModule = nativeModule);
|
|
44
|
+
import_react_native_web_internals2.Platform.OS === "ios" && ((0, import_react_native_web_internals.invariant)(nativeModule != null, "`new NativeEventEmitter()` requires a non-null argument."), this._nativeModule = nativeModule);
|
|
36
45
|
}
|
|
37
46
|
addListener(eventType, listener, context) {
|
|
38
47
|
var _this$_nativeModule;
|
|
@@ -55,19 +64,14 @@ class NativeEventEmitter {
|
|
|
55
64
|
(_this$_nativeModule3 = this._nativeModule) == null || _this$_nativeModule3.removeListeners(1), import_RCTDeviceEventEmitter.default.removeListener(eventType, listener);
|
|
56
65
|
}
|
|
57
66
|
emit(eventType) {
|
|
58
|
-
for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++)
|
|
59
|
-
args[_key - 1] = arguments[_key];
|
|
67
|
+
for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) args[_key - 1] = arguments[_key];
|
|
60
68
|
import_RCTDeviceEventEmitter.default.emit(eventType, ...args);
|
|
61
69
|
}
|
|
62
70
|
removeAllListeners(eventType) {
|
|
63
71
|
var _this$_nativeModule4;
|
|
64
|
-
(0, import_react_native_web_internals.invariant)(
|
|
65
|
-
eventType != null,
|
|
66
|
-
"`NativeEventEmitter.removeAllListener()` requires a non-null argument."
|
|
67
|
-
), (_this$_nativeModule4 = this._nativeModule) == null || _this$_nativeModule4.removeListeners(this.listenerCount(eventType)), import_RCTDeviceEventEmitter.default.removeAllListeners(eventType);
|
|
72
|
+
(0, import_react_native_web_internals.invariant)(eventType != null, "`NativeEventEmitter.removeAllListener()` requires a non-null argument."), (_this$_nativeModule4 = this._nativeModule) == null || _this$_nativeModule4.removeListeners(this.listenerCount(eventType)), import_RCTDeviceEventEmitter.default.removeAllListeners(eventType);
|
|
68
73
|
}
|
|
69
74
|
listenerCount(eventType) {
|
|
70
75
|
return import_RCTDeviceEventEmitter.default.listenerCount(eventType);
|
|
71
76
|
}
|
|
72
|
-
}
|
|
73
|
-
//# sourceMappingURL=index.js.map
|
|
77
|
+
}
|