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