@tamagui/react-native-web-lite 1.113.0 → 1.113.2
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 +62 -58
- package/dist/esm/AccessibilityInfo/index.native.js.map +6 -1
- package/dist/esm/ActivityIndicator/__tests__/index-test.native.js +55 -85
- package/dist/esm/ActivityIndicator/__tests__/index-test.native.js.map +6 -1
- package/dist/esm/ActivityIndicator/index.native.js +90 -82
- package/dist/esm/ActivityIndicator/index.native.js.map +6 -1
- package/dist/esm/Alert/index.native.js +18 -14
- package/dist/esm/Alert/index.native.js.map +6 -1
- package/dist/esm/AppRegistry/AppContainer.native.js +26 -30
- package/dist/esm/AppRegistry/AppContainer.native.js.map +6 -1
- package/dist/esm/AppRegistry/__tests__/index-test.native.js +13 -13
- package/dist/esm/AppRegistry/__tests__/index-test.native.js.map +6 -1
- package/dist/esm/AppRegistry/__tests__/index-test.node.native.js +34 -45
- package/dist/esm/AppRegistry/__tests__/index-test.node.native.js.map +6 -1
- package/dist/esm/AppRegistry/index.native.js +55 -50
- package/dist/esm/AppRegistry/index.native.js.map +6 -1
- package/dist/esm/AppRegistry/renderApplication.native.js +27 -33
- package/dist/esm/AppRegistry/renderApplication.native.js.map +6 -1
- package/dist/esm/AppState/__tests__/index-test.native.js +10 -9
- package/dist/esm/AppState/__tests__/index-test.native.js.map +6 -1
- package/dist/esm/AppState/index.native.js +51 -45
- package/dist/esm/AppState/index.native.js.map +6 -1
- package/dist/esm/Appearance/index.native.js +24 -27
- package/dist/esm/Appearance/index.native.js.map +6 -1
- package/dist/esm/BackHandler/index.native.js +13 -11
- package/dist/esm/BackHandler/index.native.js.map +6 -1
- package/dist/esm/Clipboard/index.native.js +26 -21
- package/dist/esm/Clipboard/index.native.js.map +6 -1
- package/dist/esm/DeviceEmitter.native.js +5 -3
- package/dist/esm/DeviceEmitter.native.js.map +6 -1
- package/dist/esm/DeviceInfo/index.native.js +33 -41
- package/dist/esm/DeviceInfo/index.native.js.map +6 -1
- package/dist/esm/Dimensions/__tests__/index-test.native.js +8 -9
- package/dist/esm/Dimensions/__tests__/index-test.native.js.map +6 -1
- package/dist/esm/Dimensions/index.native.js +53 -49
- package/dist/esm/Dimensions/index.native.js.map +6 -1
- package/dist/esm/I18nManager/index.native.js +13 -10
- package/dist/esm/I18nManager/index.native.js.map +6 -1
- package/dist/esm/Image/index.native.js +149 -174
- package/dist/esm/Image/index.native.js.map +6 -1
- package/dist/esm/Image/types.native.js +1 -2
- package/dist/esm/Image/types.native.js.map +6 -1
- package/dist/esm/ImageBackground/__tests__/index-test.native.js +19 -27
- package/dist/esm/ImageBackground/__tests__/index-test.native.js.map +6 -1
- package/dist/esm/ImageBackground/index.native.js +33 -35
- package/dist/esm/ImageBackground/index.native.js.map +6 -1
- package/dist/esm/Keyboard/index.native.js +17 -13
- package/dist/esm/Keyboard/index.native.js.map +6 -1
- package/dist/esm/KeyboardAvoidingView/index.native.js +44 -34
- package/dist/esm/KeyboardAvoidingView/index.native.js.map +6 -1
- package/dist/esm/Linking/__tests__/index-test.native.js +9 -9
- package/dist/esm/Linking/__tests__/index-test.native.js.map +6 -1
- package/dist/esm/Linking/index.native.js +49 -42
- package/dist/esm/Linking/index.native.js.map +6 -1
- package/dist/esm/LogBox/index.native.js +12 -7
- package/dist/esm/LogBox/index.native.js.map +6 -1
- package/dist/esm/Modal/ModalAnimation.native.js +112 -89
- package/dist/esm/Modal/ModalAnimation.native.js.map +6 -1
- package/dist/esm/Modal/ModalContent.native.js +54 -52
- package/dist/esm/Modal/ModalContent.native.js.map +6 -1
- package/dist/esm/Modal/ModalFocusTrap.native.js +52 -49
- package/dist/esm/Modal/ModalFocusTrap.native.js.map +6 -1
- package/dist/esm/Modal/ModalPortal.native.js +11 -9
- package/dist/esm/Modal/ModalPortal.native.js.map +6 -1
- package/dist/esm/Modal/index.native.js +45 -53
- package/dist/esm/Modal/index.native.js.map +6 -1
- package/dist/esm/NativeModules/index.native.js +6 -5
- package/dist/esm/NativeModules/index.native.js.map +6 -1
- package/dist/esm/PanResponder/Alternative.js +122 -157
- package/dist/esm/PanResponder/Alternative.js.map +6 -1
- package/dist/esm/PanResponder/index.native.js +5 -3
- package/dist/esm/PanResponder/index.native.js.map +6 -1
- package/dist/esm/PixelRatio/index.native.js +59 -48
- package/dist/esm/PixelRatio/index.native.js.map +6 -1
- package/dist/esm/Pressable/index.native.js +67 -70
- package/dist/esm/Pressable/index.native.js.map +6 -1
- package/dist/esm/RefreshControl/index.native.js +6 -4
- package/dist/esm/RefreshControl/index.native.js.map +6 -1
- package/dist/esm/SafeAreaView/index.native.js +21 -24
- package/dist/esm/SafeAreaView/index.native.js.map +6 -1
- package/dist/esm/ScrollView/ScrollViewBase.native.js +50 -61
- package/dist/esm/ScrollView/ScrollViewBase.native.js.map +6 -1
- package/dist/esm/ScrollView/index.native.js +211 -183
- package/dist/esm/ScrollView/index.native.js.map +6 -1
- package/dist/esm/Share/index.native.js +36 -29
- package/dist/esm/Share/index.native.js.map +6 -1
- package/dist/esm/StatusBar/index.native.js +6 -3
- package/dist/esm/StatusBar/index.native.js.map +6 -1
- package/dist/esm/Text/index.native.js +100 -128
- package/dist/esm/Text/index.native.js.map +6 -1
- package/dist/esm/Text/types.native.js +1 -2
- package/dist/esm/Text/types.native.js.map +6 -1
- package/dist/esm/TextInput/__tests__/index-test.native.js +259 -445
- package/dist/esm/TextInput/__tests__/index-test.native.js.map +6 -1
- package/dist/esm/TextInput/index.native.js +157 -220
- package/dist/esm/TextInput/index.native.js.map +6 -1
- package/dist/esm/TextInput/types.native.js +1 -2
- package/dist/esm/TextInput/types.native.js.map +6 -1
- package/dist/esm/TouchableOpacity.native.js +67 -63
- package/dist/esm/TouchableOpacity.native.js.map +6 -1
- package/dist/esm/TouchableWithoutFeedback.native.js +45 -49
- package/dist/esm/TouchableWithoutFeedback.native.js.map +6 -1
- package/dist/esm/UnimplementedView.native.js +30 -22
- package/dist/esm/UnimplementedView.native.js.map +6 -1
- package/dist/esm/Vibration/index.native.js +14 -14
- package/dist/esm/Vibration/index.native.js.map +6 -1
- package/dist/esm/View/index.native.js +55 -84
- package/dist/esm/View/index.native.js.map +6 -1
- package/dist/esm/View/types.native.js +1 -2
- package/dist/esm/View/types.native.js.map +6 -1
- package/dist/esm/createElement/__tests__/index-test.native.js +195 -398
- package/dist/esm/createElement/__tests__/index-test.native.js.map +6 -1
- package/dist/esm/createElement/index.native.js +14 -16
- package/dist/esm/createElement/index.native.js.map +6 -1
- package/dist/esm/createReactDOMStyle.native.js +4 -2
- package/dist/esm/createReactDOMStyle.native.js.map +6 -1
- package/dist/esm/findNodeHandle.native.js +7 -4
- package/dist/esm/findNodeHandle.native.js.map +6 -1
- package/dist/esm/index.native.js +133 -55
- package/dist/esm/index.native.js.map +6 -1
- package/dist/esm/render/index.native.js +9 -4
- package/dist/esm/render/index.native.js.map +6 -1
- package/dist/esm/styleTypes.native.js +1 -2
- package/dist/esm/styleTypes.native.js.map +6 -1
- package/dist/esm/types.native.js +1 -2
- package/dist/esm/types.native.js.map +6 -1
- package/dist/esm/useColorScheme/index.native.js +7 -7
- package/dist/esm/useColorScheme/index.native.js.map +6 -1
- package/dist/esm/useLocaleContext/index.native.js +4 -2
- package/dist/esm/useLocaleContext/index.native.js.map +6 -1
- package/dist/esm/useWindowDimensions/index.native.js +9 -9
- package/dist/esm/useWindowDimensions/index.native.js.map +6 -1
- package/dist/esm/vendor/react-native/Animated/Animated.native.js +17 -16
- package/dist/esm/vendor/react-native/Animated/Animated.native.js.map +6 -1
- package/dist/esm/vendor/react-native/Animated/AnimatedEvent.native.js +99 -72
- package/dist/esm/vendor/react-native/Animated/AnimatedEvent.native.js.map +6 -1
- package/dist/esm/vendor/react-native/Animated/AnimatedImplementation.native.js +436 -465
- package/dist/esm/vendor/react-native/Animated/AnimatedImplementation.native.js.map +6 -1
- package/dist/esm/vendor/react-native/Animated/AnimatedMock.native.js +91 -97
- package/dist/esm/vendor/react-native/Animated/AnimatedMock.native.js.map +6 -1
- package/dist/esm/vendor/react-native/Animated/AnimatedPlatformConfig.native.js +1 -2
- package/dist/esm/vendor/react-native/Animated/AnimatedPlatformConfig.native.js.map +6 -1
- package/dist/esm/vendor/react-native/Animated/Easing.native.js +231 -194
- package/dist/esm/vendor/react-native/Animated/Easing.native.js.map +6 -1
- package/dist/esm/vendor/react-native/Animated/NativeAnimatedHelper.native.js +222 -206
- package/dist/esm/vendor/react-native/Animated/NativeAnimatedHelper.native.js.map +6 -1
- package/dist/esm/vendor/react-native/Animated/NativeAnimatedModule.native.js +5 -3
- package/dist/esm/vendor/react-native/Animated/NativeAnimatedModule.native.js.map +6 -1
- package/dist/esm/vendor/react-native/Animated/NativeAnimatedTurboModule.native.js +5 -3
- package/dist/esm/vendor/react-native/Animated/NativeAnimatedTurboModule.native.js.map +6 -1
- package/dist/esm/vendor/react-native/Animated/SpringConfig.native.js +5 -5
- package/dist/esm/vendor/react-native/Animated/SpringConfig.native.js.map +6 -1
- package/dist/esm/vendor/react-native/Animated/animations/Animation.native.js +37 -25
- package/dist/esm/vendor/react-native/Animated/animations/Animation.native.js.map +6 -1
- package/dist/esm/vendor/react-native/Animated/animations/DecayAnimation.native.js +54 -42
- package/dist/esm/vendor/react-native/Animated/animations/DecayAnimation.native.js.map +6 -1
- 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 +6 -1
- package/dist/esm/vendor/react-native/Animated/animations/TimingAnimation.native.js +60 -45
- package/dist/esm/vendor/react-native/Animated/animations/TimingAnimation.native.js.map +6 -1
- package/dist/esm/vendor/react-native/Animated/bezier.native.js +20 -23
- package/dist/esm/vendor/react-native/Animated/bezier.native.js.map +6 -1
- package/dist/esm/vendor/react-native/Animated/components/AnimatedImage.native.js +6 -4
- package/dist/esm/vendor/react-native/Animated/components/AnimatedImage.native.js.map +6 -1
- package/dist/esm/vendor/react-native/Animated/components/AnimatedScrollView.native.js +13 -12
- package/dist/esm/vendor/react-native/Animated/components/AnimatedScrollView.native.js.map +6 -1
- package/dist/esm/vendor/react-native/Animated/components/AnimatedText.native.js +6 -4
- package/dist/esm/vendor/react-native/Animated/components/AnimatedText.native.js.map +6 -1
- package/dist/esm/vendor/react-native/Animated/components/AnimatedView.native.js +6 -4
- package/dist/esm/vendor/react-native/Animated/components/AnimatedView.native.js.map +6 -1
- package/dist/esm/vendor/react-native/Animated/createAnimatedComponent.native.js +11 -17
- package/dist/esm/vendor/react-native/Animated/createAnimatedComponent.native.js.map +6 -1
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedAddition.native.js +55 -39
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedAddition.native.js.map +6 -1
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedColor.native.js +197 -180
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedColor.native.js.map +6 -1
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedDiffClamp.native.js +51 -39
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedDiffClamp.native.js.map +6 -1
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedDivision.native.js +57 -42
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedDivision.native.js.map +6 -1
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedInterpolation.native.js +116 -99
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedInterpolation.native.js.map +6 -1
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedModulo.native.js +50 -37
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedModulo.native.js.map +6 -1
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedMultiplication.native.js +55 -39
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedMultiplication.native.js.map +6 -1
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedNode.native.js +89 -61
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedNode.native.js.map +6 -1
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedProps.native.js +70 -52
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedProps.native.js.map +6 -1
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedStyle.native.js +68 -50
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedStyle.native.js.map +6 -1
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedSubtraction.native.js +55 -39
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedSubtraction.native.js.map +6 -1
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedTracking.native.js +53 -41
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedTracking.native.js.map +6 -1
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedTransform.native.js +57 -44
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedTransform.native.js.map +6 -1
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedValue.native.js +99 -70
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedValue.native.js.map +6 -1
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedValueXY.native.js +82 -64
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedValueXY.native.js.map +6 -1
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedWithChildren.native.js +53 -40
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedWithChildren.native.js.map +6 -1
- package/dist/esm/vendor/react-native/Animated/useAnimatedProps.native.js +58 -50
- package/dist/esm/vendor/react-native/Animated/useAnimatedProps.native.js.map +6 -1
- package/dist/esm/vendor/react-native/FeatureFlags.native.js +10 -8
- package/dist/esm/vendor/react-native/FeatureFlags.native.js.map +6 -1
- package/dist/esm/vendor/react-native/NativeEventEmitter/RCTDeviceEventEmitter.native.js +5 -3
- package/dist/esm/vendor/react-native/NativeEventEmitter/RCTDeviceEventEmitter.native.js.map +6 -1
- package/dist/esm/vendor/react-native/NativeEventEmitter/index.native.js +55 -46
- package/dist/esm/vendor/react-native/NativeEventEmitter/index.native.js.map +6 -1
- package/dist/esm/vendor/react-native/PanResponder/index.native.js +219 -224
- package/dist/esm/vendor/react-native/PanResponder/index.native.js.map +6 -1
- package/dist/esm/vendor/react-native/TouchHistoryMath/index.native.js +81 -58
- package/dist/esm/vendor/react-native/TouchHistoryMath/index.native.js.map +6 -1
- package/dist/esm/vendor/react-native/TurboModule/RCTExport.native.js +1 -2
- package/dist/esm/vendor/react-native/TurboModule/RCTExport.native.js.map +6 -1
- package/dist/esm/vendor/react-native/TurboModule/TurboModuleRegistry.native.js +5 -2
- package/dist/esm/vendor/react-native/TurboModule/TurboModuleRegistry.native.js.map +6 -1
- package/dist/esm/vendor/react-native/Types/CoreEventTypes.native.js +1 -2
- package/dist/esm/vendor/react-native/Types/CoreEventTypes.native.js.map +6 -1
- package/dist/esm/vendor/react-native/Utilities/setAndForwardRef.native.js +6 -5
- package/dist/esm/vendor/react-native/Utilities/setAndForwardRef.native.js.map +6 -1
- package/dist/esm/vendor/react-native/emitter/EventEmitter.native.js +5 -3
- package/dist/esm/vendor/react-native/emitter/EventEmitter.native.js.map +6 -1
- package/dist/esm/vendor/react-native/emitter/EventSubscription.native.js +1 -2
- package/dist/esm/vendor/react-native/emitter/EventSubscription.native.js.map +6 -1
- package/dist/esm/vendor/react-native/emitter/_EmitterSubscription.native.js +33 -24
- package/dist/esm/vendor/react-native/emitter/_EmitterSubscription.native.js.map +6 -1
- package/dist/esm/vendor/react-native/emitter/_EventEmitter.native.js +51 -41
- package/dist/esm/vendor/react-native/emitter/_EventEmitter.native.js.map +6 -1
- package/dist/esm/vendor/react-native/emitter/_EventSubscription.native.js +16 -12
- package/dist/esm/vendor/react-native/emitter/_EventSubscription.native.js.map +6 -1
- package/dist/esm/vendor/react-native/emitter/_EventSubscriptionVendor.native.js +26 -21
- package/dist/esm/vendor/react-native/emitter/_EventSubscriptionVendor.native.js.map +6 -1
- package/dist/esm/vendor/react-native/infoLog/index.native.js +6 -3
- package/dist/esm/vendor/react-native/infoLog/index.native.js.map +6 -1
- package/dist/esm/vendor/react-native/useRefEffect.native.js +8 -4
- package/dist/esm/vendor/react-native/useRefEffect.native.js.map +6 -1
- package/dist/esm/without-animated.native.js +115 -52
- package/dist/esm/without-animated.native.js.map +6 -1
- package/package.json +6 -6
|
@@ -1,17 +1,19 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import React from "react";
|
|
3
3
|
import { StyleSheet, TextInputState, dismissKeyboard, invariant, mergeRefs, warning } from "@tamagui/react-native-web-internals";
|
|
4
|
-
import View from "../View/index
|
|
5
|
-
import ScrollViewBase from "./ScrollViewBase
|
|
4
|
+
import View from "../View/index";
|
|
5
|
+
import ScrollViewBase from "./ScrollViewBase";
|
|
6
6
|
function _assert_this_initialized(self) {
|
|
7
|
-
if (self === void 0)
|
|
7
|
+
if (self === void 0)
|
|
8
|
+
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
8
9
|
return self;
|
|
9
10
|
}
|
|
10
11
|
function _call_super(_this, derived, args) {
|
|
11
12
|
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
13
|
}
|
|
13
14
|
function _class_call_check(instance, Constructor) {
|
|
14
|
-
if (!(instance instanceof Constructor))
|
|
15
|
+
if (!(instance instanceof Constructor))
|
|
16
|
+
throw new TypeError("Cannot call a class as a function");
|
|
15
17
|
}
|
|
16
18
|
function _defineProperties(target, props) {
|
|
17
19
|
for (var i = 0; i < props.length; i++) {
|
|
@@ -31,12 +33,13 @@ function _define_property(obj, key, value) {
|
|
|
31
33
|
}) : obj[key] = value, obj;
|
|
32
34
|
}
|
|
33
35
|
function _get_prototype_of(o) {
|
|
34
|
-
return _get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function
|
|
36
|
+
return _get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function(o2) {
|
|
35
37
|
return o2.__proto__ || Object.getPrototypeOf(o2);
|
|
36
38
|
}, _get_prototype_of(o);
|
|
37
39
|
}
|
|
38
40
|
function _inherits(subClass, superClass) {
|
|
39
|
-
if (typeof superClass != "function" && superClass !== null)
|
|
41
|
+
if (typeof superClass != "function" && superClass !== null)
|
|
42
|
+
throw new TypeError("Super expression must either be null or a function");
|
|
40
43
|
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
41
44
|
constructor: {
|
|
42
45
|
value: subClass,
|
|
@@ -49,40 +52,39 @@ function _possible_constructor_return(self, call) {
|
|
|
49
52
|
return call && (_type_of(call) === "object" || typeof call == "function") ? call : _assert_this_initialized(self);
|
|
50
53
|
}
|
|
51
54
|
function _set_prototype_of(o, p) {
|
|
52
|
-
return _set_prototype_of = Object.setPrototypeOf || function
|
|
55
|
+
return _set_prototype_of = Object.setPrototypeOf || function(o2, p2) {
|
|
53
56
|
return o2.__proto__ = p2, o2;
|
|
54
57
|
}, _set_prototype_of(o, p);
|
|
55
58
|
}
|
|
56
59
|
function _type_of(obj) {
|
|
57
60
|
"@swc/helpers - typeof";
|
|
58
|
-
|
|
59
61
|
return obj && typeof Symbol < "u" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
60
62
|
}
|
|
61
63
|
function _is_native_reflect_construct() {
|
|
62
64
|
try {
|
|
63
|
-
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function
|
|
64
|
-
|
|
65
|
-
|
|
65
|
+
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
|
|
66
|
+
}));
|
|
67
|
+
} catch {
|
|
68
|
+
}
|
|
69
|
+
return (_is_native_reflect_construct = function() {
|
|
66
70
|
return !!result;
|
|
67
71
|
})();
|
|
68
72
|
}
|
|
69
|
-
var IS_ANIMATING_TOUCH_START_THRESHOLD_MS = 16,
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
}
|
|
85
|
-
return _create_class(ScrollView2, [{
|
|
73
|
+
var IS_ANIMATING_TOUCH_START_THRESHOLD_MS = 16, ScrollView = /* @__PURE__ */ function(_React_Component) {
|
|
74
|
+
"use strict";
|
|
75
|
+
_inherits(ScrollView2, _React_Component);
|
|
76
|
+
function ScrollView2() {
|
|
77
|
+
_class_call_check(this, ScrollView2);
|
|
78
|
+
var _this;
|
|
79
|
+
return _this = _call_super(this, ScrollView2, arguments), _define_property(_this, "_scrollNodeRef", void 0), _define_property(_this, "_innerViewRef", void 0), _define_property(_this, "keyboardWillOpenTo", null), _define_property(_this, "additionalScrollOffset", 0), _define_property(_this, "isTouching", !1), _define_property(_this, "lastMomentumScrollBeginTime", 0), _define_property(_this, "lastMomentumScrollEndTime", 0), // Reset to false every time becomes responder. This is used to:
|
|
80
|
+
// - Determine if the scroll view has been scrolled and therefore should
|
|
81
|
+
// refuse to give up its responder lock.
|
|
82
|
+
// - Determine if releasing should dismiss the keyboard when we are in
|
|
83
|
+
// tap-to-dismiss mode (!this.props.keyboardShouldPersistTaps).
|
|
84
|
+
_define_property(_this, "observedScrollSinceBecomingResponder", !1), _define_property(_this, "becameResponderWhileAnimating", !1), _this;
|
|
85
|
+
}
|
|
86
|
+
return _create_class(ScrollView2, [
|
|
87
|
+
{
|
|
86
88
|
/**
|
|
87
89
|
* Returns a reference to the underlying scroll responder, which supports
|
|
88
90
|
* operations like `scrollTo`. All ScrollView-like components should
|
|
@@ -90,32 +92,37 @@ var IS_ANIMATING_TOUCH_START_THRESHOLD_MS = 16,
|
|
|
90
92
|
* to the underlying scroll responder's methods.
|
|
91
93
|
*/
|
|
92
94
|
key: "getScrollResponder",
|
|
93
|
-
value: function
|
|
95
|
+
value: function() {
|
|
94
96
|
return this.mixin;
|
|
95
97
|
}
|
|
96
|
-
},
|
|
98
|
+
},
|
|
99
|
+
{
|
|
97
100
|
key: "getScrollableNode",
|
|
98
|
-
value: function
|
|
101
|
+
value: function() {
|
|
99
102
|
return this._scrollNodeRef;
|
|
100
103
|
}
|
|
101
|
-
},
|
|
104
|
+
},
|
|
105
|
+
{
|
|
102
106
|
key: "getInnerViewRef",
|
|
103
|
-
value: function
|
|
107
|
+
value: function() {
|
|
104
108
|
return this._innerViewRef;
|
|
105
109
|
}
|
|
106
|
-
},
|
|
110
|
+
},
|
|
111
|
+
{
|
|
107
112
|
key: "getInnerViewNode",
|
|
108
|
-
value: function
|
|
113
|
+
value: function() {
|
|
109
114
|
return this._innerViewRef;
|
|
110
115
|
}
|
|
111
|
-
},
|
|
116
|
+
},
|
|
117
|
+
{
|
|
112
118
|
key: "getNativeScrollRef",
|
|
113
|
-
value: function
|
|
119
|
+
value: function() {
|
|
114
120
|
return this._scrollNodeRef;
|
|
115
121
|
}
|
|
116
|
-
},
|
|
122
|
+
},
|
|
123
|
+
{
|
|
117
124
|
key: "render",
|
|
118
|
-
value: function
|
|
125
|
+
value: function() {
|
|
119
126
|
var {
|
|
120
127
|
contentContainerStyle,
|
|
121
128
|
horizontal,
|
|
@@ -132,99 +139,106 @@ var IS_ANIMATING_TOUCH_START_THRESHOLD_MS = 16,
|
|
|
132
139
|
...other
|
|
133
140
|
} = this.props;
|
|
134
141
|
if (process.env.NODE_ENV !== "production" && this.props.style) {
|
|
135
|
-
var style = StyleSheet.flatten(this.props.style),
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
142
|
+
var style = StyleSheet.flatten(this.props.style), childLayoutProps = [
|
|
143
|
+
"alignItems",
|
|
144
|
+
"justifyContent"
|
|
145
|
+
].filter(function(prop) {
|
|
146
|
+
return style && style[prop] !== void 0;
|
|
147
|
+
});
|
|
139
148
|
invariant(childLayoutProps.length === 0, `ScrollView child layout (${JSON.stringify(childLayoutProps)}) must be applied through the contentContainerStyle prop.`);
|
|
140
149
|
}
|
|
141
150
|
var contentSizeChangeProps = {};
|
|
142
151
|
onContentSizeChange && (contentSizeChangeProps = {
|
|
143
152
|
onLayout: this._handleContentOnLayout.bind(this)
|
|
144
153
|
});
|
|
145
|
-
var hasStickyHeaderIndices = !horizontal && Array.isArray(stickyHeaderIndices),
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
154
|
+
var hasStickyHeaderIndices = !horizontal && Array.isArray(stickyHeaderIndices), children = hasStickyHeaderIndices || pagingEnabled ? React.Children.map(this.props.children, function(child, i) {
|
|
155
|
+
var isSticky = hasStickyHeaderIndices && stickyHeaderIndices.indexOf(i) > -1;
|
|
156
|
+
return child != null && (isSticky || pagingEnabled) ? /* @__PURE__ */ _jsx(View, {
|
|
157
|
+
style: StyleSheet.compose(isSticky && styles.stickyHeader, pagingEnabled && styles.pagingEnabledChild),
|
|
158
|
+
children: child
|
|
159
|
+
}) : child;
|
|
160
|
+
}) : this.props.children, contentContainer = /* @__PURE__ */ _jsx(View, {
|
|
161
|
+
...contentSizeChangeProps,
|
|
162
|
+
// @ts-ignore
|
|
163
|
+
collapsable: !1,
|
|
164
|
+
ref: this._setInnerViewRef.bind(this),
|
|
165
|
+
style: [
|
|
166
|
+
horizontal && styles.contentContainerHorizontal,
|
|
167
|
+
centerContent && styles.contentContainerCenterContent,
|
|
168
|
+
contentContainerStyle
|
|
169
|
+
],
|
|
170
|
+
children
|
|
171
|
+
}), baseStyle = horizontal ? styles.baseHorizontal : styles.baseVertical, pagingEnabledStyle = horizontal ? styles.pagingEnabledHorizontal : styles.pagingEnabledVertical, props = {
|
|
172
|
+
...other,
|
|
173
|
+
style: [
|
|
174
|
+
baseStyle,
|
|
175
|
+
pagingEnabled && pagingEnabledStyle,
|
|
176
|
+
this.props.style
|
|
177
|
+
],
|
|
178
|
+
onTouchStart: this.scrollResponderHandleTouchStart.bind(this),
|
|
179
|
+
onTouchMove: this.scrollResponderHandleTouchMove.bind(this),
|
|
180
|
+
onTouchEnd: this.scrollResponderHandleTouchEnd.bind(this),
|
|
181
|
+
onScrollBeginDrag: this.scrollResponderHandleScrollBeginDrag.bind(this),
|
|
182
|
+
onScrollEndDrag: this.scrollResponderHandleScrollEndDrag.bind(this),
|
|
183
|
+
onMomentumScrollBegin: this.scrollResponderHandleMomentumScrollBegin.bind(this),
|
|
184
|
+
onMomentumScrollEnd: this.scrollResponderHandleMomentumScrollEnd.bind(this),
|
|
185
|
+
onStartShouldSetResponder: this.scrollResponderHandleStartShouldSetResponder.bind(this),
|
|
186
|
+
onStartShouldSetResponderCapture: this.scrollResponderHandleStartShouldSetResponderCapture.bind(this),
|
|
187
|
+
onScrollShouldSetResponder: this.scrollResponderHandleScrollShouldSetResponder.bind(this),
|
|
188
|
+
onScroll: this._handleScroll.bind(this),
|
|
189
|
+
onResponderGrant: this.scrollResponderHandleResponderGrant.bind(this),
|
|
190
|
+
onResponderTerminationRequest: this.scrollResponderHandleTerminationRequest.bind(this),
|
|
191
|
+
onResponderRelease: this.scrollResponderHandleResponderRelease.bind(this),
|
|
192
|
+
onResponderReject: this.scrollResponderHandleResponderReject.bind(this)
|
|
193
|
+
}, ScrollViewClass = ScrollViewBase;
|
|
183
194
|
invariant(ScrollViewClass !== void 0, "ScrollViewClass must not be undefined");
|
|
184
|
-
var scrollView = /* @__PURE__ */_jsx(ScrollViewClass, {
|
|
195
|
+
var scrollView = /* @__PURE__ */ _jsx(ScrollViewClass, {
|
|
185
196
|
...props,
|
|
186
197
|
ref: this._setScrollNodeRef.bind(this),
|
|
187
198
|
children: contentContainer
|
|
188
199
|
});
|
|
189
|
-
return refreshControl ? /* @__PURE__ */React.cloneElement(refreshControl, {
|
|
200
|
+
return refreshControl ? /* @__PURE__ */ React.cloneElement(refreshControl, {
|
|
190
201
|
style: props.style
|
|
191
202
|
}, scrollView) : scrollView;
|
|
192
203
|
}
|
|
193
|
-
},
|
|
204
|
+
},
|
|
205
|
+
{
|
|
194
206
|
key: "_handleContentOnLayout",
|
|
195
|
-
value: function
|
|
196
|
-
var {
|
|
197
|
-
width,
|
|
198
|
-
height
|
|
199
|
-
} = e.nativeEvent.layout;
|
|
207
|
+
value: function(e) {
|
|
208
|
+
var { width, height } = e.nativeEvent.layout;
|
|
200
209
|
this.props.onContentSizeChange(width, height);
|
|
201
210
|
}
|
|
202
|
-
},
|
|
211
|
+
},
|
|
212
|
+
{
|
|
203
213
|
key: "_handleScroll",
|
|
204
|
-
value: function
|
|
214
|
+
value: function(e) {
|
|
205
215
|
process.env.NODE_ENV !== "production" && this.props.onScroll && this.props.scrollEventThrottle == null && console.info("You specified `onScroll` on a <ScrollView> but not `scrollEventThrottle`. You will only receive one event. Using `16` you get all the events but be aware that it may cause frame drops, use a bigger number if you don't need as much precision."), this.props.keyboardDismissMode === "on-drag" && dismissKeyboard(), this.scrollResponderHandleScroll(e);
|
|
206
216
|
}
|
|
207
|
-
},
|
|
217
|
+
},
|
|
218
|
+
{
|
|
208
219
|
key: "_setInnerViewRef",
|
|
209
|
-
value: function
|
|
220
|
+
value: function(node) {
|
|
210
221
|
this._innerViewRef = node;
|
|
211
222
|
}
|
|
212
|
-
},
|
|
223
|
+
},
|
|
224
|
+
{
|
|
213
225
|
key: "_setScrollNodeRef",
|
|
214
|
-
value: function
|
|
226
|
+
value: function(node) {
|
|
215
227
|
this._scrollNodeRef = node, node != null && (node.getScrollResponder = this.getScrollResponder, node.getInnerViewNode = this.getInnerViewNode, node.getInnerViewRef = this.getInnerViewRef, node.getNativeScrollRef = this.getNativeScrollRef, node.getScrollableNode = this.getScrollableNode, node.scrollTo = this.scrollTo, node.scrollToEnd = this.scrollToEnd, node.scrollResponderZoomTo = this.scrollResponderZoomTo, node.scrollResponderScrollNativeHandleToKeyboard = this.scrollResponderScrollNativeHandleToKeyboard);
|
|
216
228
|
var ref = mergeRefs(this.props.forwardedRef);
|
|
217
229
|
ref(node);
|
|
218
230
|
}
|
|
219
|
-
},
|
|
231
|
+
},
|
|
232
|
+
{
|
|
220
233
|
/**
|
|
221
234
|
* Invoke this from an `onScroll` event.
|
|
222
235
|
*/
|
|
223
236
|
key: "scrollResponderHandleScrollShouldSetResponder",
|
|
224
|
-
value: function
|
|
237
|
+
value: function() {
|
|
225
238
|
return this.isTouching;
|
|
226
239
|
}
|
|
227
|
-
},
|
|
240
|
+
},
|
|
241
|
+
{
|
|
228
242
|
/**
|
|
229
243
|
* Merely touch starting is not sufficient for a scroll view to become the
|
|
230
244
|
* responder. Being the "responder" means that the very next touch move/end
|
|
@@ -251,10 +265,11 @@ var IS_ANIMATING_TOUCH_START_THRESHOLD_MS = 16,
|
|
|
251
265
|
*
|
|
252
266
|
*/
|
|
253
267
|
key: "scrollResponderHandleStartShouldSetResponder",
|
|
254
|
-
value: function
|
|
268
|
+
value: function() {
|
|
255
269
|
return !1;
|
|
256
270
|
}
|
|
257
|
-
},
|
|
271
|
+
},
|
|
272
|
+
{
|
|
258
273
|
/**
|
|
259
274
|
* There are times when the scroll view wants to become the responder
|
|
260
275
|
* (meaning respond to the next immediate `touchStart/touchEnd`), in a way
|
|
@@ -267,10 +282,11 @@ var IS_ANIMATING_TOUCH_START_THRESHOLD_MS = 16,
|
|
|
267
282
|
* Invoke this from an `onStartShouldSetResponderCapture` event.
|
|
268
283
|
*/
|
|
269
284
|
key: "scrollResponderHandleStartShouldSetResponderCapture",
|
|
270
|
-
value: function
|
|
285
|
+
value: function(e) {
|
|
271
286
|
return this.scrollResponderIsAnimating();
|
|
272
287
|
}
|
|
273
|
-
},
|
|
288
|
+
},
|
|
289
|
+
{
|
|
274
290
|
/**
|
|
275
291
|
* Invoke this from an `onResponderReject` event.
|
|
276
292
|
*
|
|
@@ -282,10 +298,11 @@ var IS_ANIMATING_TOUCH_START_THRESHOLD_MS = 16,
|
|
|
282
298
|
* a touch has already started.
|
|
283
299
|
*/
|
|
284
300
|
key: "scrollResponderHandleResponderReject",
|
|
285
|
-
value: function
|
|
301
|
+
value: function() {
|
|
286
302
|
warning(!1, "ScrollView doesn't take rejection well - scrolls anyway");
|
|
287
303
|
}
|
|
288
|
-
},
|
|
304
|
+
},
|
|
305
|
+
{
|
|
289
306
|
/**
|
|
290
307
|
* We will allow the scroll view to give up its lock iff it acquired the lock
|
|
291
308
|
* during an animation. This is a very useful default that happens to satisfy
|
|
@@ -302,44 +319,49 @@ var IS_ANIMATING_TOUCH_START_THRESHOLD_MS = 16,
|
|
|
302
319
|
* rejected.
|
|
303
320
|
*/
|
|
304
321
|
key: "scrollResponderHandleTerminationRequest",
|
|
305
|
-
value: function
|
|
322
|
+
value: function() {
|
|
306
323
|
return !this.observedScrollSinceBecomingResponder;
|
|
307
324
|
}
|
|
308
|
-
},
|
|
325
|
+
},
|
|
326
|
+
{
|
|
309
327
|
/**
|
|
310
328
|
* Invoke this from an `onTouchEnd` event.
|
|
311
329
|
*
|
|
312
330
|
* @param {SyntheticEvent} e Event.
|
|
313
331
|
*/
|
|
314
332
|
key: "scrollResponderHandleTouchEnd",
|
|
315
|
-
value: function
|
|
333
|
+
value: function(e) {
|
|
316
334
|
var nativeEvent = e.nativeEvent;
|
|
317
335
|
this.isTouching = nativeEvent.touches.length !== 0, this.props.onTouchEnd && this.props.onTouchEnd(e);
|
|
318
336
|
}
|
|
319
|
-
},
|
|
337
|
+
},
|
|
338
|
+
{
|
|
320
339
|
/**
|
|
321
340
|
* Invoke this from an `onResponderRelease` event.
|
|
322
341
|
*/
|
|
323
342
|
key: "scrollResponderHandleResponderRelease",
|
|
324
|
-
value: function
|
|
343
|
+
value: function(e) {
|
|
325
344
|
this.props.onResponderRelease && this.props.onResponderRelease(e);
|
|
326
345
|
var currentlyFocusedTextInput = TextInputState.currentlyFocusedField();
|
|
327
346
|
!this.props.keyboardShouldPersistTaps && currentlyFocusedTextInput != null && e.target !== currentlyFocusedTextInput && !this.observedScrollSinceBecomingResponder && !this.becameResponderWhileAnimating && (this.props.onScrollResponderKeyboardDismissed && this.props.onScrollResponderKeyboardDismissed(e), TextInputState.blurTextInput(currentlyFocusedTextInput));
|
|
328
347
|
}
|
|
329
|
-
},
|
|
348
|
+
},
|
|
349
|
+
{
|
|
330
350
|
key: "scrollResponderHandleScroll",
|
|
331
|
-
value: function
|
|
351
|
+
value: function(e) {
|
|
332
352
|
this.observedScrollSinceBecomingResponder = !0, this.props.onScroll && this.props.onScroll(e);
|
|
333
353
|
}
|
|
334
|
-
},
|
|
354
|
+
},
|
|
355
|
+
{
|
|
335
356
|
/**
|
|
336
357
|
* Invoke this from an `onResponderGrant` event.
|
|
337
358
|
*/
|
|
338
359
|
key: "scrollResponderHandleResponderGrant",
|
|
339
|
-
value: function
|
|
360
|
+
value: function(e) {
|
|
340
361
|
this.observedScrollSinceBecomingResponder = !1, this.props.onResponderGrant && this.props.onResponderGrant(e), this.becameResponderWhileAnimating = this.scrollResponderIsAnimating();
|
|
341
362
|
}
|
|
342
|
-
},
|
|
363
|
+
},
|
|
364
|
+
{
|
|
343
365
|
/**
|
|
344
366
|
* Unfortunately, `onScrollBeginDrag` also fires when *stopping* the scroll
|
|
345
367
|
* animation, and there's not an easy way to distinguish a drag vs. stopping
|
|
@@ -348,34 +370,38 @@ var IS_ANIMATING_TOUCH_START_THRESHOLD_MS = 16,
|
|
|
348
370
|
* Invoke this from an `onScrollBeginDrag` event.
|
|
349
371
|
*/
|
|
350
372
|
key: "scrollResponderHandleScrollBeginDrag",
|
|
351
|
-
value: function
|
|
373
|
+
value: function(e) {
|
|
352
374
|
this.props.onScrollBeginDrag && this.props.onScrollBeginDrag(e);
|
|
353
375
|
}
|
|
354
|
-
},
|
|
376
|
+
},
|
|
377
|
+
{
|
|
355
378
|
/**
|
|
356
379
|
* Invoke this from an `onScrollEndDrag` event.
|
|
357
380
|
*/
|
|
358
381
|
key: "scrollResponderHandleScrollEndDrag",
|
|
359
|
-
value: function
|
|
382
|
+
value: function(e) {
|
|
360
383
|
this.props.onScrollEndDrag && this.props.onScrollEndDrag(e);
|
|
361
384
|
}
|
|
362
|
-
},
|
|
385
|
+
},
|
|
386
|
+
{
|
|
363
387
|
/**
|
|
364
388
|
* Invoke this from an `onMomentumScrollBegin` event.
|
|
365
389
|
*/
|
|
366
390
|
key: "scrollResponderHandleMomentumScrollBegin",
|
|
367
|
-
value: function
|
|
391
|
+
value: function(e) {
|
|
368
392
|
this.lastMomentumScrollBeginTime = Date.now(), this.props.onMomentumScrollBegin && this.props.onMomentumScrollBegin(e);
|
|
369
393
|
}
|
|
370
|
-
},
|
|
394
|
+
},
|
|
395
|
+
{
|
|
371
396
|
/**
|
|
372
397
|
* Invoke this from an `onMomentumScrollEnd` event.
|
|
373
398
|
*/
|
|
374
399
|
key: "scrollResponderHandleMomentumScrollEnd",
|
|
375
|
-
value: function
|
|
400
|
+
value: function(e) {
|
|
376
401
|
this.lastMomentumScrollEndTime = Date.now(), this.props.onMomentumScrollEnd && this.props.onMomentumScrollEnd(e);
|
|
377
402
|
}
|
|
378
|
-
},
|
|
403
|
+
},
|
|
404
|
+
{
|
|
379
405
|
/**
|
|
380
406
|
* Invoke this from an `onTouchStart` event.
|
|
381
407
|
*
|
|
@@ -388,10 +414,11 @@ var IS_ANIMATING_TOUCH_START_THRESHOLD_MS = 16,
|
|
|
388
414
|
* @param {SyntheticEvent} e Touch Start event.
|
|
389
415
|
*/
|
|
390
416
|
key: "scrollResponderHandleTouchStart",
|
|
391
|
-
value: function
|
|
417
|
+
value: function(e) {
|
|
392
418
|
this.isTouching = !0, this.props.onTouchStart && this.props.onTouchStart(e);
|
|
393
419
|
}
|
|
394
|
-
},
|
|
420
|
+
},
|
|
421
|
+
{
|
|
395
422
|
/**
|
|
396
423
|
* Invoke this from an `onTouchMove` event.
|
|
397
424
|
*
|
|
@@ -404,78 +431,79 @@ var IS_ANIMATING_TOUCH_START_THRESHOLD_MS = 16,
|
|
|
404
431
|
* @param {SyntheticEvent} e Touch Start event.
|
|
405
432
|
*/
|
|
406
433
|
key: "scrollResponderHandleTouchMove",
|
|
407
|
-
value: function
|
|
434
|
+
value: function(e) {
|
|
408
435
|
this.props.onTouchMove && this.props.onTouchMove(e);
|
|
409
436
|
}
|
|
410
|
-
},
|
|
437
|
+
},
|
|
438
|
+
{
|
|
411
439
|
/**
|
|
412
440
|
* A helper function for this class that lets us quickly determine if the
|
|
413
441
|
* view is currently animating. This is particularly useful to know when
|
|
414
442
|
* a touch has just started or ended.
|
|
415
443
|
*/
|
|
416
444
|
key: "scrollResponderIsAnimating",
|
|
417
|
-
value: function
|
|
418
|
-
var now = Date.now(),
|
|
419
|
-
timeSinceLastMomentumScrollEnd = now - this.lastMomentumScrollEndTime,
|
|
420
|
-
isAnimating = timeSinceLastMomentumScrollEnd < IS_ANIMATING_TOUCH_START_THRESHOLD_MS || this.lastMomentumScrollEndTime < this.lastMomentumScrollBeginTime;
|
|
445
|
+
value: function() {
|
|
446
|
+
var now = Date.now(), timeSinceLastMomentumScrollEnd = now - this.lastMomentumScrollEndTime, isAnimating = timeSinceLastMomentumScrollEnd < IS_ANIMATING_TOUCH_START_THRESHOLD_MS || this.lastMomentumScrollEndTime < this.lastMomentumScrollBeginTime;
|
|
421
447
|
return isAnimating;
|
|
422
448
|
}
|
|
423
|
-
}
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
449
|
+
}
|
|
450
|
+
]), ScrollView2;
|
|
451
|
+
}(React.Component), commonStyle = {
|
|
452
|
+
flexGrow: 1,
|
|
453
|
+
flexShrink: 1,
|
|
454
|
+
// Enable hardware compositing in modern browsers.
|
|
455
|
+
// Creates a new layer with its own backing surface that can significantly
|
|
456
|
+
// improve scroll performance.
|
|
457
|
+
transform: [
|
|
458
|
+
{
|
|
432
459
|
translateZ: 0
|
|
433
|
-
}],
|
|
434
|
-
// iOS native scrolling
|
|
435
|
-
WebkitOverflowScrolling: "touch"
|
|
436
|
-
},
|
|
437
|
-
styles = {
|
|
438
|
-
baseVertical: {
|
|
439
|
-
...commonStyle,
|
|
440
|
-
flexDirection: "column",
|
|
441
|
-
overflowX: "hidden",
|
|
442
|
-
overflowY: "auto"
|
|
443
|
-
},
|
|
444
|
-
baseHorizontal: {
|
|
445
|
-
...commonStyle,
|
|
446
|
-
flexDirection: "row",
|
|
447
|
-
overflowX: "auto",
|
|
448
|
-
overflowY: "hidden"
|
|
449
|
-
},
|
|
450
|
-
contentContainerHorizontal: {
|
|
451
|
-
flexDirection: "row"
|
|
452
|
-
},
|
|
453
|
-
contentContainerCenterContent: {
|
|
454
|
-
justifyContent: "center",
|
|
455
|
-
flexGrow: 1
|
|
456
|
-
},
|
|
457
|
-
stickyHeader: {
|
|
458
|
-
position: "sticky",
|
|
459
|
-
top: 0,
|
|
460
|
-
zIndex: 10
|
|
461
|
-
},
|
|
462
|
-
pagingEnabledHorizontal: {
|
|
463
|
-
scrollSnapType: "x mandatory"
|
|
464
|
-
},
|
|
465
|
-
pagingEnabledVertical: {
|
|
466
|
-
scrollSnapType: "y mandatory"
|
|
467
|
-
},
|
|
468
|
-
pagingEnabledChild: {
|
|
469
|
-
scrollSnapAlign: "start"
|
|
470
460
|
}
|
|
461
|
+
],
|
|
462
|
+
// iOS native scrolling
|
|
463
|
+
WebkitOverflowScrolling: "touch"
|
|
464
|
+
}, styles = {
|
|
465
|
+
baseVertical: {
|
|
466
|
+
...commonStyle,
|
|
467
|
+
flexDirection: "column",
|
|
468
|
+
overflowX: "hidden",
|
|
469
|
+
overflowY: "auto"
|
|
470
|
+
},
|
|
471
|
+
baseHorizontal: {
|
|
472
|
+
...commonStyle,
|
|
473
|
+
flexDirection: "row",
|
|
474
|
+
overflowX: "auto",
|
|
475
|
+
overflowY: "hidden"
|
|
476
|
+
},
|
|
477
|
+
contentContainerHorizontal: {
|
|
478
|
+
flexDirection: "row"
|
|
471
479
|
},
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
480
|
+
contentContainerCenterContent: {
|
|
481
|
+
justifyContent: "center",
|
|
482
|
+
flexGrow: 1
|
|
483
|
+
},
|
|
484
|
+
stickyHeader: {
|
|
485
|
+
position: "sticky",
|
|
486
|
+
top: 0,
|
|
487
|
+
zIndex: 10
|
|
488
|
+
},
|
|
489
|
+
pagingEnabledHorizontal: {
|
|
490
|
+
scrollSnapType: "x mandatory"
|
|
491
|
+
},
|
|
492
|
+
pagingEnabledVertical: {
|
|
493
|
+
scrollSnapType: "y mandatory"
|
|
494
|
+
},
|
|
495
|
+
pagingEnabledChild: {
|
|
496
|
+
scrollSnapAlign: "start"
|
|
497
|
+
}
|
|
498
|
+
}, ForwardedScrollView = /* @__PURE__ */ React.forwardRef(function(props, forwardedRef) {
|
|
499
|
+
return /* @__PURE__ */ _jsx(ScrollView, {
|
|
500
|
+
...props,
|
|
501
|
+
forwardedRef
|
|
477
502
|
});
|
|
503
|
+
});
|
|
478
504
|
ForwardedScrollView.displayName = "ScrollView";
|
|
479
505
|
var ScrollView_default = ForwardedScrollView;
|
|
480
|
-
export {
|
|
481
|
-
|
|
506
|
+
export {
|
|
507
|
+
ScrollView_default as default
|
|
508
|
+
};
|
|
509
|
+
//# sourceMappingURL=index.js.map
|