@tamagui/react-native-web-lite 1.125.5 → 1.125.7
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/esm/AccessibilityInfo/index.native.js +58 -62
- package/dist/esm/AccessibilityInfo/index.native.js.map +1 -6
- package/dist/esm/ActivityIndicator/__tests__/index-test.native.js +85 -55
- package/dist/esm/ActivityIndicator/__tests__/index-test.native.js.map +1 -6
- package/dist/esm/ActivityIndicator/index.native.js +82 -90
- package/dist/esm/ActivityIndicator/index.native.js.map +1 -6
- package/dist/esm/Alert/index.native.js +14 -18
- package/dist/esm/Alert/index.native.js.map +1 -6
- package/dist/esm/AppRegistry/AppContainer.native.js +30 -26
- package/dist/esm/AppRegistry/AppContainer.native.js.map +1 -6
- package/dist/esm/AppRegistry/__tests__/index-test.native.js +13 -13
- package/dist/esm/AppRegistry/__tests__/index-test.native.js.map +1 -6
- package/dist/esm/AppRegistry/__tests__/index-test.node.native.js +45 -34
- package/dist/esm/AppRegistry/__tests__/index-test.node.native.js.map +1 -6
- package/dist/esm/AppRegistry/index.native.js +50 -55
- package/dist/esm/AppRegistry/index.native.js.map +1 -6
- package/dist/esm/AppRegistry/renderApplication.native.js +33 -27
- package/dist/esm/AppRegistry/renderApplication.native.js.map +1 -6
- package/dist/esm/AppState/__tests__/index-test.native.js +9 -10
- package/dist/esm/AppState/__tests__/index-test.native.js.map +1 -6
- package/dist/esm/AppState/index.native.js +45 -51
- package/dist/esm/AppState/index.native.js.map +1 -6
- package/dist/esm/Appearance/index.native.js +27 -24
- package/dist/esm/Appearance/index.native.js.map +1 -6
- package/dist/esm/BackHandler/index.native.js +11 -13
- package/dist/esm/BackHandler/index.native.js.map +1 -6
- package/dist/esm/Batchinator/index.native.js +19 -23
- package/dist/esm/Batchinator/index.native.js.map +1 -6
- package/dist/esm/Clipboard/index.native.js +21 -26
- package/dist/esm/Clipboard/index.native.js.map +1 -6
- package/dist/esm/DeviceEmitter.native.js +3 -5
- package/dist/esm/DeviceEmitter.native.js.map +1 -6
- package/dist/esm/DeviceInfo/index.native.js +41 -33
- package/dist/esm/DeviceInfo/index.native.js.map +1 -6
- package/dist/esm/Dimensions/__tests__/index-test.native.js +9 -8
- package/dist/esm/Dimensions/__tests__/index-test.native.js.map +1 -6
- package/dist/esm/Dimensions/index.native.js +49 -53
- package/dist/esm/Dimensions/index.native.js.map +1 -6
- package/dist/esm/FlatList.native.js +137 -131
- package/dist/esm/FlatList.native.js.map +1 -6
- package/dist/esm/I18nManager/index.native.js +10 -13
- package/dist/esm/I18nManager/index.native.js.map +1 -6
- package/dist/esm/Image/index.native.js +174 -149
- package/dist/esm/Image/index.native.js.map +1 -6
- package/dist/esm/Image/types.native.js +2 -1
- package/dist/esm/Image/types.native.js.map +1 -6
- package/dist/esm/ImageBackground/__tests__/index-test.native.js +27 -19
- package/dist/esm/ImageBackground/__tests__/index-test.native.js.map +1 -6
- package/dist/esm/ImageBackground/index.native.js +35 -33
- package/dist/esm/ImageBackground/index.native.js.map +1 -6
- package/dist/esm/InteractionManager/TaskQueue.native.js +46 -51
- package/dist/esm/InteractionManager/TaskQueue.native.js.map +1 -6
- package/dist/esm/InteractionManager/index.native.js +66 -60
- package/dist/esm/InteractionManager/index.native.js.map +1 -6
- package/dist/esm/Keyboard/index.native.js +13 -17
- package/dist/esm/Keyboard/index.native.js.map +1 -6
- package/dist/esm/KeyboardAvoidingView/index.native.js +34 -44
- package/dist/esm/KeyboardAvoidingView/index.native.js.map +1 -6
- package/dist/esm/Linking/__tests__/index-test.native.js +9 -9
- package/dist/esm/Linking/__tests__/index-test.native.js.map +1 -6
- package/dist/esm/Linking/index.native.js +42 -49
- package/dist/esm/Linking/index.native.js.map +1 -6
- package/dist/esm/LogBox/index.native.js +7 -12
- package/dist/esm/LogBox/index.native.js.map +1 -6
- package/dist/esm/Modal/ModalAnimation.native.js +89 -112
- package/dist/esm/Modal/ModalAnimation.native.js.map +1 -6
- package/dist/esm/Modal/ModalContent.native.js +52 -54
- package/dist/esm/Modal/ModalContent.native.js.map +1 -6
- package/dist/esm/Modal/ModalFocusTrap.native.js +49 -52
- package/dist/esm/Modal/ModalFocusTrap.native.js.map +1 -6
- package/dist/esm/Modal/ModalPortal.native.js +9 -11
- package/dist/esm/Modal/ModalPortal.native.js.map +1 -6
- package/dist/esm/Modal/index.native.js +53 -45
- package/dist/esm/Modal/index.native.js.map +1 -6
- package/dist/esm/NativeModules/index.native.js +5 -6
- package/dist/esm/NativeModules/index.native.js.map +1 -6
- package/dist/esm/PanResponder/Alternative.js +157 -122
- package/dist/esm/PanResponder/Alternative.js.map +1 -6
- package/dist/esm/PanResponder/index.native.js +3 -5
- package/dist/esm/PanResponder/index.native.js.map +1 -6
- package/dist/esm/PixelRatio/index.native.js +48 -59
- package/dist/esm/PixelRatio/index.native.js.map +1 -6
- package/dist/esm/Pressable/index.native.js +70 -67
- package/dist/esm/Pressable/index.native.js.map +1 -6
- package/dist/esm/RefreshControl/index.native.js +4 -6
- package/dist/esm/RefreshControl/index.native.js.map +1 -6
- package/dist/esm/SafeAreaView/index.native.js +24 -21
- package/dist/esm/SafeAreaView/index.native.js.map +1 -6
- package/dist/esm/ScrollView/ScrollViewBase.native.js +61 -50
- package/dist/esm/ScrollView/ScrollViewBase.native.js.map +1 -6
- package/dist/esm/ScrollView/index.native.js +183 -211
- package/dist/esm/ScrollView/index.native.js.map +1 -6
- package/dist/esm/Share/index.native.js +29 -36
- package/dist/esm/Share/index.native.js.map +1 -6
- package/dist/esm/StatusBar/index.native.js +3 -6
- package/dist/esm/StatusBar/index.native.js.map +1 -6
- package/dist/esm/Text/index.native.js +128 -100
- package/dist/esm/Text/index.native.js.map +1 -6
- package/dist/esm/Text/types.native.js +2 -1
- package/dist/esm/Text/types.native.js.map +1 -6
- package/dist/esm/TextInput/__tests__/index-test.native.js +445 -259
- package/dist/esm/TextInput/__tests__/index-test.native.js.map +1 -6
- package/dist/esm/TextInput/index.native.js +210 -147
- package/dist/esm/TextInput/index.native.js.map +1 -6
- package/dist/esm/TextInput/types.native.js +2 -1
- package/dist/esm/TextInput/types.native.js.map +1 -6
- package/dist/esm/TouchableOpacity.native.js +63 -67
- package/dist/esm/TouchableOpacity.native.js.map +1 -6
- package/dist/esm/TouchableWithoutFeedback.native.js +49 -45
- package/dist/esm/TouchableWithoutFeedback.native.js.map +1 -6
- package/dist/esm/UnimplementedView.native.js +22 -30
- package/dist/esm/UnimplementedView.native.js.map +1 -6
- package/dist/esm/Vibration/index.native.js +14 -14
- package/dist/esm/Vibration/index.native.js.map +1 -6
- package/dist/esm/View/index.native.js +84 -55
- package/dist/esm/View/index.native.js.map +1 -6
- package/dist/esm/View/types.native.js +2 -1
- package/dist/esm/View/types.native.js.map +1 -6
- package/dist/esm/createElement/__tests__/index-test.native.js +398 -195
- package/dist/esm/createElement/__tests__/index-test.native.js.map +1 -6
- package/dist/esm/createElement/index.native.js +18 -16
- package/dist/esm/createElement/index.native.js.map +1 -6
- package/dist/esm/createReactDOMStyle.native.js +2 -4
- package/dist/esm/createReactDOMStyle.native.js.map +1 -6
- package/dist/esm/index.native.js +47 -123
- package/dist/esm/index.native.js.map +1 -6
- package/dist/esm/render/index.native.js +6 -15
- package/dist/esm/render/index.native.js.map +1 -6
- package/dist/esm/styleTypes.native.js +2 -1
- package/dist/esm/styleTypes.native.js.map +1 -6
- package/dist/esm/types.native.js +2 -1
- package/dist/esm/types.native.js.map +1 -6
- package/dist/esm/useColorScheme/index.native.js +7 -7
- package/dist/esm/useColorScheme/index.native.js.map +1 -6
- package/dist/esm/useLocaleContext/index.native.js +2 -4
- package/dist/esm/useLocaleContext/index.native.js.map +1 -6
- package/dist/esm/useWindowDimensions/index.native.js +9 -9
- package/dist/esm/useWindowDimensions/index.native.js.map +1 -6
- package/dist/esm/vendor/react-native/Animated/Animated.native.js +16 -17
- package/dist/esm/vendor/react-native/Animated/Animated.native.js.map +1 -6
- package/dist/esm/vendor/react-native/Animated/AnimatedEvent.native.js +72 -99
- package/dist/esm/vendor/react-native/Animated/AnimatedEvent.native.js.map +1 -6
- package/dist/esm/vendor/react-native/Animated/AnimatedImplementation.native.js +465 -436
- package/dist/esm/vendor/react-native/Animated/AnimatedImplementation.native.js.map +1 -6
- package/dist/esm/vendor/react-native/Animated/AnimatedMock.native.js +97 -91
- package/dist/esm/vendor/react-native/Animated/AnimatedMock.native.js.map +1 -6
- package/dist/esm/vendor/react-native/Animated/AnimatedPlatformConfig.native.js +2 -1
- package/dist/esm/vendor/react-native/Animated/AnimatedPlatformConfig.native.js.map +1 -6
- package/dist/esm/vendor/react-native/Animated/Easing.native.js +194 -231
- package/dist/esm/vendor/react-native/Animated/Easing.native.js.map +1 -6
- package/dist/esm/vendor/react-native/Animated/NativeAnimatedHelper.native.js +206 -222
- package/dist/esm/vendor/react-native/Animated/NativeAnimatedHelper.native.js.map +1 -6
- package/dist/esm/vendor/react-native/Animated/NativeAnimatedModule.native.js +3 -5
- package/dist/esm/vendor/react-native/Animated/NativeAnimatedModule.native.js.map +1 -6
- package/dist/esm/vendor/react-native/Animated/NativeAnimatedTurboModule.native.js +3 -5
- package/dist/esm/vendor/react-native/Animated/NativeAnimatedTurboModule.native.js.map +1 -6
- package/dist/esm/vendor/react-native/Animated/SpringConfig.native.js +5 -5
- package/dist/esm/vendor/react-native/Animated/SpringConfig.native.js.map +1 -6
- package/dist/esm/vendor/react-native/Animated/animations/Animation.native.js +25 -37
- package/dist/esm/vendor/react-native/Animated/animations/Animation.native.js.map +1 -6
- package/dist/esm/vendor/react-native/Animated/animations/DecayAnimation.native.js +42 -54
- package/dist/esm/vendor/react-native/Animated/animations/DecayAnimation.native.js.map +1 -6
- package/dist/esm/vendor/react-native/Animated/animations/SpringAnimation.native.js +72 -72
- package/dist/esm/vendor/react-native/Animated/animations/SpringAnimation.native.js.map +1 -6
- package/dist/esm/vendor/react-native/Animated/animations/TimingAnimation.native.js +45 -60
- package/dist/esm/vendor/react-native/Animated/animations/TimingAnimation.native.js.map +1 -6
- package/dist/esm/vendor/react-native/Animated/bezier.native.js +23 -20
- package/dist/esm/vendor/react-native/Animated/bezier.native.js.map +1 -6
- package/dist/esm/vendor/react-native/Animated/components/AnimatedImage.native.js +4 -6
- package/dist/esm/vendor/react-native/Animated/components/AnimatedImage.native.js.map +1 -6
- package/dist/esm/vendor/react-native/Animated/components/AnimatedScrollView.native.js +12 -13
- package/dist/esm/vendor/react-native/Animated/components/AnimatedScrollView.native.js.map +1 -6
- package/dist/esm/vendor/react-native/Animated/components/AnimatedText.native.js +4 -6
- package/dist/esm/vendor/react-native/Animated/components/AnimatedText.native.js.map +1 -6
- package/dist/esm/vendor/react-native/Animated/components/AnimatedView.native.js +4 -6
- package/dist/esm/vendor/react-native/Animated/components/AnimatedView.native.js.map +1 -6
- package/dist/esm/vendor/react-native/Animated/createAnimatedComponent.native.js +17 -11
- package/dist/esm/vendor/react-native/Animated/createAnimatedComponent.native.js.map +1 -6
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedAddition.native.js +39 -55
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedAddition.native.js.map +1 -6
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedColor.native.js +180 -197
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedColor.native.js.map +1 -6
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedDiffClamp.native.js +39 -51
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedDiffClamp.native.js.map +1 -6
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedDivision.native.js +42 -57
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedDivision.native.js.map +1 -6
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedInterpolation.native.js +99 -116
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedInterpolation.native.js.map +1 -6
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedModulo.native.js +37 -50
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedModulo.native.js.map +1 -6
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedMultiplication.native.js +39 -55
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedMultiplication.native.js.map +1 -6
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedNode.native.js +61 -89
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedNode.native.js.map +1 -6
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedProps.native.js +52 -70
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedProps.native.js.map +1 -6
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedStyle.native.js +50 -68
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedStyle.native.js.map +1 -6
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedSubtraction.native.js +39 -55
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedSubtraction.native.js.map +1 -6
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedTracking.native.js +41 -53
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedTracking.native.js.map +1 -6
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedTransform.native.js +44 -57
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedTransform.native.js.map +1 -6
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedValue.native.js +70 -99
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedValue.native.js.map +1 -6
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedValueXY.native.js +64 -82
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedValueXY.native.js.map +1 -6
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedWithChildren.native.js +40 -53
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedWithChildren.native.js.map +1 -6
- package/dist/esm/vendor/react-native/Animated/useAnimatedProps.native.js +50 -58
- package/dist/esm/vendor/react-native/Animated/useAnimatedProps.native.js.map +1 -6
- package/dist/esm/vendor/react-native/FeatureFlags.native.js +8 -10
- package/dist/esm/vendor/react-native/FeatureFlags.native.js.map +1 -6
- package/dist/esm/vendor/react-native/FillRateHelper/index.native.js +58 -59
- package/dist/esm/vendor/react-native/FillRateHelper/index.native.js.map +1 -6
- package/dist/esm/vendor/react-native/NativeEventEmitter/RCTDeviceEventEmitter.native.js +3 -5
- package/dist/esm/vendor/react-native/NativeEventEmitter/RCTDeviceEventEmitter.native.js.map +1 -6
- package/dist/esm/vendor/react-native/NativeEventEmitter/index.native.js +46 -55
- package/dist/esm/vendor/react-native/NativeEventEmitter/index.native.js.map +1 -6
- package/dist/esm/vendor/react-native/PanResponder/index.native.js +224 -219
- package/dist/esm/vendor/react-native/PanResponder/index.native.js.map +1 -6
- package/dist/esm/vendor/react-native/TouchHistoryMath/index.native.js +58 -81
- package/dist/esm/vendor/react-native/TouchHistoryMath/index.native.js.map +1 -6
- package/dist/esm/vendor/react-native/TurboModule/RCTExport.native.js +2 -1
- package/dist/esm/vendor/react-native/TurboModule/RCTExport.native.js.map +1 -6
- package/dist/esm/vendor/react-native/TurboModule/TurboModuleRegistry.native.js +2 -5
- package/dist/esm/vendor/react-native/TurboModule/TurboModuleRegistry.native.js.map +1 -6
- package/dist/esm/vendor/react-native/Types/CoreEventTypes.native.js +2 -1
- package/dist/esm/vendor/react-native/Types/CoreEventTypes.native.js.map +1 -6
- package/dist/esm/vendor/react-native/Utilities/clamp.native.js +2 -4
- package/dist/esm/vendor/react-native/Utilities/clamp.native.js.map +1 -6
- package/dist/esm/vendor/react-native/Utilities/setAndForwardRef.native.js +5 -6
- package/dist/esm/vendor/react-native/Utilities/setAndForwardRef.native.js.map +1 -6
- package/dist/esm/vendor/react-native/ViewabilityHelper.native.js +127 -129
- package/dist/esm/vendor/react-native/ViewabilityHelper.native.js.map +1 -6
- package/dist/esm/vendor/react-native/VirtualizeUtils/index.native.js +51 -50
- package/dist/esm/vendor/react-native/VirtualizeUtils/index.native.js.map +1 -6
- package/dist/esm/vendor/react-native/VirtualizedList/CellRenderMask.native.js +60 -73
- package/dist/esm/vendor/react-native/VirtualizedList/CellRenderMask.native.js.map +1 -6
- package/dist/esm/vendor/react-native/VirtualizedList/ChildListCollection.native.js +96 -96
- package/dist/esm/vendor/react-native/VirtualizedList/ChildListCollection.native.js.map +1 -6
- package/dist/esm/vendor/react-native/VirtualizedList/StateSafePureComponent.native.js +57 -64
- package/dist/esm/vendor/react-native/VirtualizedList/StateSafePureComponent.native.js.map +1 -6
- package/dist/esm/vendor/react-native/VirtualizedList/VirtualizedListCellRenderer.native.js +105 -117
- package/dist/esm/vendor/react-native/VirtualizedList/VirtualizedListCellRenderer.native.js.map +1 -6
- package/dist/esm/vendor/react-native/VirtualizedList/VirtualizedListContext.native.js +35 -37
- package/dist/esm/vendor/react-native/VirtualizedList/VirtualizedListContext.native.js.map +1 -6
- package/dist/esm/vendor/react-native/VirtualizedList/VirtualizedListProps.native.js +2 -1
- package/dist/esm/vendor/react-native/VirtualizedList/VirtualizedListProps.native.js.map +1 -6
- package/dist/esm/vendor/react-native/VirtualizedList/index.native.js +817 -760
- package/dist/esm/vendor/react-native/VirtualizedList/index.native.js.map +1 -6
- package/dist/esm/vendor/react-native/deepDiffer/index.native.js +17 -29
- package/dist/esm/vendor/react-native/deepDiffer/index.native.js.map +1 -6
- package/dist/esm/vendor/react-native/emitter/EventEmitter.native.js +3 -5
- package/dist/esm/vendor/react-native/emitter/EventEmitter.native.js.map +1 -6
- package/dist/esm/vendor/react-native/emitter/EventSubscription.native.js +2 -1
- package/dist/esm/vendor/react-native/emitter/EventSubscription.native.js.map +1 -6
- package/dist/esm/vendor/react-native/emitter/_EmitterSubscription.native.js +24 -33
- package/dist/esm/vendor/react-native/emitter/_EmitterSubscription.native.js.map +1 -6
- package/dist/esm/vendor/react-native/emitter/_EventEmitter.native.js +41 -51
- package/dist/esm/vendor/react-native/emitter/_EventEmitter.native.js.map +1 -6
- package/dist/esm/vendor/react-native/emitter/_EventSubscription.native.js +12 -16
- package/dist/esm/vendor/react-native/emitter/_EventSubscription.native.js.map +1 -6
- package/dist/esm/vendor/react-native/emitter/_EventSubscriptionVendor.native.js +21 -26
- package/dist/esm/vendor/react-native/emitter/_EventSubscriptionVendor.native.js.map +1 -6
- package/dist/esm/vendor/react-native/infoLog/index.native.js +3 -6
- package/dist/esm/vendor/react-native/infoLog/index.native.js.map +1 -6
- package/dist/esm/vendor/react-native/useRefEffect.native.js +4 -8
- package/dist/esm/vendor/react-native/useRefEffect.native.js.map +1 -6
- package/dist/esm/without-animated.native.js +51 -112
- package/dist/esm/without-animated.native.js.map +1 -6
- package/package.json +6 -6
|
@@ -1,17 +1,15 @@
|
|
|
1
|
-
import AnimatedInterpolation from "./AnimatedInterpolation";
|
|
2
|
-
import AnimatedValue from "./AnimatedValue";
|
|
3
|
-
import AnimatedWithChildren from "./AnimatedWithChildren";
|
|
1
|
+
import AnimatedInterpolation from "./AnimatedInterpolation.native.js";
|
|
2
|
+
import AnimatedValue from "./AnimatedValue.native.js";
|
|
3
|
+
import AnimatedWithChildren from "./AnimatedWithChildren.native.js";
|
|
4
4
|
function _assert_this_initialized(self) {
|
|
5
|
-
if (self === void 0)
|
|
6
|
-
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
5
|
+
if (self === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
7
6
|
return self;
|
|
8
7
|
}
|
|
9
8
|
function _call_super(_this, derived, args) {
|
|
10
9
|
return derived = _get_prototype_of(derived), _possible_constructor_return(_this, _is_native_reflect_construct() ? Reflect.construct(derived, args || [], _get_prototype_of(_this).constructor) : derived.apply(_this, args));
|
|
11
10
|
}
|
|
12
11
|
function _class_call_check(instance, Constructor) {
|
|
13
|
-
if (!(instance instanceof Constructor))
|
|
14
|
-
throw new TypeError("Cannot call a class as a function");
|
|
12
|
+
if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
|
|
15
13
|
}
|
|
16
14
|
function _defineProperties(target, props) {
|
|
17
15
|
for (var i = 0; i < props.length; i++) {
|
|
@@ -23,7 +21,7 @@ function _create_class(Constructor, protoProps, staticProps) {
|
|
|
23
21
|
return protoProps && _defineProperties(Constructor.prototype, protoProps), staticProps && _defineProperties(Constructor, staticProps), Constructor;
|
|
24
22
|
}
|
|
25
23
|
function _get(target, property, receiver) {
|
|
26
|
-
return typeof Reflect < "u" && Reflect.get ? _get = Reflect.get : _get = function(target2, property2, receiver2) {
|
|
24
|
+
return typeof Reflect < "u" && Reflect.get ? _get = Reflect.get : _get = function (target2, property2, receiver2) {
|
|
27
25
|
var base = _super_prop_base(target2, property2);
|
|
28
26
|
if (base) {
|
|
29
27
|
var desc = Object.getOwnPropertyDescriptor(base, property2);
|
|
@@ -32,13 +30,12 @@ function _get(target, property, receiver) {
|
|
|
32
30
|
}, _get(target, property, receiver || target);
|
|
33
31
|
}
|
|
34
32
|
function _get_prototype_of(o) {
|
|
35
|
-
return _get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function(o2) {
|
|
33
|
+
return _get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function (o2) {
|
|
36
34
|
return o2.__proto__ || Object.getPrototypeOf(o2);
|
|
37
35
|
}, _get_prototype_of(o);
|
|
38
36
|
}
|
|
39
37
|
function _inherits(subClass, superClass) {
|
|
40
|
-
if (typeof superClass != "function" && superClass !== null)
|
|
41
|
-
throw new TypeError("Super expression must either be null or a function");
|
|
38
|
+
if (typeof superClass != "function" && superClass !== null) throw new TypeError("Super expression must either be null or a function");
|
|
42
39
|
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
43
40
|
constructor: {
|
|
44
41
|
value: subClass,
|
|
@@ -51,82 +48,69 @@ function _possible_constructor_return(self, call) {
|
|
|
51
48
|
return call && (_type_of(call) === "object" || typeof call == "function") ? call : _assert_this_initialized(self);
|
|
52
49
|
}
|
|
53
50
|
function _set_prototype_of(o, p) {
|
|
54
|
-
return _set_prototype_of = Object.setPrototypeOf || function(o2, p2) {
|
|
51
|
+
return _set_prototype_of = Object.setPrototypeOf || function (o2, p2) {
|
|
55
52
|
return o2.__proto__ = p2, o2;
|
|
56
53
|
}, _set_prototype_of(o, p);
|
|
57
54
|
}
|
|
58
55
|
function _super_prop_base(object, property) {
|
|
59
|
-
for (; !Object.prototype.hasOwnProperty.call(object, property) && (object = _get_prototype_of(object), object !== null);
|
|
60
|
-
;
|
|
56
|
+
for (; !Object.prototype.hasOwnProperty.call(object, property) && (object = _get_prototype_of(object), object !== null););
|
|
61
57
|
return object;
|
|
62
58
|
}
|
|
63
59
|
function _type_of(obj) {
|
|
64
60
|
"@swc/helpers - typeof";
|
|
61
|
+
|
|
65
62
|
return obj && typeof Symbol < "u" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
66
63
|
}
|
|
67
64
|
function _is_native_reflect_construct() {
|
|
68
65
|
try {
|
|
69
|
-
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
}
|
|
73
|
-
return (_is_native_reflect_construct = function() {
|
|
66
|
+
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
|
|
67
|
+
} catch {}
|
|
68
|
+
return (_is_native_reflect_construct = function () {
|
|
74
69
|
return !!result;
|
|
75
70
|
})();
|
|
76
71
|
}
|
|
77
|
-
var AnimatedAddition = /* @__PURE__ */
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
{
|
|
72
|
+
var AnimatedAddition = /* @__PURE__ */function (AnimatedWithChildren2) {
|
|
73
|
+
_inherits(AnimatedAddition2, AnimatedWithChildren2);
|
|
74
|
+
function AnimatedAddition2(a, b) {
|
|
75
|
+
_class_call_check(this, AnimatedAddition2);
|
|
76
|
+
var _this;
|
|
77
|
+
return _this = _call_super(this, AnimatedAddition2), _this._a = typeof a == "number" ? new AnimatedValue(a) : a, _this._b = typeof b == "number" ? new AnimatedValue(b) : b, _this;
|
|
78
|
+
}
|
|
79
|
+
return _create_class(AnimatedAddition2, [{
|
|
86
80
|
key: "__makeNative",
|
|
87
|
-
value: function(platformConfig) {
|
|
81
|
+
value: function (platformConfig) {
|
|
88
82
|
this._a.__makeNative(platformConfig), this._b.__makeNative(platformConfig), _get(_get_prototype_of(AnimatedAddition2.prototype), "__makeNative", this).call(this, platformConfig);
|
|
89
83
|
}
|
|
90
|
-
},
|
|
91
|
-
{
|
|
84
|
+
}, {
|
|
92
85
|
key: "__getValue",
|
|
93
|
-
value: function() {
|
|
86
|
+
value: function () {
|
|
94
87
|
return this._a.__getValue() + this._b.__getValue();
|
|
95
88
|
}
|
|
96
|
-
},
|
|
97
|
-
{
|
|
89
|
+
}, {
|
|
98
90
|
key: "interpolate",
|
|
99
|
-
value: function(config) {
|
|
91
|
+
value: function (config) {
|
|
100
92
|
return new AnimatedInterpolation(this, config);
|
|
101
93
|
}
|
|
102
|
-
},
|
|
103
|
-
{
|
|
94
|
+
}, {
|
|
104
95
|
key: "__attach",
|
|
105
|
-
value: function() {
|
|
96
|
+
value: function () {
|
|
106
97
|
this._a.__addChild(this), this._b.__addChild(this);
|
|
107
98
|
}
|
|
108
|
-
},
|
|
109
|
-
{
|
|
99
|
+
}, {
|
|
110
100
|
key: "__detach",
|
|
111
|
-
value: function() {
|
|
101
|
+
value: function () {
|
|
112
102
|
this._a.__removeChild(this), this._b.__removeChild(this), _get(_get_prototype_of(AnimatedAddition2.prototype), "__detach", this).call(this);
|
|
113
103
|
}
|
|
114
|
-
},
|
|
115
|
-
{
|
|
104
|
+
}, {
|
|
116
105
|
key: "__getNativeConfig",
|
|
117
|
-
value: function() {
|
|
106
|
+
value: function () {
|
|
118
107
|
return {
|
|
119
108
|
type: "addition",
|
|
120
|
-
input: [
|
|
121
|
-
this._a.__getNativeTag(),
|
|
122
|
-
this._b.__getNativeTag()
|
|
123
|
-
]
|
|
109
|
+
input: [this._a.__getNativeTag(), this._b.__getNativeTag()]
|
|
124
110
|
};
|
|
125
111
|
}
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
export {
|
|
130
|
-
|
|
131
|
-
};
|
|
132
|
-
//# sourceMappingURL=AnimatedAddition.js.map
|
|
112
|
+
}]), AnimatedAddition2;
|
|
113
|
+
}(AnimatedWithChildren),
|
|
114
|
+
AnimatedAddition_default = AnimatedAddition;
|
|
115
|
+
export { AnimatedAddition_default as default };
|
|
116
|
+
//# sourceMappingURL=AnimatedAddition.native.js.map
|
|
@@ -1,6 +1 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../../../../src/vendor/react-native/Animated/nodes/Users/n8/tamagui/code/packages/react-native-web-lite/src/vendor/react-native/Animated/nodes/AnimatedAddition.js"],
|
|
4
|
-
"mappings": "AAWA,OAAOA,2BAA2B;AAClC,OAAOC,mBAAmB;AAC1B,OAAOC,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjC,IAAMC,mBAAN,yBAAAD,uBAAA;YAAMC,mBAAAA,qBAAAA;WAAAA,kBACQC,GAAGC,GAAC;4BADZF,iBAAAA;;mBAEF,YAAA,MAFEA,iBAAAA,GAGF,MAAKG,KAAK,OAAOF,KAAM,WAAW,IAAIH,cAAcG,CAAAA,IAAKA,GACzD,MAAKG,KAAK,OAAOF,KAAM,WAAW,IAAIJ,cAAcI,CAAAA,IAAKA;;uBAJvDF,mBAAAA;;MAOJK,KAAAA;aAAAA,SAAaC,gBAAc;AACzB,aAAKH,GAAGE,aAAaC,cAAAA,GAErB,KAAKF,GAAGC,aAAaC,cAAAA,GAErB,KAAA,kBAZEN,kBAAAA,SAAAA,GAYIK,gBAAN,IAAK,EAAA,KAAA,MAAcC,cAAAA;MACrB;;;MAEAC,KAAAA;aAAAA,WAAAA;AACE,eAAO,KAAKJ,GAAGI,WAAU,IAAK,KAAKH,GAAGG,WAAU;MAClD;;;MAEAC,KAAAA;aAAAA,SAAYC,QAAM;AAChB,eAAO,IAAIZ,sBAAsB,MAAMY,MAAAA;MACzC;;;MAEAC,KAAAA;aAAAA,WAAAA;AACE,aAAKP,GAAGQ,WAAW,IAAI,GAEvB,KAAKP,GAAGO,WAAW,IAAI;MACzB;;;MAEAC,KAAAA;aAAAA,WAAAA;AACE,aAAKT,GAAGU,cAAc,IAAI,GAE1B,KAAKT,GAAGS,cAAc,IAAI,GAE1B,KAAA,kBAlCEb,kBAAAA,SAAAA,GAkCIY,YAAN,IAAK,EAAA,KAAA,IAAA;MACP;;;MAEAE,KAAAA;aAAAA,WAAAA;AACE,eAAO;UACLC,MAAM;UACNC,OAAO;YAAC,KAAKb,GAAGc,eAAc;YAAI,KAAKb,GAAGa,eAAc;;QAC1D;MACF;;MA1CIjB;EAAyBD,oBAAAA,GA6C/B,2BAAeC;",
|
|
5
|
-
"names": ["AnimatedInterpolation", "AnimatedValue", "AnimatedWithChildren", "AnimatedAddition", "a", "b", "_a", "_b", "__makeNative", "platformConfig", "__getValue", "interpolate", "config", "__attach", "__addChild", "__detach", "__removeChild", "__getNativeConfig", "type", "input", "__getNativeTag"]
|
|
6
|
-
}
|
|
1
|
+
{"version":3,"names":["AnimatedInterpolation","AnimatedValue","AnimatedWithChildren","_assert_this_initialized","self","ReferenceError","_call_super","_this","derived","args","_get_prototype_of","_possible_constructor_return","_is_native_reflect_construct","Reflect","construct","constructor","apply","_class_call_check","instance","Constructor","TypeError","_defineProperties","target","props","i","length","descriptor","enumerable","configurable","writable","Object","defineProperty","key","_create_class","protoProps","staticProps","prototype","_get","property","receiver","get","target2","property2","receiver2","base","_super_prop_base","desc","getOwnPropertyDescriptor","call","value"],"sources":["../../../../../../src/vendor/react-native/Animated/nodes/AnimatedAddition.js"],"sourcesContent":[null],"mappings":"AAWA,OAAOA,qBAAA,MAA2B;AAClC,OAAOC,aAAA,MAAmB;AAC1B,OAAOC,oBAAA,MAA0B;AAEjC,SAAMC,wBAAyBA,CAAAC,IAAA;EAC7B,IAAAA,IAAA,KAAY,KAAM,GAChB,MAAM,IACNC,cAAU,4DACA,CAAO;EACnB,OAAAD,IAAA;AAAA;AAGE,SAAKE,WAAGA,CAAAC,KAAa,EAAAC,OAAA,EAAAC,IAAc,EAEnC;EAGF,OAAAD,OAAA,GAAAE,iBAAA,CAAAF,OAAA,GAAAG,4BAAA,CAAAJ,KAAA,EAAAK,4BAAA,KAAAC,OAAA,CAAAC,SAAA,CAAAN,OAAA,EAAAC,IAAA,QAAAC,iBAAA,CAAAH,KAAA,EAAAQ,WAAA,IAAAP,OAAA,CAAAQ,KAAA,CAAAT,KAAA,EAAAE,IAAA;AAAA;AAGE,SAAAQ,iBAAeA,CAAAC,QAAe,EAAAC,WAAQ;EACxC,MAAAD,QAAA,YAAAC,WAAA,GAEA,UAAYC,SAAQ;AAClB;AAA6C,SAC/CC,kBAAAC,MAAA,EAAAC,KAAA;EAEA,SAAAC,CAAA,GAAW,GAAAA,CAAA,GAAAD,KAAA,CAAAE,MAAA,EAAAD,CAAA;IACT,IAAAE,UAAQ,GAAAH,KAAW,CAAIC,CAAA;IAGzBE,UAAA,CAAAC,UAAA,GAAAD,UAAA,CAAAC,UAAA,QAAAD,UAAA,CAAAE,YAAA,kBAAAF,UAAA,KAAAA,UAAA,CAAAG,QAAA,QAAAC,MAAA,CAAAC,cAAA,CAAAT,MAAA,EAAAI,UAAA,CAAAM,GAAA,EAAAN,UAAA;EAEA;AACE;AAIe,SACjBO,cAAAd,WAAA,EAAAe,UAAA,EAAAC,WAAA;EAEA,OAAAD,UAAA,IAAoBb,iBAAA,CAAAF,WAAA,CAAAiB,SAAA,EAAAF,UAAA,GAAAC,WAAA,IAAAd,iBAAA,CAAAF,WAAA,EAAAgB,WAAA,GAAAhB,WAAA;AAClB;AAAO,SACLkB,IAAMA,CAAAf,MAAA,EAAAgB,QAAA,EAAAC,QAAA;EAAA,OACN,OAAQ1B,OAAQ,UAAAA,OAAkB,CAAA2B,GAAA,GAAKH,IAAG,GAAAxB,OAAA,CAAA2B,GAAgB,GAAAH,IAAA,YAAAA,CAAAI,OAAA,EAAAC,SAAA,EAAAC,SAAA;IAC5D,IAAAC,IAAA,GAAAC,gBAAA,CAAAJ,OAAA,EAAAC,SAAA;IACF,IAAAE,IAAA;MACF,IAAAE,IAAA,GAAAhB,MAAA,CAAAiB,wBAAA,CAAAH,IAAA,EAAAF,SAAA;MAEO,OAAAI,IAAA,CAAAN,GAAA,GAAAM,IAAA,CAAAN,GAAQ,CAAAQ,IAAA,CAAAL,SAAA,IAAAF,OAAA,IAAAK,IAAA,CAAAG,KAAA","ignoreList":[]}
|
|
@@ -1,18 +1,16 @@
|
|
|
1
1
|
import normalizeColor from "@tamagui/normalize-css-color";
|
|
2
|
-
import NativeAnimatedHelper from "../NativeAnimatedHelper";
|
|
3
|
-
import AnimatedValue from "./AnimatedValue";
|
|
4
|
-
import AnimatedWithChildren from "./AnimatedWithChildren";
|
|
2
|
+
import NativeAnimatedHelper from "../NativeAnimatedHelper.native.js";
|
|
3
|
+
import AnimatedValue from "./AnimatedValue.native.js";
|
|
4
|
+
import AnimatedWithChildren from "./AnimatedWithChildren.native.js";
|
|
5
5
|
function _assert_this_initialized(self) {
|
|
6
|
-
if (self === void 0)
|
|
7
|
-
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
6
|
+
if (self === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
8
7
|
return self;
|
|
9
8
|
}
|
|
10
9
|
function _call_super(_this, derived, args) {
|
|
11
10
|
return derived = _get_prototype_of(derived), _possible_constructor_return(_this, _is_native_reflect_construct() ? Reflect.construct(derived, args || [], _get_prototype_of(_this).constructor) : derived.apply(_this, args));
|
|
12
11
|
}
|
|
13
12
|
function _class_call_check(instance, Constructor) {
|
|
14
|
-
if (!(instance instanceof Constructor))
|
|
15
|
-
throw new TypeError("Cannot call a class as a function");
|
|
13
|
+
if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
|
|
16
14
|
}
|
|
17
15
|
function _defineProperties(target, props) {
|
|
18
16
|
for (var i = 0; i < props.length; i++) {
|
|
@@ -24,7 +22,7 @@ function _create_class(Constructor, protoProps, staticProps) {
|
|
|
24
22
|
return protoProps && _defineProperties(Constructor.prototype, protoProps), staticProps && _defineProperties(Constructor, staticProps), Constructor;
|
|
25
23
|
}
|
|
26
24
|
function _get(target, property, receiver) {
|
|
27
|
-
return typeof Reflect < "u" && Reflect.get ? _get = Reflect.get : _get = function(target2, property2, receiver2) {
|
|
25
|
+
return typeof Reflect < "u" && Reflect.get ? _get = Reflect.get : _get = function (target2, property2, receiver2) {
|
|
28
26
|
var base = _super_prop_base(target2, property2);
|
|
29
27
|
if (base) {
|
|
30
28
|
var desc = Object.getOwnPropertyDescriptor(base, property2);
|
|
@@ -33,13 +31,12 @@ function _get(target, property, receiver) {
|
|
|
33
31
|
}, _get(target, property, receiver || target);
|
|
34
32
|
}
|
|
35
33
|
function _get_prototype_of(o) {
|
|
36
|
-
return _get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function(o2) {
|
|
34
|
+
return _get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function (o2) {
|
|
37
35
|
return o2.__proto__ || Object.getPrototypeOf(o2);
|
|
38
36
|
}, _get_prototype_of(o);
|
|
39
37
|
}
|
|
40
38
|
function _inherits(subClass, superClass) {
|
|
41
|
-
if (typeof superClass != "function" && superClass !== null)
|
|
42
|
-
throw new TypeError("Super expression must either be null or a function");
|
|
39
|
+
if (typeof superClass != "function" && superClass !== null) throw new TypeError("Super expression must either be null or a function");
|
|
43
40
|
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
44
41
|
constructor: {
|
|
45
42
|
value: subClass,
|
|
@@ -52,54 +49,53 @@ function _possible_constructor_return(self, call) {
|
|
|
52
49
|
return call && (_type_of(call) === "object" || typeof call == "function") ? call : _assert_this_initialized(self);
|
|
53
50
|
}
|
|
54
51
|
function _set_prototype_of(o, p) {
|
|
55
|
-
return _set_prototype_of = Object.setPrototypeOf || function(o2, p2) {
|
|
52
|
+
return _set_prototype_of = Object.setPrototypeOf || function (o2, p2) {
|
|
56
53
|
return o2.__proto__ = p2, o2;
|
|
57
54
|
}, _set_prototype_of(o, p);
|
|
58
55
|
}
|
|
59
56
|
function _super_prop_base(object, property) {
|
|
60
|
-
for (; !Object.prototype.hasOwnProperty.call(object, property) && (object = _get_prototype_of(object), object !== null);
|
|
61
|
-
;
|
|
57
|
+
for (; !Object.prototype.hasOwnProperty.call(object, property) && (object = _get_prototype_of(object), object !== null););
|
|
62
58
|
return object;
|
|
63
59
|
}
|
|
64
60
|
function _type_of(obj) {
|
|
65
61
|
"@swc/helpers - typeof";
|
|
62
|
+
|
|
66
63
|
return obj && typeof Symbol < "u" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
67
64
|
}
|
|
68
65
|
function _is_native_reflect_construct() {
|
|
69
66
|
try {
|
|
70
|
-
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
}
|
|
74
|
-
return (_is_native_reflect_construct = function() {
|
|
67
|
+
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
|
|
68
|
+
} catch {}
|
|
69
|
+
return (_is_native_reflect_construct = function () {
|
|
75
70
|
return !!result;
|
|
76
71
|
})();
|
|
77
72
|
}
|
|
78
|
-
var NativeAnimatedAPI = NativeAnimatedHelper.API,
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
function
|
|
87
|
-
if (color == null)
|
|
88
|
-
return null;
|
|
89
|
-
if (isRgbaValue(color))
|
|
73
|
+
var NativeAnimatedAPI = NativeAnimatedHelper.API,
|
|
74
|
+
defaultColor = {
|
|
75
|
+
r: 0,
|
|
76
|
+
g: 0,
|
|
77
|
+
b: 0,
|
|
78
|
+
a: 1
|
|
79
|
+
},
|
|
80
|
+
_uniqueId = 1,
|
|
81
|
+
processColorObject = function (color) {
|
|
90
82
|
return color;
|
|
83
|
+
};
|
|
84
|
+
function processColor(color) {
|
|
85
|
+
if (color == null) return null;
|
|
86
|
+
if (isRgbaValue(color)) return color;
|
|
91
87
|
var normalizedColor = normalizeColor(
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
);
|
|
95
|
-
if (normalizedColor == null)
|
|
96
|
-
return null;
|
|
88
|
+
// $FlowIgnore[incompatible-cast] - Type is verified above
|
|
89
|
+
color);
|
|
90
|
+
if (normalizedColor == null) return null;
|
|
97
91
|
if (typeof normalizedColor == "object") {
|
|
98
92
|
var processedColorObj = processColorObject(normalizedColor);
|
|
99
|
-
if (processedColorObj != null)
|
|
100
|
-
return processedColorObj;
|
|
93
|
+
if (processedColorObj != null) return processedColorObj;
|
|
101
94
|
} else if (typeof normalizedColor == "number") {
|
|
102
|
-
var r = (normalizedColor & 4278190080) >>> 24,
|
|
95
|
+
var r = (normalizedColor & 4278190080) >>> 24,
|
|
96
|
+
g = (normalizedColor & 16711680) >>> 16,
|
|
97
|
+
b = (normalizedColor & 65280) >>> 8,
|
|
98
|
+
a = (normalizedColor & 255) / 255;
|
|
103
99
|
return {
|
|
104
100
|
r,
|
|
105
101
|
g,
|
|
@@ -115,7 +111,7 @@ function isRgbaValue(value) {
|
|
|
115
111
|
function isRgbaAnimatedValue(value) {
|
|
116
112
|
return value && value.r instanceof AnimatedValue && value.g instanceof AnimatedValue && value.b instanceof AnimatedValue && value.a instanceof AnimatedValue;
|
|
117
113
|
}
|
|
118
|
-
var AnimatedColor = /* @__PURE__ */
|
|
114
|
+
var AnimatedColor = /* @__PURE__ */function (AnimatedWithChildren2) {
|
|
119
115
|
_inherits(AnimatedColor2, AnimatedWithChildren2);
|
|
120
116
|
function AnimatedColor2(valueIn, config) {
|
|
121
117
|
_class_call_check(this, AnimatedColor2);
|
|
@@ -126,173 +122,160 @@ var AnimatedColor = /* @__PURE__ */ function(AnimatedWithChildren2) {
|
|
|
126
122
|
var rgbaAnimatedValue = value;
|
|
127
123
|
_this.r = rgbaAnimatedValue.r, _this.g = rgbaAnimatedValue.g, _this.b = rgbaAnimatedValue.b, _this.a = rgbaAnimatedValue.a;
|
|
128
124
|
} else {
|
|
129
|
-
var _processColor,
|
|
125
|
+
var _processColor,
|
|
126
|
+
processedColor =
|
|
130
127
|
// $FlowIgnore[incompatible-cast] - Type is verified above
|
|
131
|
-
(_processColor = processColor(value)) !== null && _processColor !== void 0 ? _processColor : defaultColor
|
|
132
|
-
|
|
128
|
+
(_processColor = processColor(value)) !== null && _processColor !== void 0 ? _processColor : defaultColor,
|
|
129
|
+
initColor = defaultColor;
|
|
133
130
|
isRgbaValue(processedColor) ? initColor = processedColor : _this.nativeColor = processedColor, _this.r = new AnimatedValue(initColor.r), _this.g = new AnimatedValue(initColor.g), _this.b = new AnimatedValue(initColor.b), _this.a = new AnimatedValue(initColor.a);
|
|
134
131
|
}
|
|
135
132
|
return (_this.nativeColor || config && config.useNativeDriver) && _this.__makeNative(), _this;
|
|
136
133
|
}
|
|
137
|
-
return _create_class(AnimatedColor2, [
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
}
|
|
150
|
-
var processedColor = (_processColor2 = processColor(value)) !== null && _processColor2 !== void 0 ? _processColor2 : defaultColor;
|
|
151
|
-
if (isRgbaValue(processedColor)) {
|
|
152
|
-
var rgbaValue = processedColor;
|
|
153
|
-
this.r.setValue(rgbaValue.r), this.g.setValue(rgbaValue.g), this.b.setValue(rgbaValue.b), this.a.setValue(rgbaValue.a), this.nativeColor != null && (this.nativeColor = null, shouldUpdateNodeConfig = !0);
|
|
154
|
-
} else {
|
|
155
|
-
var nativeColor = processedColor;
|
|
156
|
-
this.nativeColor !== nativeColor && (this.nativeColor = nativeColor, shouldUpdateNodeConfig = !0);
|
|
157
|
-
}
|
|
158
|
-
if (this.__isNative) {
|
|
159
|
-
var _nativeTag = this.__getNativeTag();
|
|
160
|
-
shouldUpdateNodeConfig && NativeAnimatedAPI.updateAnimatedNodeConfig(_nativeTag, this.__getNativeConfig()), NativeAnimatedAPI.unsetWaitingForIdentifier(_nativeTag.toString());
|
|
161
|
-
}
|
|
162
|
-
}
|
|
163
|
-
},
|
|
164
|
-
{
|
|
165
|
-
/**
|
|
166
|
-
* Sets an offset that is applied on top of whatever value is set, whether
|
|
167
|
-
* via `setValue`, an animation, or `Animated.event`. Useful for compensating
|
|
168
|
-
* things like the start of a pan gesture.
|
|
169
|
-
*/
|
|
170
|
-
key: "setOffset",
|
|
171
|
-
value: function(offset) {
|
|
172
|
-
this.r.setOffset(offset.r), this.g.setOffset(offset.g), this.b.setOffset(offset.b), this.a.setOffset(offset.a);
|
|
134
|
+
return _create_class(AnimatedColor2, [{
|
|
135
|
+
/**
|
|
136
|
+
* Directly set the value. This will stop any animations running on the value
|
|
137
|
+
* and update all the bound properties.
|
|
138
|
+
*/
|
|
139
|
+
key: "setValue",
|
|
140
|
+
value: function (value) {
|
|
141
|
+
var _processColor2,
|
|
142
|
+
shouldUpdateNodeConfig = !1;
|
|
143
|
+
if (this.__isNative) {
|
|
144
|
+
var nativeTag = this.__getNativeTag();
|
|
145
|
+
NativeAnimatedAPI.setWaitingForIdentifier(nativeTag.toString());
|
|
173
146
|
}
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
value: function() {
|
|
182
|
-
this.r.flattenOffset(), this.g.flattenOffset(), this.b.flattenOffset(), this.a.flattenOffset();
|
|
147
|
+
var processedColor = (_processColor2 = processColor(value)) !== null && _processColor2 !== void 0 ? _processColor2 : defaultColor;
|
|
148
|
+
if (isRgbaValue(processedColor)) {
|
|
149
|
+
var rgbaValue = processedColor;
|
|
150
|
+
this.r.setValue(rgbaValue.r), this.g.setValue(rgbaValue.g), this.b.setValue(rgbaValue.b), this.a.setValue(rgbaValue.a), this.nativeColor != null && (this.nativeColor = null, shouldUpdateNodeConfig = !0);
|
|
151
|
+
} else {
|
|
152
|
+
var nativeColor = processedColor;
|
|
153
|
+
this.nativeColor !== nativeColor && (this.nativeColor = nativeColor, shouldUpdateNodeConfig = !0);
|
|
183
154
|
}
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
* Sets the offset value to the base value, and resets the base value to
|
|
188
|
-
* zero. The final output of the value is unchanged.
|
|
189
|
-
*/
|
|
190
|
-
key: "extractOffset",
|
|
191
|
-
value: function() {
|
|
192
|
-
this.r.extractOffset(), this.g.extractOffset(), this.b.extractOffset(), this.a.extractOffset();
|
|
155
|
+
if (this.__isNative) {
|
|
156
|
+
var _nativeTag = this.__getNativeTag();
|
|
157
|
+
shouldUpdateNodeConfig && NativeAnimatedAPI.updateAnimatedNodeConfig(_nativeTag, this.__getNativeConfig()), NativeAnimatedAPI.unsetWaitingForIdentifier(_nativeTag.toString());
|
|
193
158
|
}
|
|
194
|
-
}
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
159
|
+
}
|
|
160
|
+
}, {
|
|
161
|
+
/**
|
|
162
|
+
* Sets an offset that is applied on top of whatever value is set, whether
|
|
163
|
+
* via `setValue`, an animation, or `Animated.event`. Useful for compensating
|
|
164
|
+
* things like the start of a pan gesture.
|
|
165
|
+
*/
|
|
166
|
+
key: "setOffset",
|
|
167
|
+
value: function (offset) {
|
|
168
|
+
this.r.setOffset(offset.r), this.g.setOffset(offset.g), this.b.setOffset(offset.b), this.a.setOffset(offset.a);
|
|
169
|
+
}
|
|
170
|
+
}, {
|
|
171
|
+
/**
|
|
172
|
+
* Merges the offset value into the base value and resets the offset to zero.
|
|
173
|
+
* The final output of the value is unchanged.
|
|
174
|
+
*/
|
|
175
|
+
key: "flattenOffset",
|
|
176
|
+
value: function () {
|
|
177
|
+
this.r.flattenOffset(), this.g.flattenOffset(), this.b.flattenOffset(), this.a.flattenOffset();
|
|
178
|
+
}
|
|
179
|
+
}, {
|
|
180
|
+
/**
|
|
181
|
+
* Sets the offset value to the base value, and resets the base value to
|
|
182
|
+
* zero. The final output of the value is unchanged.
|
|
183
|
+
*/
|
|
184
|
+
key: "extractOffset",
|
|
185
|
+
value: function () {
|
|
186
|
+
this.r.extractOffset(), this.g.extractOffset(), this.b.extractOffset(), this.a.extractOffset();
|
|
187
|
+
}
|
|
188
|
+
}, {
|
|
189
|
+
/**
|
|
190
|
+
* Adds an asynchronous listener to the value so you can observe updates from
|
|
191
|
+
* animations. This is useful because there is no way to synchronously read
|
|
192
|
+
* the value because it might be driven natively.
|
|
193
|
+
*
|
|
194
|
+
* Returns a string that serves as an identifier for the listener.
|
|
195
|
+
*/
|
|
196
|
+
key: "addListener",
|
|
197
|
+
value: function (callback) {
|
|
198
|
+
var _this = this,
|
|
199
|
+
id = String(_uniqueId++),
|
|
200
|
+
jointCallback = function (_ref) {
|
|
206
201
|
var number = _ref.value;
|
|
207
202
|
callback(_this.__getValue());
|
|
208
203
|
};
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
}
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
{
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
value: function() {
|
|
283
|
-
return {
|
|
284
|
-
type: "color",
|
|
285
|
-
r: this.r.__getNativeTag(),
|
|
286
|
-
g: this.g.__getNativeTag(),
|
|
287
|
-
b: this.b.__getNativeTag(),
|
|
288
|
-
a: this.a.__getNativeTag(),
|
|
289
|
-
nativeColor: this.nativeColor
|
|
290
|
-
};
|
|
291
|
-
}
|
|
204
|
+
return this._listeners[id] = {
|
|
205
|
+
r: this.r.addListener(jointCallback),
|
|
206
|
+
g: this.g.addListener(jointCallback),
|
|
207
|
+
b: this.b.addListener(jointCallback),
|
|
208
|
+
a: this.a.addListener(jointCallback)
|
|
209
|
+
}, id;
|
|
210
|
+
}
|
|
211
|
+
}, {
|
|
212
|
+
/**
|
|
213
|
+
* Unregister a listener. The `id` param shall match the identifier
|
|
214
|
+
* previously returned by `addListener()`.
|
|
215
|
+
*/
|
|
216
|
+
key: "removeListener",
|
|
217
|
+
value: function (id) {
|
|
218
|
+
this.r.removeListener(this._listeners[id].r), this.g.removeListener(this._listeners[id].g), this.b.removeListener(this._listeners[id].b), this.a.removeListener(this._listeners[id].a), delete this._listeners[id];
|
|
219
|
+
}
|
|
220
|
+
}, {
|
|
221
|
+
/**
|
|
222
|
+
* Remove all registered listeners.
|
|
223
|
+
*/
|
|
224
|
+
key: "removeAllListeners",
|
|
225
|
+
value: function () {
|
|
226
|
+
this.r.removeAllListeners(), this.g.removeAllListeners(), this.b.removeAllListeners(), this.a.removeAllListeners(), this._listeners = {};
|
|
227
|
+
}
|
|
228
|
+
}, {
|
|
229
|
+
/**
|
|
230
|
+
* Stops any running animation or tracking. `callback` is invoked with the
|
|
231
|
+
* final value after stopping the animation, which is useful for updating
|
|
232
|
+
* state to match the animation position with layout.
|
|
233
|
+
*/
|
|
234
|
+
key: "stopAnimation",
|
|
235
|
+
value: function (callback) {
|
|
236
|
+
this.r.stopAnimation(), this.g.stopAnimation(), this.b.stopAnimation(), this.a.stopAnimation(), callback && callback(this.__getValue());
|
|
237
|
+
}
|
|
238
|
+
}, {
|
|
239
|
+
/**
|
|
240
|
+
* Stops any animation and resets the value to its original.
|
|
241
|
+
*/
|
|
242
|
+
key: "resetAnimation",
|
|
243
|
+
value: function (callback) {
|
|
244
|
+
this.r.resetAnimation(), this.g.resetAnimation(), this.b.resetAnimation(), this.a.resetAnimation(), callback && callback(this.__getValue());
|
|
245
|
+
}
|
|
246
|
+
}, {
|
|
247
|
+
key: "__getValue",
|
|
248
|
+
value: function () {
|
|
249
|
+
return this.nativeColor != null ? this.nativeColor : "rgba(" + this.r.__getValue() + ", " + this.g.__getValue() + ", " + this.b.__getValue() + ", " + this.a.__getValue() + ")";
|
|
250
|
+
}
|
|
251
|
+
}, {
|
|
252
|
+
key: "__attach",
|
|
253
|
+
value: function () {
|
|
254
|
+
this.r.__addChild(this), this.g.__addChild(this), this.b.__addChild(this), this.a.__addChild(this), _get(_get_prototype_of(AnimatedColor2.prototype), "__attach", this).call(this);
|
|
255
|
+
}
|
|
256
|
+
}, {
|
|
257
|
+
key: "__detach",
|
|
258
|
+
value: function () {
|
|
259
|
+
this.r.__removeChild(this), this.g.__removeChild(this), this.b.__removeChild(this), this.a.__removeChild(this), _get(_get_prototype_of(AnimatedColor2.prototype), "__detach", this).call(this);
|
|
260
|
+
}
|
|
261
|
+
}, {
|
|
262
|
+
key: "__makeNative",
|
|
263
|
+
value: function (platformConfig) {
|
|
264
|
+
this.r.__makeNative(platformConfig), this.g.__makeNative(platformConfig), this.b.__makeNative(platformConfig), this.a.__makeNative(platformConfig), _get(_get_prototype_of(AnimatedColor2.prototype), "__makeNative", this).call(this, platformConfig);
|
|
265
|
+
}
|
|
266
|
+
}, {
|
|
267
|
+
key: "__getNativeConfig",
|
|
268
|
+
value: function () {
|
|
269
|
+
return {
|
|
270
|
+
type: "color",
|
|
271
|
+
r: this.r.__getNativeTag(),
|
|
272
|
+
g: this.g.__getNativeTag(),
|
|
273
|
+
b: this.b.__getNativeTag(),
|
|
274
|
+
a: this.a.__getNativeTag(),
|
|
275
|
+
nativeColor: this.nativeColor
|
|
276
|
+
};
|
|
292
277
|
}
|
|
293
|
-
]), AnimatedColor2;
|
|
278
|
+
}]), AnimatedColor2;
|
|
294
279
|
}(AnimatedWithChildren);
|
|
295
|
-
export {
|
|
296
|
-
|
|
297
|
-
};
|
|
298
|
-
//# sourceMappingURL=AnimatedColor.js.map
|
|
280
|
+
export { AnimatedColor as default };
|
|
281
|
+
//# sourceMappingURL=AnimatedColor.native.js.map
|