@hanzogui/react-native-web-lite 3.0.6 → 4.3.1
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 +77 -65
- package/dist/cjs/ActivityIndicator/__tests__/index-test.cjs +70 -49
- package/dist/cjs/ActivityIndicator/index.cjs +110 -108
- package/dist/cjs/Alert/index.cjs +12 -10
- package/dist/cjs/AppRegistry/AppContainer.cjs +50 -45
- package/dist/cjs/AppRegistry/__tests__/index-test.cjs +32 -18
- package/dist/cjs/AppRegistry/__tests__/index-test.node.cjs +47 -40
- package/dist/cjs/AppRegistry/index.cjs +38 -26
- package/dist/cjs/AppRegistry/renderApplication.cjs +44 -39
- package/dist/cjs/AppState/__tests__/index-test.cjs +13 -9
- package/dist/cjs/AppState/index.cjs +41 -25
- package/dist/cjs/Appearance/index.cjs +38 -27
- package/dist/cjs/BackHandler/index.cjs +12 -10
- package/dist/cjs/Clipboard/index.cjs +30 -17
- package/dist/cjs/DeviceEmitter.cjs +12 -10
- package/dist/cjs/DeviceInfo/index.cjs +21 -13
- package/dist/cjs/Dimensions/__tests__/index-test.cjs +29 -16
- package/dist/cjs/Dimensions/index.cjs +63 -33
- package/dist/cjs/FlatList.cjs +139 -95
- package/dist/cjs/I18nManager/index.cjs +19 -13
- package/dist/cjs/Image/index.cjs +209 -147
- package/dist/cjs/Image/types.cjs +7 -5
- package/dist/cjs/ImageBackground/__tests__/index-test.cjs +33 -29
- package/dist/cjs/ImageBackground/index.cjs +49 -47
- package/dist/cjs/InteractionManager/TaskQueue.cjs +49 -25
- package/dist/cjs/InteractionManager/index.cjs +115 -88
- package/dist/cjs/Keyboard/index.cjs +12 -10
- package/dist/cjs/KeyboardAvoidingView/index.cjs +30 -26
- package/dist/cjs/Libraries/Pressability/Pressability.cjs +12 -10
- package/dist/cjs/Libraries/Pressability/usePressability.cjs +12 -10
- package/dist/cjs/Linking/__tests__/index-test.cjs +31 -15
- package/dist/cjs/Linking/index.cjs +37 -23
- package/dist/cjs/LogBox/index.cjs +12 -10
- package/dist/cjs/Modal/ModalAnimation.cjs +141 -114
- package/dist/cjs/Modal/ModalContent.cjs +39 -29
- package/dist/cjs/Modal/ModalPortal.cjs +44 -33
- package/dist/cjs/Modal/index.cjs +12 -10
- package/dist/cjs/NativeModules/index.cjs +12 -10
- package/dist/cjs/PanResponder/index.cjs +24 -22
- package/dist/cjs/PixelRatio/index.cjs +12 -10
- package/dist/cjs/Pressable/index.cjs +128 -100
- package/dist/cjs/RefreshControl/index.cjs +14 -12
- package/dist/cjs/SafeAreaView/index.cjs +44 -37
- package/dist/cjs/ScrollView/ScrollViewBase.cjs +111 -84
- package/dist/cjs/ScrollView/index.cjs +255 -172
- package/dist/cjs/SectionList.cjs +26 -24
- package/dist/cjs/Share/index.cjs +25 -15
- package/dist/cjs/StatusBar/index.cjs +12 -10
- package/dist/cjs/Text/index.cjs +171 -144
- package/dist/cjs/Text/types.cjs +7 -5
- package/dist/cjs/TextInput/index.cjs +252 -141
- package/dist/cjs/TextInput/types.cjs +7 -5
- package/dist/cjs/TouchableNativeFeedback.cjs +12 -10
- package/dist/cjs/TouchableOpacity.cjs +91 -82
- package/dist/cjs/TouchableWithoutFeedback.cjs +73 -69
- package/dist/cjs/UnimplementedView.cjs +31 -26
- package/dist/cjs/Vibration/index.cjs +23 -19
- package/dist/cjs/View/index.cjs +106 -85
- package/dist/cjs/View/types.cjs +7 -5
- package/dist/cjs/VirtualizedList.cjs +26 -24
- package/dist/cjs/codegenNativeCommand.cjs +14 -11
- package/dist/cjs/codegenNativeComponent.cjs +14 -11
- package/dist/cjs/createElement/__tests__/index-test.cjs +162 -99
- package/dist/cjs/createElement/index.cjs +78 -68
- package/dist/cjs/createReactDOMStyle.cjs +12 -10
- package/dist/cjs/index.cjs +78 -76
- package/dist/cjs/modules/requestIdleCallback.cjs +28 -26
- package/dist/cjs/preprocess.cjs +12 -10
- package/dist/cjs/render/index.cjs +12 -10
- package/dist/cjs/styleTypes.cjs +7 -5
- package/dist/cjs/types.cjs +7 -5
- package/dist/cjs/useColorScheme/index.cjs +29 -26
- package/dist/cjs/useLocaleContext/index.cjs +12 -10
- package/dist/cjs/useWindowDimensions/index.cjs +35 -28
- package/dist/cjs/vendor/react-native/Animated/Animated.cjs +31 -29
- package/dist/cjs/vendor/react-native/Animated/AnimatedEvent.cjs +97 -45
- package/dist/cjs/vendor/react-native/Animated/AnimatedImplementation.cjs +545 -466
- package/dist/cjs/vendor/react-native/Animated/AnimatedMock.cjs +106 -99
- package/dist/cjs/vendor/react-native/Animated/Easing.cjs +27 -15
- package/dist/cjs/vendor/react-native/Animated/NativeAnimatedHelper.cjs +303 -215
- package/dist/cjs/vendor/react-native/Animated/NativeAnimatedModule.cjs +58 -56
- package/dist/cjs/vendor/react-native/Animated/NativeAnimatedTurboModule.cjs +55 -53
- package/dist/cjs/vendor/react-native/Animated/SpringConfig.cjs +22 -14
- package/dist/cjs/vendor/react-native/Animated/animations/Animation.cjs +22 -14
- package/dist/cjs/vendor/react-native/Animated/animations/DecayAnimation.cjs +45 -21
- package/dist/cjs/vendor/react-native/Animated/animations/SpringAnimation.cjs +116 -44
- package/dist/cjs/vendor/react-native/Animated/animations/TimingAnimation.cjs +77 -32
- package/dist/cjs/vendor/react-native/Animated/bezier.cjs +68 -27
- package/dist/cjs/vendor/react-native/Animated/components/AnimatedFlatList.cjs +33 -31
- package/dist/cjs/vendor/react-native/Animated/components/AnimatedImage.cjs +26 -13
- package/dist/cjs/vendor/react-native/Animated/components/AnimatedScrollView.cjs +33 -31
- package/dist/cjs/vendor/react-native/Animated/components/AnimatedSectionList.cjs +33 -31
- package/dist/cjs/vendor/react-native/Animated/components/AnimatedText.cjs +14 -12
- package/dist/cjs/vendor/react-native/Animated/components/AnimatedView.cjs +14 -12
- package/dist/cjs/vendor/react-native/Animated/createAnimatedComponent.cjs +40 -37
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedAddition.cjs +26 -17
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedColor.cjs +148 -65
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedDiffClamp.cjs +28 -18
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedDivision.cjs +42 -22
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedInterpolation.cjs +122 -47
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedModulo.cjs +21 -15
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedMultiplication.cjs +26 -17
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedNode.cjs +70 -27
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedProps.cjs +73 -32
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedStyle.cjs +60 -28
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedSubtraction.cjs +26 -17
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedTracking.cjs +36 -19
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedTransform.cjs +57 -32
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedValue.cjs +108 -39
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedValueXY.cjs +53 -30
- package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedWithChildren.cjs +44 -18
- package/dist/cjs/vendor/react-native/Animated/useAnimatedProps.cjs +63 -43
- package/dist/cjs/vendor/react-native/Batchinator/index.cjs +27 -15
- package/dist/cjs/vendor/react-native/EventEmitter/NativeEventEmitter.cjs +28 -16
- package/dist/cjs/vendor/react-native/EventEmitter/RCTDeviceEventEmitter.cjs +12 -10
- package/dist/cjs/vendor/react-native/FeatureFlags.cjs +18 -16
- package/dist/cjs/vendor/react-native/FillRateHelper/index.cjs +92 -42
- package/dist/cjs/vendor/react-native/FlatList/index.cjs +166 -105
- package/dist/cjs/vendor/react-native/JSEventLoopWatchdog/index.cjs +39 -24
- package/dist/cjs/vendor/react-native/LayoutAnimation/index.cjs +75 -71
- package/dist/cjs/vendor/react-native/PanResponder/index.cjs +181 -118
- package/dist/cjs/vendor/react-native/PooledClass/index.cjs +44 -30
- package/dist/cjs/vendor/react-native/ReactNative/ReactNativeFeatureFlags.cjs +17 -15
- package/dist/cjs/vendor/react-native/SectionList/index.cjs +63 -39
- package/dist/cjs/vendor/react-native/StaticContainer/index.cjs +25 -23
- package/dist/cjs/vendor/react-native/StaticRenderer/index.cjs +24 -22
- package/dist/cjs/vendor/react-native/TouchHistoryMath/index.cjs +48 -29
- package/dist/cjs/vendor/react-native/TurboModule/RCTExport.cjs +17 -15
- package/dist/cjs/vendor/react-native/TurboModule/TurboModuleRegistry.cjs +14 -11
- package/dist/cjs/vendor/react-native/Types/CoreEventTypes.cjs +127 -125
- package/dist/cjs/vendor/react-native/Utilities/Platform.cjs +12 -10
- package/dist/cjs/vendor/react-native/Utilities/clamp.cjs +19 -11
- package/dist/cjs/vendor/react-native/Utilities/setAndForwardRef.cjs +19 -12
- package/dist/cjs/vendor/react-native/Utilities/useMergeRefs.cjs +21 -11
- package/dist/cjs/vendor/react-native/Utilities/useRefEffect.cjs +19 -11
- package/dist/cjs/vendor/react-native/ViewabilityHelper/index.cjs +92 -51
- package/dist/cjs/vendor/react-native/ViewabilityHelper.cjs +91 -50
- package/dist/cjs/vendor/react-native/VirtualizeUtils/index.cjs +96 -58
- package/dist/cjs/vendor/react-native/VirtualizedList/CellRenderMask.cjs +75 -44
- package/dist/cjs/vendor/react-native/VirtualizedList/ChildListCollection.cjs +36 -17
- package/dist/cjs/vendor/react-native/VirtualizedList/StateSafePureComponent.cjs +51 -41
- package/dist/cjs/vendor/react-native/VirtualizedList/VirtualizedListCellRenderer.cjs +87 -78
- package/dist/cjs/vendor/react-native/VirtualizedList/VirtualizedListContext.cjs +36 -32
- package/dist/cjs/vendor/react-native/VirtualizedList/VirtualizedListProps.cjs +19 -17
- package/dist/cjs/vendor/react-native/VirtualizedList/index.cjs +147 -101
- package/dist/cjs/vendor/react-native/VirtualizedSectionList/index.cjs +93 -58
- package/dist/cjs/vendor/react-native/deepDiffer/index.cjs +49 -19
- package/dist/cjs/vendor/react-native/emitter/EventEmitter.cjs +12 -10
- package/dist/cjs/vendor/react-native/emitter/_EmitterSubscription.cjs +16 -11
- package/dist/cjs/vendor/react-native/emitter/_EventEmitter.cjs +31 -20
- package/dist/cjs/vendor/react-native/emitter/_EventSubscription.cjs +12 -10
- package/dist/cjs/vendor/react-native/emitter/_EventSubscriptionVendor.cjs +31 -17
- package/dist/cjs/vendor/react-native/infoLog/index.cjs +12 -10
- package/dist/cjs/vendor/react-native/useRefEffect.cjs +19 -11
- package/dist/cjs/vendor/react-native/vendor/emitter/EventEmitter.cjs +37 -22
- package/dist/cjs/without-animated.cjs +167 -150
- package/dist/esm/AccessibilityInfo/index.mjs +65 -55
- package/dist/esm/AccessibilityInfo/index.mjs.map +1 -1
- package/dist/esm/ActivityIndicator/__tests__/index-test.mjs +55 -36
- package/dist/esm/ActivityIndicator/__tests__/index-test.mjs.map +1 -1
- package/dist/esm/ActivityIndicator/index.mjs +82 -82
- package/dist/esm/ActivityIndicator/index.mjs.map +1 -1
- package/dist/esm/AppRegistry/AppContainer.mjs +22 -19
- package/dist/esm/AppRegistry/AppContainer.mjs.map +1 -1
- package/dist/esm/AppRegistry/__tests__/index-test.mjs +21 -9
- package/dist/esm/AppRegistry/__tests__/index-test.mjs.map +1 -1
- package/dist/esm/AppRegistry/__tests__/index-test.node.mjs +33 -28
- package/dist/esm/AppRegistry/__tests__/index-test.node.mjs.map +1 -1
- package/dist/esm/AppRegistry/index.mjs +23 -13
- package/dist/esm/AppRegistry/index.mjs.map +1 -1
- package/dist/esm/AppRegistry/renderApplication.mjs +27 -24
- package/dist/esm/AppRegistry/renderApplication.mjs.map +1 -1
- package/dist/esm/AppState/__tests__/index-test.mjs +4 -2
- package/dist/esm/AppState/__tests__/index-test.mjs.map +1 -1
- package/dist/esm/AppState/index.mjs +29 -15
- package/dist/esm/AppState/index.mjs.map +1 -1
- package/dist/esm/Appearance/index.mjs +26 -17
- package/dist/esm/Appearance/index.mjs.map +1 -1
- package/dist/esm/Clipboard/index.mjs +18 -7
- package/dist/esm/Clipboard/index.mjs.map +1 -1
- package/dist/esm/DeviceInfo/index.mjs +7 -1
- package/dist/esm/DeviceInfo/index.mjs.map +1 -1
- package/dist/esm/Dimensions/__tests__/index-test.mjs +20 -9
- package/dist/esm/Dimensions/__tests__/index-test.mjs.map +1 -1
- package/dist/esm/Dimensions/index.mjs +51 -23
- package/dist/esm/Dimensions/index.mjs.map +1 -1
- package/dist/esm/FlatList.mjs +107 -65
- package/dist/esm/FlatList.mjs.map +1 -1
- package/dist/esm/I18nManager/index.mjs +7 -3
- package/dist/esm/I18nManager/index.mjs.map +1 -1
- package/dist/esm/Image/index.mjs +178 -118
- package/dist/esm/Image/index.mjs.map +1 -1
- package/dist/esm/ImageBackground/__tests__/index-test.mjs +20 -18
- package/dist/esm/ImageBackground/__tests__/index-test.mjs.map +1 -1
- package/dist/esm/ImageBackground/index.mjs +32 -32
- package/dist/esm/ImageBackground/index.mjs.map +1 -1
- package/dist/esm/InteractionManager/TaskQueue.mjs +37 -15
- package/dist/esm/InteractionManager/TaskQueue.mjs.map +1 -1
- package/dist/esm/InteractionManager/index.mjs +87 -62
- package/dist/esm/InteractionManager/index.mjs.map +1 -1
- package/dist/esm/KeyboardAvoidingView/index.mjs +3 -1
- package/dist/esm/KeyboardAvoidingView/index.mjs.map +1 -1
- package/dist/esm/Linking/__tests__/index-test.mjs +22 -8
- package/dist/esm/Linking/__tests__/index-test.mjs.map +1 -1
- package/dist/esm/Linking/index.mjs +25 -13
- package/dist/esm/Linking/index.mjs.map +1 -1
- package/dist/esm/Modal/ModalAnimation.mjs +113 -88
- package/dist/esm/Modal/ModalAnimation.mjs.map +1 -1
- package/dist/esm/Modal/ModalContent.mjs +12 -4
- package/dist/esm/Modal/ModalContent.mjs.map +1 -1
- package/dist/esm/Modal/ModalPortal.mjs +17 -8
- package/dist/esm/Modal/ModalPortal.mjs.map +1 -1
- package/dist/esm/Pressable/index.mjs +97 -71
- package/dist/esm/Pressable/index.mjs.map +1 -1
- package/dist/esm/SafeAreaView/index.mjs +16 -11
- package/dist/esm/SafeAreaView/index.mjs.map +1 -1
- package/dist/esm/ScrollView/ScrollViewBase.mjs +83 -58
- package/dist/esm/ScrollView/ScrollViewBase.mjs.map +1 -1
- package/dist/esm/ScrollView/index.mjs +225 -144
- package/dist/esm/ScrollView/index.mjs.map +1 -1
- package/dist/esm/Share/index.mjs +13 -5
- package/dist/esm/Share/index.mjs.map +1 -1
- package/dist/esm/Text/index.mjs +143 -118
- package/dist/esm/Text/index.mjs.map +1 -1
- package/dist/esm/TextInput/index.mjs +224 -115
- package/dist/esm/TextInput/index.mjs.map +1 -1
- package/dist/esm/TouchableOpacity.mjs +62 -55
- package/dist/esm/TouchableOpacity.mjs.map +1 -1
- package/dist/esm/TouchableWithoutFeedback.mjs +46 -44
- package/dist/esm/TouchableWithoutFeedback.mjs.map +1 -1
- package/dist/esm/UnimplementedView.mjs +4 -1
- package/dist/esm/UnimplementedView.mjs.map +1 -1
- package/dist/esm/Vibration/index.mjs +11 -9
- package/dist/esm/Vibration/index.mjs.map +1 -1
- package/dist/esm/View/index.mjs +79 -60
- package/dist/esm/View/index.mjs.map +1 -1
- package/dist/esm/codegenNativeCommand.mjs +2 -1
- package/dist/esm/codegenNativeCommand.mjs.map +1 -1
- package/dist/esm/codegenNativeComponent.mjs +2 -1
- package/dist/esm/codegenNativeComponent.mjs.map +1 -1
- package/dist/esm/createElement/__tests__/index-test.mjs +150 -89
- package/dist/esm/createElement/__tests__/index-test.mjs.map +1 -1
- package/dist/esm/createElement/index.mjs +49 -41
- package/dist/esm/createElement/index.mjs.map +1 -1
- package/dist/esm/index.js +4 -4
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/index.mjs +4 -4
- package/dist/esm/index.mjs.map +1 -1
- package/dist/esm/modules/requestIdleCallback.mjs +16 -16
- package/dist/esm/modules/requestIdleCallback.mjs.map +1 -1
- package/dist/esm/useColorScheme/index.mjs +3 -2
- package/dist/esm/useColorScheme/index.mjs.map +1 -1
- package/dist/esm/useWindowDimensions/index.mjs +9 -4
- package/dist/esm/useWindowDimensions/index.mjs.map +1 -1
- package/dist/esm/vendor/react-native/Animated/Animated.mjs +10 -10
- package/dist/esm/vendor/react-native/Animated/Animated.mjs.map +1 -1
- package/dist/esm/vendor/react-native/Animated/AnimatedEvent.mjs +81 -31
- package/dist/esm/vendor/react-native/Animated/AnimatedEvent.mjs.map +1 -1
- package/dist/esm/vendor/react-native/Animated/AnimatedImplementation.mjs +519 -442
- package/dist/esm/vendor/react-native/Animated/AnimatedImplementation.mjs.map +1 -1
- package/dist/esm/vendor/react-native/Animated/AnimatedMock.mjs +86 -81
- package/dist/esm/vendor/react-native/Animated/AnimatedMock.mjs.map +1 -1
- package/dist/esm/vendor/react-native/Animated/Easing.mjs +15 -5
- package/dist/esm/vendor/react-native/Animated/Easing.mjs.map +1 -1
- package/dist/esm/vendor/react-native/Animated/NativeAnimatedHelper.mjs +284 -198
- package/dist/esm/vendor/react-native/Animated/NativeAnimatedHelper.mjs.map +1 -1
- package/dist/esm/vendor/react-native/Animated/NativeAnimatedModule.mjs +34 -34
- package/dist/esm/vendor/react-native/Animated/NativeAnimatedModule.mjs.map +1 -1
- package/dist/esm/vendor/react-native/Animated/NativeAnimatedTurboModule.mjs +31 -31
- package/dist/esm/vendor/react-native/Animated/NativeAnimatedTurboModule.mjs.map +1 -1
- package/dist/esm/vendor/react-native/Animated/SpringConfig.mjs +10 -4
- package/dist/esm/vendor/react-native/Animated/SpringConfig.mjs.map +1 -1
- package/dist/esm/vendor/react-native/Animated/animations/Animation.mjs +10 -4
- package/dist/esm/vendor/react-native/Animated/animations/Animation.mjs.map +1 -1
- package/dist/esm/vendor/react-native/Animated/animations/DecayAnimation.mjs +31 -9
- package/dist/esm/vendor/react-native/Animated/animations/DecayAnimation.mjs.map +1 -1
- package/dist/esm/vendor/react-native/Animated/animations/SpringAnimation.mjs +100 -30
- package/dist/esm/vendor/react-native/Animated/animations/SpringAnimation.mjs.map +1 -1
- package/dist/esm/vendor/react-native/Animated/animations/TimingAnimation.mjs +62 -19
- package/dist/esm/vendor/react-native/Animated/animations/TimingAnimation.mjs.map +1 -1
- package/dist/esm/vendor/react-native/Animated/bezier.mjs +56 -17
- package/dist/esm/vendor/react-native/Animated/bezier.mjs.map +1 -1
- package/dist/esm/vendor/react-native/Animated/components/AnimatedFlatList.mjs +5 -5
- package/dist/esm/vendor/react-native/Animated/components/AnimatedFlatList.mjs.map +1 -1
- package/dist/esm/vendor/react-native/Animated/components/AnimatedImage.mjs +1 -1
- package/dist/esm/vendor/react-native/Animated/components/AnimatedImage.mjs.map +1 -1
- package/dist/esm/vendor/react-native/Animated/components/AnimatedScrollView.mjs +5 -5
- package/dist/esm/vendor/react-native/Animated/components/AnimatedScrollView.mjs.map +1 -1
- package/dist/esm/vendor/react-native/Animated/components/AnimatedSectionList.mjs +5 -5
- package/dist/esm/vendor/react-native/Animated/components/AnimatedSectionList.mjs.map +1 -1
- package/dist/esm/vendor/react-native/Animated/createAnimatedComponent.mjs +12 -11
- package/dist/esm/vendor/react-native/Animated/createAnimatedComponent.mjs.map +1 -1
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedAddition.mjs +11 -4
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedAddition.mjs.map +1 -1
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedColor.mjs +132 -51
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedColor.mjs.map +1 -1
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedDiffClamp.mjs +14 -6
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedDiffClamp.mjs.map +1 -1
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedDivision.mjs +26 -8
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedDivision.mjs.map +1 -1
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedInterpolation.mjs +107 -34
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedInterpolation.mjs.map +1 -1
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedModulo.mjs +7 -3
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedModulo.mjs.map +1 -1
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedMultiplication.mjs +11 -4
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedMultiplication.mjs.map +1 -1
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedNode.mjs +56 -15
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedNode.mjs.map +1 -1
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedProps.mjs +56 -17
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedProps.mjs.map +1 -1
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedStyle.mjs +43 -13
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedStyle.mjs.map +1 -1
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedSubtraction.mjs +11 -4
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedSubtraction.mjs.map +1 -1
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedTracking.mjs +22 -7
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedTracking.mjs.map +1 -1
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedTransform.mjs +42 -19
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedTransform.mjs.map +1 -1
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedValue.mjs +92 -25
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedValue.mjs.map +1 -1
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedValueXY.mjs +38 -17
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedValueXY.mjs.map +1 -1
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedWithChildren.mjs +30 -6
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedWithChildren.mjs.map +1 -1
- package/dist/esm/vendor/react-native/Animated/useAnimatedProps.mjs +45 -27
- package/dist/esm/vendor/react-native/Animated/useAnimatedProps.mjs.map +1 -1
- package/dist/esm/vendor/react-native/Batchinator/index.mjs +15 -5
- package/dist/esm/vendor/react-native/Batchinator/index.mjs.map +1 -1
- package/dist/esm/vendor/react-native/EventEmitter/NativeEventEmitter.mjs +14 -4
- package/dist/esm/vendor/react-native/EventEmitter/NativeEventEmitter.mjs.map +1 -1
- package/dist/esm/vendor/react-native/FeatureFlags.mjs +6 -6
- package/dist/esm/vendor/react-native/FillRateHelper/index.mjs +80 -32
- package/dist/esm/vendor/react-native/FillRateHelper/index.mjs.map +1 -1
- package/dist/esm/vendor/react-native/FlatList/index.mjs +133 -74
- package/dist/esm/vendor/react-native/FlatList/index.mjs.map +1 -1
- package/dist/esm/vendor/react-native/JSEventLoopWatchdog/index.mjs +27 -14
- package/dist/esm/vendor/react-native/JSEventLoopWatchdog/index.mjs.map +1 -1
- package/dist/esm/vendor/react-native/LayoutAnimation/index.mjs +61 -59
- package/dist/esm/vendor/react-native/LayoutAnimation/index.mjs.map +1 -1
- package/dist/esm/vendor/react-native/PanResponder/index.mjs +155 -94
- package/dist/esm/vendor/react-native/PanResponder/index.mjs.map +1 -1
- package/dist/esm/vendor/react-native/PooledClass/index.mjs +32 -20
- package/dist/esm/vendor/react-native/PooledClass/index.mjs.map +1 -1
- package/dist/esm/vendor/react-native/ReactNative/ReactNativeFeatureFlags.mjs +5 -5
- package/dist/esm/vendor/react-native/SectionList/index.mjs +36 -14
- package/dist/esm/vendor/react-native/SectionList/index.mjs.map +1 -1
- package/dist/esm/vendor/react-native/StaticContainer/index.mjs +1 -1
- package/dist/esm/vendor/react-native/StaticContainer/index.mjs.map +1 -1
- package/dist/esm/vendor/react-native/TouchHistoryMath/index.mjs +36 -19
- package/dist/esm/vendor/react-native/TouchHistoryMath/index.mjs.map +1 -1
- package/dist/esm/vendor/react-native/TurboModule/RCTExport.mjs +5 -5
- package/dist/esm/vendor/react-native/TurboModule/RCTExport.mjs.map +1 -1
- package/dist/esm/vendor/react-native/TurboModule/TurboModuleRegistry.mjs +2 -1
- package/dist/esm/vendor/react-native/TurboModule/TurboModuleRegistry.mjs.map +1 -1
- package/dist/esm/vendor/react-native/Types/CoreEventTypes.mjs +115 -115
- package/dist/esm/vendor/react-native/Types/CoreEventTypes.mjs.map +1 -1
- package/dist/esm/vendor/react-native/Utilities/clamp.mjs +7 -1
- package/dist/esm/vendor/react-native/Utilities/clamp.mjs.map +1 -1
- package/dist/esm/vendor/react-native/Utilities/setAndForwardRef.mjs +7 -2
- package/dist/esm/vendor/react-native/Utilities/setAndForwardRef.mjs.map +1 -1
- package/dist/esm/vendor/react-native/Utilities/useMergeRefs.mjs +9 -1
- package/dist/esm/vendor/react-native/Utilities/useMergeRefs.mjs.map +1 -1
- package/dist/esm/vendor/react-native/Utilities/useRefEffect.mjs +7 -1
- package/dist/esm/vendor/react-native/Utilities/useRefEffect.mjs.map +1 -1
- package/dist/esm/vendor/react-native/ViewabilityHelper/index.mjs +80 -41
- package/dist/esm/vendor/react-native/ViewabilityHelper/index.mjs.map +1 -1
- package/dist/esm/vendor/react-native/ViewabilityHelper.mjs +79 -40
- package/dist/esm/vendor/react-native/ViewabilityHelper.mjs.map +1 -1
- package/dist/esm/vendor/react-native/VirtualizeUtils/index.mjs +84 -48
- package/dist/esm/vendor/react-native/VirtualizeUtils/index.mjs.map +1 -1
- package/dist/esm/vendor/react-native/VirtualizedList/CellRenderMask.mjs +63 -34
- package/dist/esm/vendor/react-native/VirtualizedList/CellRenderMask.mjs.map +1 -1
- package/dist/esm/vendor/react-native/VirtualizedList/ChildListCollection.mjs +24 -7
- package/dist/esm/vendor/react-native/VirtualizedList/ChildListCollection.mjs.map +1 -1
- package/dist/esm/vendor/react-native/VirtualizedList/StateSafePureComponent.mjs +25 -17
- package/dist/esm/vendor/react-native/VirtualizedList/StateSafePureComponent.mjs.map +1 -1
- package/dist/esm/vendor/react-native/VirtualizedList/VirtualizedListCellRenderer.mjs +58 -51
- package/dist/esm/vendor/react-native/VirtualizedList/VirtualizedListCellRenderer.mjs.map +1 -1
- package/dist/esm/vendor/react-native/VirtualizedList/VirtualizedListContext.mjs +9 -7
- package/dist/esm/vendor/react-native/VirtualizedList/VirtualizedListContext.mjs.map +1 -1
- package/dist/esm/vendor/react-native/VirtualizedList/VirtualizedListProps.mjs +7 -7
- package/dist/esm/vendor/react-native/VirtualizedList/index.mjs +124 -80
- package/dist/esm/vendor/react-native/VirtualizedList/index.mjs.map +1 -1
- package/dist/esm/vendor/react-native/VirtualizedSectionList/index.mjs +66 -33
- package/dist/esm/vendor/react-native/VirtualizedSectionList/index.mjs.map +1 -1
- package/dist/esm/vendor/react-native/deepDiffer/index.mjs +37 -9
- package/dist/esm/vendor/react-native/deepDiffer/index.mjs.map +1 -1
- package/dist/esm/vendor/react-native/emitter/_EmitterSubscription.mjs +4 -1
- package/dist/esm/vendor/react-native/emitter/_EmitterSubscription.mjs.map +1 -1
- package/dist/esm/vendor/react-native/emitter/_EventEmitter.mjs +16 -7
- package/dist/esm/vendor/react-native/emitter/_EventEmitter.mjs.map +1 -1
- package/dist/esm/vendor/react-native/emitter/_EventSubscriptionVendor.mjs +19 -7
- package/dist/esm/vendor/react-native/emitter/_EventSubscriptionVendor.mjs.map +1 -1
- package/dist/esm/vendor/react-native/useRefEffect.mjs +7 -1
- package/dist/esm/vendor/react-native/useRefEffect.mjs.map +1 -1
- package/dist/esm/vendor/react-native/vendor/emitter/EventEmitter.mjs +25 -12
- package/dist/esm/vendor/react-native/vendor/emitter/EventEmitter.mjs.map +1 -1
- package/dist/esm/without-animated.mjs +86 -71
- package/dist/esm/without-animated.mjs.map +1 -1
- package/package.json +1 -1
- package/src/vendor/react-native/Animated/AnimatedImplementation.js +7 -7
|
@@ -3,20 +3,22 @@ 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
|
-
|
|
6
|
+
for (var name in all) __defProp(target, name, {
|
|
7
|
+
get: all[name],
|
|
8
|
+
enumerable: true
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
13
14
|
get: () => from[key],
|
|
14
15
|
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
15
16
|
});
|
|
16
|
-
|
|
17
|
-
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
18
20
|
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
19
|
-
value:
|
|
21
|
+
value: true
|
|
20
22
|
}), mod);
|
|
21
23
|
var AnimatedProps_exports = {};
|
|
22
24
|
__export(AnimatedProps_exports, {
|
|
@@ -24,23 +26,37 @@ __export(AnimatedProps_exports, {
|
|
|
24
26
|
default: () => AnimatedProps_default
|
|
25
27
|
});
|
|
26
28
|
module.exports = __toCommonJS(AnimatedProps_exports);
|
|
27
|
-
var import_AnimatedEvent = require("../AnimatedEvent.cjs")
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
29
|
+
var import_AnimatedEvent = require("../AnimatedEvent.cjs");
|
|
30
|
+
var import_AnimatedNode = require("./AnimatedNode.cjs");
|
|
31
|
+
var import_AnimatedStyle = require("./AnimatedStyle.cjs");
|
|
32
|
+
var import_NativeAnimatedHelper = require("../NativeAnimatedHelper.cjs");
|
|
33
|
+
var import_react_native_web_internals = require("@hanzogui/react-native-web-internals");
|
|
32
34
|
class AnimatedProps extends import_AnimatedNode.AnimatedNode {
|
|
33
35
|
constructor(props, callback) {
|
|
34
|
-
super()
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
36
|
+
super();
|
|
37
|
+
if (props.style) {
|
|
38
|
+
props = {
|
|
39
|
+
...props,
|
|
40
|
+
style: new import_AnimatedStyle.AnimatedStyle(props.style)
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
this._props = props;
|
|
44
|
+
this._callback = callback;
|
|
45
|
+
this.__attach();
|
|
38
46
|
}
|
|
39
47
|
__getValue() {
|
|
40
48
|
const props = {};
|
|
41
49
|
for (const key in this._props) {
|
|
42
50
|
const value = this._props[key];
|
|
43
|
-
value instanceof import_AnimatedNode.AnimatedNode
|
|
51
|
+
if (value instanceof import_AnimatedNode.AnimatedNode) {
|
|
52
|
+
if (!value.__isNative || value instanceof import_AnimatedStyle.AnimatedStyle) {
|
|
53
|
+
props[key] = value.__getValue();
|
|
54
|
+
}
|
|
55
|
+
} else if (value instanceof import_AnimatedEvent.AnimatedEvent) {
|
|
56
|
+
props[key] = value.__getHandler();
|
|
57
|
+
} else {
|
|
58
|
+
props[key] = value;
|
|
59
|
+
}
|
|
44
60
|
}
|
|
45
61
|
return props;
|
|
46
62
|
}
|
|
@@ -48,21 +64,29 @@ class AnimatedProps extends import_AnimatedNode.AnimatedNode {
|
|
|
48
64
|
const props = {};
|
|
49
65
|
for (const key in this._props) {
|
|
50
66
|
const value = this._props[key];
|
|
51
|
-
value instanceof import_AnimatedNode.AnimatedNode
|
|
67
|
+
if (value instanceof import_AnimatedNode.AnimatedNode) {
|
|
68
|
+
props[key] = value.__getAnimatedValue();
|
|
69
|
+
}
|
|
52
70
|
}
|
|
53
71
|
return props;
|
|
54
72
|
}
|
|
55
73
|
__attach() {
|
|
56
74
|
for (const key in this._props) {
|
|
57
75
|
const value = this._props[key];
|
|
58
|
-
value instanceof import_AnimatedNode.AnimatedNode
|
|
76
|
+
if (value instanceof import_AnimatedNode.AnimatedNode) {
|
|
77
|
+
value.__addChild(this);
|
|
78
|
+
}
|
|
59
79
|
}
|
|
60
80
|
}
|
|
61
81
|
__detach() {
|
|
62
|
-
this.__isNative && this._animatedView
|
|
82
|
+
if (this.__isNative && this._animatedView) {
|
|
83
|
+
this.__disconnectAnimatedView();
|
|
84
|
+
}
|
|
63
85
|
for (const key in this._props) {
|
|
64
86
|
const value = this._props[key];
|
|
65
|
-
value instanceof import_AnimatedNode.AnimatedNode
|
|
87
|
+
if (value instanceof import_AnimatedNode.AnimatedNode) {
|
|
88
|
+
value.__removeChild(this);
|
|
89
|
+
}
|
|
66
90
|
}
|
|
67
91
|
super.__detach();
|
|
68
92
|
}
|
|
@@ -71,35 +95,52 @@ class AnimatedProps extends import_AnimatedNode.AnimatedNode {
|
|
|
71
95
|
}
|
|
72
96
|
__makeNative() {
|
|
73
97
|
if (!this.__isNative) {
|
|
74
|
-
this.__isNative =
|
|
98
|
+
this.__isNative = true;
|
|
75
99
|
for (const key in this._props) {
|
|
76
100
|
const value = this._props[key];
|
|
77
|
-
value instanceof import_AnimatedNode.AnimatedNode
|
|
101
|
+
if (value instanceof import_AnimatedNode.AnimatedNode) {
|
|
102
|
+
value.__makeNative();
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
if (this._animatedView) {
|
|
106
|
+
this.__connectAnimatedView();
|
|
78
107
|
}
|
|
79
|
-
this._animatedView && this.__connectAnimatedView();
|
|
80
108
|
}
|
|
81
109
|
}
|
|
82
110
|
setNativeView(animatedView) {
|
|
83
|
-
|
|
111
|
+
if (this._animatedView === animatedView) {
|
|
112
|
+
return;
|
|
113
|
+
}
|
|
114
|
+
this._animatedView = animatedView;
|
|
115
|
+
if (this.__isNative) {
|
|
116
|
+
this.__connectAnimatedView();
|
|
117
|
+
}
|
|
84
118
|
}
|
|
85
119
|
__connectAnimatedView() {
|
|
86
120
|
(0, import_react_native_web_internals.invariant)(this.__isNative, 'Expected node to be marked as "native"');
|
|
87
121
|
const nativeViewTag = this._animatedView;
|
|
88
|
-
(0, import_react_native_web_internals.invariant)(nativeViewTag != null, "Unable to locate attached view in the native tree")
|
|
122
|
+
(0, import_react_native_web_internals.invariant)(nativeViewTag != null, "Unable to locate attached view in the native tree");
|
|
123
|
+
import_NativeAnimatedHelper.NativeAnimatedHelper.API.connectAnimatedNodeToView(this.__getNativeTag(), nativeViewTag);
|
|
89
124
|
}
|
|
90
125
|
__disconnectAnimatedView() {
|
|
91
126
|
(0, import_react_native_web_internals.invariant)(this.__isNative, 'Expected node to be marked as "native"');
|
|
92
127
|
const nativeViewTag = this._animatedView;
|
|
93
|
-
(0, import_react_native_web_internals.invariant)(nativeViewTag != null, "Unable to locate attached view in the native tree")
|
|
128
|
+
(0, import_react_native_web_internals.invariant)(nativeViewTag != null, "Unable to locate attached view in the native tree");
|
|
129
|
+
import_NativeAnimatedHelper.NativeAnimatedHelper.API.disconnectAnimatedNodeFromView(this.__getNativeTag(), nativeViewTag);
|
|
94
130
|
}
|
|
95
131
|
__restoreDefaultValues() {
|
|
96
|
-
|
|
132
|
+
if (this.__isNative) {
|
|
133
|
+
import_NativeAnimatedHelper.NativeAnimatedHelper.API.restoreDefaultValues(this.__getNativeTag());
|
|
134
|
+
}
|
|
97
135
|
}
|
|
98
136
|
__getNativeConfig() {
|
|
99
137
|
const propsConfig = {};
|
|
100
138
|
for (const propKey in this._props) {
|
|
101
139
|
const value = this._props[propKey];
|
|
102
|
-
value instanceof import_AnimatedNode.AnimatedNode
|
|
140
|
+
if (value instanceof import_AnimatedNode.AnimatedNode) {
|
|
141
|
+
value.__makeNative();
|
|
142
|
+
propsConfig[propKey] = value.__getNativeTag();
|
|
143
|
+
}
|
|
103
144
|
}
|
|
104
145
|
return {
|
|
105
146
|
type: "props",
|
|
@@ -3,20 +3,22 @@ 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
|
-
|
|
6
|
+
for (var name in all) __defProp(target, name, {
|
|
7
|
+
get: all[name],
|
|
8
|
+
enumerable: true
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
13
14
|
get: () => from[key],
|
|
14
15
|
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
15
16
|
});
|
|
16
|
-
|
|
17
|
-
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
18
20
|
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
19
|
-
value:
|
|
21
|
+
value: true
|
|
20
22
|
}), mod);
|
|
21
23
|
var AnimatedStyle_exports = {};
|
|
22
24
|
__export(AnimatedStyle_exports, {
|
|
@@ -24,18 +26,24 @@ __export(AnimatedStyle_exports, {
|
|
|
24
26
|
default: () => AnimatedStyle_default
|
|
25
27
|
});
|
|
26
28
|
module.exports = __toCommonJS(AnimatedStyle_exports);
|
|
27
|
-
var import_AnimatedNode = require("./AnimatedNode.cjs")
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
29
|
+
var import_AnimatedNode = require("./AnimatedNode.cjs");
|
|
30
|
+
var import_AnimatedTransform = require("./AnimatedTransform.cjs");
|
|
31
|
+
var import_AnimatedWithChildren = require("./AnimatedWithChildren.cjs");
|
|
32
|
+
var import_NativeAnimatedHelper = require("../NativeAnimatedHelper.cjs");
|
|
33
|
+
var import_react_native_web_internals = require("@hanzogui/react-native-web-internals");
|
|
32
34
|
const flattenStyle = import_react_native_web_internals.StyleSheet.flatten;
|
|
33
35
|
function createAnimatedStyle(inputStyle) {
|
|
34
|
-
const style = flattenStyle(inputStyle)
|
|
35
|
-
|
|
36
|
+
const style = flattenStyle(inputStyle);
|
|
37
|
+
const animatedStyles = {};
|
|
36
38
|
for (const key in style) {
|
|
37
39
|
const value = style[key];
|
|
38
|
-
key === "transform" && Array.isArray(value)
|
|
40
|
+
if (key === "transform" && Array.isArray(value)) {
|
|
41
|
+
animatedStyles[key] = new import_AnimatedTransform.AnimatedTransform(value);
|
|
42
|
+
} else if (value instanceof import_AnimatedNode.AnimatedNode) {
|
|
43
|
+
animatedStyles[key] = value;
|
|
44
|
+
} else if (value && !Array.isArray(value) && typeof value === "object") {
|
|
45
|
+
animatedStyles[key] = createAnimatedStyle(value);
|
|
46
|
+
}
|
|
39
47
|
}
|
|
40
48
|
return animatedStyles;
|
|
41
49
|
}
|
|
@@ -43,14 +51,24 @@ class AnimatedStyle extends import_AnimatedWithChildren.AnimatedWithChildren {
|
|
|
43
51
|
_inputStyle;
|
|
44
52
|
_style;
|
|
45
53
|
constructor(style) {
|
|
46
|
-
super()
|
|
54
|
+
super();
|
|
55
|
+
this._inputStyle = style;
|
|
56
|
+
this._style = createAnimatedStyle(style);
|
|
47
57
|
}
|
|
48
58
|
// Recursively get values for nested styles (like iOS's shadowOffset)
|
|
49
59
|
_walkStyleAndGetValues(style) {
|
|
50
60
|
const updatedStyle = {};
|
|
51
61
|
for (const key in style) {
|
|
52
62
|
const value = style[key];
|
|
53
|
-
value instanceof import_AnimatedNode.AnimatedNode
|
|
63
|
+
if (value instanceof import_AnimatedNode.AnimatedNode) {
|
|
64
|
+
if (!value.__isNative) {
|
|
65
|
+
updatedStyle[key] = value.__getValue();
|
|
66
|
+
}
|
|
67
|
+
} else if (value && !Array.isArray(value) && typeof value === "object") {
|
|
68
|
+
updatedStyle[key] = this._walkStyleAndGetValues(value);
|
|
69
|
+
} else {
|
|
70
|
+
updatedStyle[key] = value;
|
|
71
|
+
}
|
|
54
72
|
}
|
|
55
73
|
return updatedStyle;
|
|
56
74
|
}
|
|
@@ -62,7 +80,11 @@ class AnimatedStyle extends import_AnimatedWithChildren.AnimatedWithChildren {
|
|
|
62
80
|
const updatedStyle = {};
|
|
63
81
|
for (const key in style) {
|
|
64
82
|
const value = style[key];
|
|
65
|
-
value instanceof import_AnimatedNode.AnimatedNode
|
|
83
|
+
if (value instanceof import_AnimatedNode.AnimatedNode) {
|
|
84
|
+
updatedStyle[key] = value.__getAnimatedValue();
|
|
85
|
+
} else if (value && !Array.isArray(value) && typeof value === "object") {
|
|
86
|
+
updatedStyle[key] = this._walkStyleAndGetAnimatedValues(value);
|
|
87
|
+
}
|
|
66
88
|
}
|
|
67
89
|
return updatedStyle;
|
|
68
90
|
}
|
|
@@ -72,30 +94,40 @@ class AnimatedStyle extends import_AnimatedWithChildren.AnimatedWithChildren {
|
|
|
72
94
|
__attach() {
|
|
73
95
|
for (const key in this._style) {
|
|
74
96
|
const value = this._style[key];
|
|
75
|
-
value instanceof import_AnimatedNode.AnimatedNode
|
|
97
|
+
if (value instanceof import_AnimatedNode.AnimatedNode) {
|
|
98
|
+
value.__addChild(this);
|
|
99
|
+
}
|
|
76
100
|
}
|
|
77
101
|
}
|
|
78
102
|
__detach() {
|
|
79
103
|
for (const key in this._style) {
|
|
80
104
|
const value = this._style[key];
|
|
81
|
-
value instanceof import_AnimatedNode.AnimatedNode
|
|
105
|
+
if (value instanceof import_AnimatedNode.AnimatedNode) {
|
|
106
|
+
value.__removeChild(this);
|
|
107
|
+
}
|
|
82
108
|
}
|
|
83
109
|
super.__detach();
|
|
84
110
|
}
|
|
85
111
|
__makeNative() {
|
|
86
112
|
for (const key in this._style) {
|
|
87
113
|
const value = this._style[key];
|
|
88
|
-
value instanceof import_AnimatedNode.AnimatedNode
|
|
114
|
+
if (value instanceof import_AnimatedNode.AnimatedNode) {
|
|
115
|
+
value.__makeNative();
|
|
116
|
+
}
|
|
89
117
|
}
|
|
90
118
|
super.__makeNative();
|
|
91
119
|
}
|
|
92
120
|
__getNativeConfig() {
|
|
93
121
|
const styleConfig = {};
|
|
94
|
-
for (const styleKey in this._style)
|
|
95
|
-
|
|
96
|
-
|
|
122
|
+
for (const styleKey in this._style) {
|
|
123
|
+
if (this._style[styleKey] instanceof import_AnimatedNode.AnimatedNode) {
|
|
124
|
+
const style = this._style[styleKey];
|
|
125
|
+
style.__makeNative();
|
|
126
|
+
styleConfig[styleKey] = style.__getNativeTag();
|
|
127
|
+
}
|
|
97
128
|
}
|
|
98
|
-
|
|
129
|
+
import_NativeAnimatedHelper.NativeAnimatedHelper.validateStyles(styleConfig);
|
|
130
|
+
return {
|
|
99
131
|
type: "style",
|
|
100
132
|
style: styleConfig
|
|
101
133
|
};
|
|
@@ -5,20 +5,22 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
|
5
5
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
6
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
7
|
var __export = (target, all) => {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
8
|
+
for (var name in all) __defProp(target, name, {
|
|
9
|
+
get: all[name],
|
|
10
|
+
enumerable: true
|
|
11
|
+
});
|
|
12
|
+
};
|
|
13
|
+
var __copyProps = (to, from, except, desc) => {
|
|
14
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
15
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
15
16
|
get: () => from[key],
|
|
16
17
|
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
17
18
|
});
|
|
18
|
-
|
|
19
|
-
|
|
19
|
+
}
|
|
20
|
+
return to;
|
|
21
|
+
};
|
|
20
22
|
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
21
|
-
value:
|
|
23
|
+
value: true
|
|
22
24
|
}), mod);
|
|
23
25
|
var AnimatedSubtraction_exports = {};
|
|
24
26
|
__export(AnimatedSubtraction_exports, {
|
|
@@ -26,17 +28,21 @@ __export(AnimatedSubtraction_exports, {
|
|
|
26
28
|
default: () => AnimatedSubtraction_default
|
|
27
29
|
});
|
|
28
30
|
module.exports = __toCommonJS(AnimatedSubtraction_exports);
|
|
29
|
-
var import_AnimatedInterpolation = require("./AnimatedInterpolation.cjs")
|
|
30
|
-
|
|
31
|
-
|
|
31
|
+
var import_AnimatedInterpolation = require("./AnimatedInterpolation.cjs");
|
|
32
|
+
var import_AnimatedValue = require("./AnimatedValue.cjs");
|
|
33
|
+
var import_AnimatedWithChildren = require("./AnimatedWithChildren.cjs");
|
|
32
34
|
class AnimatedSubtraction extends import_AnimatedWithChildren.AnimatedWithChildren {
|
|
33
35
|
_a;
|
|
34
36
|
_b;
|
|
35
37
|
constructor(a, b) {
|
|
36
|
-
super()
|
|
38
|
+
super();
|
|
39
|
+
this._a = typeof a === "number" ? new import_AnimatedValue.AnimatedValue(a) : a;
|
|
40
|
+
this._b = typeof b === "number" ? new import_AnimatedValue.AnimatedValue(b) : b;
|
|
37
41
|
}
|
|
38
42
|
__makeNative(platformConfig) {
|
|
39
|
-
this._a.__makeNative(platformConfig)
|
|
43
|
+
this._a.__makeNative(platformConfig);
|
|
44
|
+
this._b.__makeNative(platformConfig);
|
|
45
|
+
super.__makeNative(platformConfig);
|
|
40
46
|
}
|
|
41
47
|
__getValue() {
|
|
42
48
|
return this._a.__getValue() - this._b.__getValue();
|
|
@@ -45,10 +51,13 @@ class AnimatedSubtraction extends import_AnimatedWithChildren.AnimatedWithChildr
|
|
|
45
51
|
return new import_AnimatedInterpolation.AnimatedInterpolation(this, config);
|
|
46
52
|
}
|
|
47
53
|
__attach() {
|
|
48
|
-
this._a.__addChild(this)
|
|
54
|
+
this._a.__addChild(this);
|
|
55
|
+
this._b.__addChild(this);
|
|
49
56
|
}
|
|
50
57
|
__detach() {
|
|
51
|
-
this._a.__removeChild(this)
|
|
58
|
+
this._a.__removeChild(this);
|
|
59
|
+
this._b.__removeChild(this);
|
|
60
|
+
super.__detach();
|
|
52
61
|
}
|
|
53
62
|
__getNativeConfig() {
|
|
54
63
|
return {
|
|
@@ -3,20 +3,22 @@ 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
|
-
|
|
6
|
+
for (var name in all) __defProp(target, name, {
|
|
7
|
+
get: all[name],
|
|
8
|
+
enumerable: true
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
13
14
|
get: () => from[key],
|
|
14
15
|
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
15
16
|
});
|
|
16
|
-
|
|
17
|
-
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
18
20
|
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
19
|
-
value:
|
|
21
|
+
value: true
|
|
20
22
|
}), mod);
|
|
21
23
|
var AnimatedTracking_exports = {};
|
|
22
24
|
__export(AnimatedTracking_exports, {
|
|
@@ -24,9 +26,9 @@ __export(AnimatedTracking_exports, {
|
|
|
24
26
|
default: () => AnimatedTracking_default
|
|
25
27
|
});
|
|
26
28
|
module.exports = __toCommonJS(AnimatedTracking_exports);
|
|
27
|
-
var import_AnimatedValue = require("./AnimatedValue.cjs")
|
|
28
|
-
|
|
29
|
-
|
|
29
|
+
var import_AnimatedValue = require("./AnimatedValue.cjs");
|
|
30
|
+
var import_AnimatedNode = require("./AnimatedNode.cjs");
|
|
31
|
+
var import_NativeAnimatedHelper = require("../NativeAnimatedHelper.cjs");
|
|
30
32
|
class AnimatedTracking extends import_AnimatedNode.AnimatedNode {
|
|
31
33
|
_value;
|
|
32
34
|
_parent;
|
|
@@ -35,19 +37,33 @@ class AnimatedTracking extends import_AnimatedNode.AnimatedNode {
|
|
|
35
37
|
_animationClass;
|
|
36
38
|
_useNativeDriver;
|
|
37
39
|
constructor(value, parent, animationClass, animationConfig, callback) {
|
|
38
|
-
super()
|
|
40
|
+
super();
|
|
41
|
+
this._value = value;
|
|
42
|
+
this._parent = parent;
|
|
43
|
+
this._animationClass = animationClass;
|
|
44
|
+
this._animationConfig = animationConfig;
|
|
45
|
+
this._useNativeDriver = (0, import_NativeAnimatedHelper.shouldUseNativeDriver)(animationConfig);
|
|
46
|
+
this._callback = callback;
|
|
47
|
+
this.__attach();
|
|
39
48
|
}
|
|
40
49
|
__makeNative() {
|
|
41
|
-
this.__isNative =
|
|
50
|
+
this.__isNative = true;
|
|
51
|
+
this._parent.__makeNative();
|
|
52
|
+
super.__makeNative();
|
|
53
|
+
this._value.__makeNative();
|
|
42
54
|
}
|
|
43
55
|
__getValue() {
|
|
44
56
|
return this._parent.__getValue();
|
|
45
57
|
}
|
|
46
58
|
__attach() {
|
|
47
|
-
this._parent.__addChild(this)
|
|
59
|
+
this._parent.__addChild(this);
|
|
60
|
+
if (this._useNativeDriver) {
|
|
61
|
+
this.__makeNative();
|
|
62
|
+
}
|
|
48
63
|
}
|
|
49
64
|
__detach() {
|
|
50
|
-
this._parent.__removeChild(this)
|
|
65
|
+
this._parent.__removeChild(this);
|
|
66
|
+
super.__detach();
|
|
51
67
|
}
|
|
52
68
|
update() {
|
|
53
69
|
this._value.animate(new this._animationClass({
|
|
@@ -56,11 +72,12 @@ class AnimatedTracking extends import_AnimatedNode.AnimatedNode {
|
|
|
56
72
|
}), this._callback);
|
|
57
73
|
}
|
|
58
74
|
__getNativeConfig() {
|
|
59
|
-
const
|
|
75
|
+
const animation = new this._animationClass({
|
|
60
76
|
...this._animationConfig,
|
|
61
77
|
// remove toValue from the config as it's a ref to Animated.Value
|
|
62
78
|
toValue: void 0
|
|
63
|
-
})
|
|
79
|
+
});
|
|
80
|
+
const animationConfig = animation.__getNativeAnimationConfig();
|
|
64
81
|
return {
|
|
65
82
|
type: "tracking",
|
|
66
83
|
animationId: (0, import_NativeAnimatedHelper.generateNewAnimationId)(),
|
|
@@ -5,20 +5,22 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
|
5
5
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
6
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
7
|
var __export = (target, all) => {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
8
|
+
for (var name in all) __defProp(target, name, {
|
|
9
|
+
get: all[name],
|
|
10
|
+
enumerable: true
|
|
11
|
+
});
|
|
12
|
+
};
|
|
13
|
+
var __copyProps = (to, from, except, desc) => {
|
|
14
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
15
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
15
16
|
get: () => from[key],
|
|
16
17
|
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
17
18
|
});
|
|
18
|
-
|
|
19
|
-
|
|
19
|
+
}
|
|
20
|
+
return to;
|
|
21
|
+
};
|
|
20
22
|
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
21
|
-
value:
|
|
23
|
+
value: true
|
|
22
24
|
}), mod);
|
|
23
25
|
var AnimatedTransform_exports = {};
|
|
24
26
|
__export(AnimatedTransform_exports, {
|
|
@@ -26,28 +28,36 @@ __export(AnimatedTransform_exports, {
|
|
|
26
28
|
default: () => AnimatedTransform_default
|
|
27
29
|
});
|
|
28
30
|
module.exports = __toCommonJS(AnimatedTransform_exports);
|
|
29
|
-
var import_AnimatedNode = require("./AnimatedNode.cjs")
|
|
30
|
-
|
|
31
|
-
|
|
31
|
+
var import_AnimatedNode = require("./AnimatedNode.cjs");
|
|
32
|
+
var import_AnimatedWithChildren = require("./AnimatedWithChildren.cjs");
|
|
33
|
+
var import_NativeAnimatedHelper = require("../NativeAnimatedHelper.cjs");
|
|
32
34
|
class AnimatedTransform extends import_AnimatedWithChildren.AnimatedWithChildren {
|
|
33
35
|
_transforms;
|
|
34
36
|
constructor(transforms) {
|
|
35
|
-
super()
|
|
37
|
+
super();
|
|
38
|
+
this._transforms = transforms;
|
|
36
39
|
}
|
|
37
40
|
__makeNative() {
|
|
38
41
|
this._transforms.forEach(transform => {
|
|
39
42
|
for (const key in transform) {
|
|
40
43
|
const value = transform[key];
|
|
41
|
-
value instanceof import_AnimatedNode.AnimatedNode
|
|
44
|
+
if (value instanceof import_AnimatedNode.AnimatedNode) {
|
|
45
|
+
value.__makeNative();
|
|
46
|
+
}
|
|
42
47
|
}
|
|
43
|
-
})
|
|
48
|
+
});
|
|
49
|
+
super.__makeNative();
|
|
44
50
|
}
|
|
45
51
|
__getValue() {
|
|
46
52
|
return this._transforms.map(transform => {
|
|
47
53
|
const result = {};
|
|
48
54
|
for (const key in transform) {
|
|
49
55
|
const value = transform[key];
|
|
50
|
-
value instanceof import_AnimatedNode.AnimatedNode
|
|
56
|
+
if (value instanceof import_AnimatedNode.AnimatedNode) {
|
|
57
|
+
result[key] = value.__getValue();
|
|
58
|
+
} else {
|
|
59
|
+
result[key] = value;
|
|
60
|
+
}
|
|
51
61
|
}
|
|
52
62
|
return result;
|
|
53
63
|
});
|
|
@@ -57,7 +67,11 @@ class AnimatedTransform extends import_AnimatedWithChildren.AnimatedWithChildren
|
|
|
57
67
|
const result = {};
|
|
58
68
|
for (const key in transform) {
|
|
59
69
|
const value = transform[key];
|
|
60
|
-
value instanceof import_AnimatedNode.AnimatedNode
|
|
70
|
+
if (value instanceof import_AnimatedNode.AnimatedNode) {
|
|
71
|
+
result[key] = value.__getAnimatedValue();
|
|
72
|
+
} else {
|
|
73
|
+
result[key] = value;
|
|
74
|
+
}
|
|
61
75
|
}
|
|
62
76
|
return result;
|
|
63
77
|
});
|
|
@@ -66,7 +80,9 @@ class AnimatedTransform extends import_AnimatedWithChildren.AnimatedWithChildren
|
|
|
66
80
|
this._transforms.forEach(transform => {
|
|
67
81
|
for (const key in transform) {
|
|
68
82
|
const value = transform[key];
|
|
69
|
-
value instanceof import_AnimatedNode.AnimatedNode
|
|
83
|
+
if (value instanceof import_AnimatedNode.AnimatedNode) {
|
|
84
|
+
value.__addChild(this);
|
|
85
|
+
}
|
|
70
86
|
}
|
|
71
87
|
});
|
|
72
88
|
}
|
|
@@ -74,26 +90,35 @@ class AnimatedTransform extends import_AnimatedWithChildren.AnimatedWithChildren
|
|
|
74
90
|
this._transforms.forEach(transform => {
|
|
75
91
|
for (const key in transform) {
|
|
76
92
|
const value = transform[key];
|
|
77
|
-
value instanceof import_AnimatedNode.AnimatedNode
|
|
93
|
+
if (value instanceof import_AnimatedNode.AnimatedNode) {
|
|
94
|
+
value.__removeChild(this);
|
|
95
|
+
}
|
|
78
96
|
}
|
|
79
|
-
})
|
|
97
|
+
});
|
|
98
|
+
super.__detach();
|
|
80
99
|
}
|
|
81
100
|
__getNativeConfig() {
|
|
82
101
|
const transConfigs = [];
|
|
83
|
-
|
|
102
|
+
this._transforms.forEach(transform => {
|
|
84
103
|
for (const key in transform) {
|
|
85
104
|
const value = transform[key];
|
|
86
|
-
value instanceof import_AnimatedNode.AnimatedNode
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
105
|
+
if (value instanceof import_AnimatedNode.AnimatedNode) {
|
|
106
|
+
transConfigs.push({
|
|
107
|
+
type: "animated",
|
|
108
|
+
property: key,
|
|
109
|
+
nodeTag: value.__getNativeTag()
|
|
110
|
+
});
|
|
111
|
+
} else {
|
|
112
|
+
transConfigs.push({
|
|
113
|
+
type: "static",
|
|
114
|
+
property: key,
|
|
115
|
+
value: import_NativeAnimatedHelper.NativeAnimatedHelper.transformDataType(value)
|
|
116
|
+
});
|
|
117
|
+
}
|
|
95
118
|
}
|
|
96
|
-
})
|
|
119
|
+
});
|
|
120
|
+
import_NativeAnimatedHelper.NativeAnimatedHelper.validateTransform(transConfigs);
|
|
121
|
+
return {
|
|
97
122
|
type: "transform",
|
|
98
123
|
transforms: transConfigs
|
|
99
124
|
};
|