@hanzogui/react-native-web-lite 3.0.5 → 4.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (401) hide show
  1. package/dist/cjs/AccessibilityInfo/index.cjs +77 -65
  2. package/dist/cjs/ActivityIndicator/__tests__/index-test.cjs +70 -49
  3. package/dist/cjs/ActivityIndicator/index.cjs +110 -108
  4. package/dist/cjs/Alert/index.cjs +12 -10
  5. package/dist/cjs/AppRegistry/AppContainer.cjs +50 -45
  6. package/dist/cjs/AppRegistry/__tests__/index-test.cjs +32 -18
  7. package/dist/cjs/AppRegistry/__tests__/index-test.node.cjs +47 -40
  8. package/dist/cjs/AppRegistry/index.cjs +38 -26
  9. package/dist/cjs/AppRegistry/renderApplication.cjs +44 -39
  10. package/dist/cjs/AppState/__tests__/index-test.cjs +13 -9
  11. package/dist/cjs/AppState/index.cjs +41 -25
  12. package/dist/cjs/Appearance/index.cjs +38 -27
  13. package/dist/cjs/BackHandler/index.cjs +12 -10
  14. package/dist/cjs/Clipboard/index.cjs +30 -17
  15. package/dist/cjs/DeviceEmitter.cjs +12 -10
  16. package/dist/cjs/DeviceInfo/index.cjs +21 -13
  17. package/dist/cjs/Dimensions/__tests__/index-test.cjs +29 -16
  18. package/dist/cjs/Dimensions/index.cjs +63 -33
  19. package/dist/cjs/FlatList.cjs +139 -95
  20. package/dist/cjs/I18nManager/index.cjs +19 -13
  21. package/dist/cjs/Image/index.cjs +209 -147
  22. package/dist/cjs/Image/types.cjs +7 -5
  23. package/dist/cjs/ImageBackground/__tests__/index-test.cjs +33 -29
  24. package/dist/cjs/ImageBackground/index.cjs +49 -47
  25. package/dist/cjs/InteractionManager/TaskQueue.cjs +49 -25
  26. package/dist/cjs/InteractionManager/index.cjs +115 -88
  27. package/dist/cjs/Keyboard/index.cjs +12 -10
  28. package/dist/cjs/KeyboardAvoidingView/index.cjs +30 -26
  29. package/dist/cjs/Libraries/Pressability/Pressability.cjs +12 -10
  30. package/dist/cjs/Libraries/Pressability/usePressability.cjs +12 -10
  31. package/dist/cjs/Linking/__tests__/index-test.cjs +31 -15
  32. package/dist/cjs/Linking/index.cjs +37 -23
  33. package/dist/cjs/LogBox/index.cjs +12 -10
  34. package/dist/cjs/Modal/ModalAnimation.cjs +141 -114
  35. package/dist/cjs/Modal/ModalContent.cjs +39 -29
  36. package/dist/cjs/Modal/ModalPortal.cjs +44 -33
  37. package/dist/cjs/Modal/index.cjs +12 -10
  38. package/dist/cjs/NativeModules/index.cjs +12 -10
  39. package/dist/cjs/PanResponder/index.cjs +24 -22
  40. package/dist/cjs/PixelRatio/index.cjs +12 -10
  41. package/dist/cjs/Pressable/index.cjs +128 -100
  42. package/dist/cjs/RefreshControl/index.cjs +14 -12
  43. package/dist/cjs/SafeAreaView/index.cjs +44 -37
  44. package/dist/cjs/ScrollView/ScrollViewBase.cjs +111 -84
  45. package/dist/cjs/ScrollView/index.cjs +255 -172
  46. package/dist/cjs/SectionList.cjs +26 -24
  47. package/dist/cjs/Share/index.cjs +25 -15
  48. package/dist/cjs/StatusBar/index.cjs +12 -10
  49. package/dist/cjs/Text/index.cjs +171 -144
  50. package/dist/cjs/Text/types.cjs +7 -5
  51. package/dist/cjs/TextInput/index.cjs +252 -141
  52. package/dist/cjs/TextInput/types.cjs +7 -5
  53. package/dist/cjs/TouchableNativeFeedback.cjs +12 -10
  54. package/dist/cjs/TouchableOpacity.cjs +91 -82
  55. package/dist/cjs/TouchableWithoutFeedback.cjs +73 -69
  56. package/dist/cjs/UnimplementedView.cjs +31 -26
  57. package/dist/cjs/Vibration/index.cjs +23 -19
  58. package/dist/cjs/View/index.cjs +106 -85
  59. package/dist/cjs/View/types.cjs +7 -5
  60. package/dist/cjs/VirtualizedList.cjs +26 -24
  61. package/dist/cjs/codegenNativeCommand.cjs +14 -11
  62. package/dist/cjs/codegenNativeComponent.cjs +14 -11
  63. package/dist/cjs/createElement/__tests__/index-test.cjs +162 -99
  64. package/dist/cjs/createElement/index.cjs +78 -68
  65. package/dist/cjs/createReactDOMStyle.cjs +12 -10
  66. package/dist/cjs/index.cjs +78 -76
  67. package/dist/cjs/modules/requestIdleCallback.cjs +28 -26
  68. package/dist/cjs/preprocess.cjs +12 -10
  69. package/dist/cjs/render/index.cjs +12 -10
  70. package/dist/cjs/styleTypes.cjs +7 -5
  71. package/dist/cjs/types.cjs +7 -5
  72. package/dist/cjs/useColorScheme/index.cjs +29 -26
  73. package/dist/cjs/useLocaleContext/index.cjs +12 -10
  74. package/dist/cjs/useWindowDimensions/index.cjs +35 -28
  75. package/dist/cjs/vendor/react-native/Animated/Animated.cjs +31 -29
  76. package/dist/cjs/vendor/react-native/Animated/AnimatedEvent.cjs +97 -45
  77. package/dist/cjs/vendor/react-native/Animated/AnimatedImplementation.cjs +545 -466
  78. package/dist/cjs/vendor/react-native/Animated/AnimatedMock.cjs +106 -99
  79. package/dist/cjs/vendor/react-native/Animated/Easing.cjs +27 -15
  80. package/dist/cjs/vendor/react-native/Animated/NativeAnimatedHelper.cjs +303 -215
  81. package/dist/cjs/vendor/react-native/Animated/NativeAnimatedModule.cjs +58 -56
  82. package/dist/cjs/vendor/react-native/Animated/NativeAnimatedTurboModule.cjs +55 -53
  83. package/dist/cjs/vendor/react-native/Animated/SpringConfig.cjs +22 -14
  84. package/dist/cjs/vendor/react-native/Animated/animations/Animation.cjs +22 -14
  85. package/dist/cjs/vendor/react-native/Animated/animations/DecayAnimation.cjs +45 -21
  86. package/dist/cjs/vendor/react-native/Animated/animations/SpringAnimation.cjs +116 -44
  87. package/dist/cjs/vendor/react-native/Animated/animations/TimingAnimation.cjs +77 -32
  88. package/dist/cjs/vendor/react-native/Animated/bezier.cjs +68 -27
  89. package/dist/cjs/vendor/react-native/Animated/components/AnimatedFlatList.cjs +33 -31
  90. package/dist/cjs/vendor/react-native/Animated/components/AnimatedImage.cjs +26 -13
  91. package/dist/cjs/vendor/react-native/Animated/components/AnimatedScrollView.cjs +33 -31
  92. package/dist/cjs/vendor/react-native/Animated/components/AnimatedSectionList.cjs +33 -31
  93. package/dist/cjs/vendor/react-native/Animated/components/AnimatedText.cjs +14 -12
  94. package/dist/cjs/vendor/react-native/Animated/components/AnimatedView.cjs +14 -12
  95. package/dist/cjs/vendor/react-native/Animated/createAnimatedComponent.cjs +40 -37
  96. package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedAddition.cjs +26 -17
  97. package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedColor.cjs +148 -65
  98. package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedDiffClamp.cjs +28 -18
  99. package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedDivision.cjs +42 -22
  100. package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedInterpolation.cjs +122 -47
  101. package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedModulo.cjs +21 -15
  102. package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedMultiplication.cjs +26 -17
  103. package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedNode.cjs +70 -27
  104. package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedProps.cjs +73 -32
  105. package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedStyle.cjs +60 -28
  106. package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedSubtraction.cjs +26 -17
  107. package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedTracking.cjs +36 -19
  108. package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedTransform.cjs +57 -32
  109. package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedValue.cjs +108 -39
  110. package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedValueXY.cjs +53 -30
  111. package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedWithChildren.cjs +44 -18
  112. package/dist/cjs/vendor/react-native/Animated/useAnimatedProps.cjs +63 -43
  113. package/dist/cjs/vendor/react-native/Batchinator/index.cjs +27 -15
  114. package/dist/cjs/vendor/react-native/EventEmitter/NativeEventEmitter.cjs +28 -16
  115. package/dist/cjs/vendor/react-native/EventEmitter/RCTDeviceEventEmitter.cjs +12 -10
  116. package/dist/cjs/vendor/react-native/FeatureFlags.cjs +18 -16
  117. package/dist/cjs/vendor/react-native/FillRateHelper/index.cjs +92 -42
  118. package/dist/cjs/vendor/react-native/FlatList/index.cjs +166 -105
  119. package/dist/cjs/vendor/react-native/JSEventLoopWatchdog/index.cjs +39 -24
  120. package/dist/cjs/vendor/react-native/LayoutAnimation/index.cjs +75 -71
  121. package/dist/cjs/vendor/react-native/PanResponder/index.cjs +181 -118
  122. package/dist/cjs/vendor/react-native/PooledClass/index.cjs +44 -30
  123. package/dist/cjs/vendor/react-native/ReactNative/ReactNativeFeatureFlags.cjs +17 -15
  124. package/dist/cjs/vendor/react-native/SectionList/index.cjs +63 -39
  125. package/dist/cjs/vendor/react-native/StaticContainer/index.cjs +25 -23
  126. package/dist/cjs/vendor/react-native/StaticRenderer/index.cjs +24 -22
  127. package/dist/cjs/vendor/react-native/TouchHistoryMath/index.cjs +48 -29
  128. package/dist/cjs/vendor/react-native/TurboModule/RCTExport.cjs +17 -15
  129. package/dist/cjs/vendor/react-native/TurboModule/TurboModuleRegistry.cjs +14 -11
  130. package/dist/cjs/vendor/react-native/Types/CoreEventTypes.cjs +127 -125
  131. package/dist/cjs/vendor/react-native/Utilities/Platform.cjs +12 -10
  132. package/dist/cjs/vendor/react-native/Utilities/clamp.cjs +19 -11
  133. package/dist/cjs/vendor/react-native/Utilities/setAndForwardRef.cjs +19 -12
  134. package/dist/cjs/vendor/react-native/Utilities/useMergeRefs.cjs +21 -11
  135. package/dist/cjs/vendor/react-native/Utilities/useRefEffect.cjs +19 -11
  136. package/dist/cjs/vendor/react-native/ViewabilityHelper/index.cjs +92 -51
  137. package/dist/cjs/vendor/react-native/ViewabilityHelper.cjs +91 -50
  138. package/dist/cjs/vendor/react-native/VirtualizeUtils/index.cjs +96 -58
  139. package/dist/cjs/vendor/react-native/VirtualizedList/CellRenderMask.cjs +75 -44
  140. package/dist/cjs/vendor/react-native/VirtualizedList/ChildListCollection.cjs +36 -17
  141. package/dist/cjs/vendor/react-native/VirtualizedList/StateSafePureComponent.cjs +51 -41
  142. package/dist/cjs/vendor/react-native/VirtualizedList/VirtualizedListCellRenderer.cjs +87 -78
  143. package/dist/cjs/vendor/react-native/VirtualizedList/VirtualizedListContext.cjs +36 -32
  144. package/dist/cjs/vendor/react-native/VirtualizedList/VirtualizedListProps.cjs +19 -17
  145. package/dist/cjs/vendor/react-native/VirtualizedList/index.cjs +147 -101
  146. package/dist/cjs/vendor/react-native/VirtualizedSectionList/index.cjs +93 -58
  147. package/dist/cjs/vendor/react-native/deepDiffer/index.cjs +49 -19
  148. package/dist/cjs/vendor/react-native/emitter/EventEmitter.cjs +12 -10
  149. package/dist/cjs/vendor/react-native/emitter/_EmitterSubscription.cjs +16 -11
  150. package/dist/cjs/vendor/react-native/emitter/_EventEmitter.cjs +31 -20
  151. package/dist/cjs/vendor/react-native/emitter/_EventSubscription.cjs +12 -10
  152. package/dist/cjs/vendor/react-native/emitter/_EventSubscriptionVendor.cjs +31 -17
  153. package/dist/cjs/vendor/react-native/infoLog/index.cjs +12 -10
  154. package/dist/cjs/vendor/react-native/useRefEffect.cjs +19 -11
  155. package/dist/cjs/vendor/react-native/vendor/emitter/EventEmitter.cjs +37 -22
  156. package/dist/cjs/without-animated.cjs +167 -150
  157. package/dist/esm/AccessibilityInfo/index.mjs +65 -55
  158. package/dist/esm/AccessibilityInfo/index.mjs.map +1 -1
  159. package/dist/esm/ActivityIndicator/__tests__/index-test.mjs +55 -36
  160. package/dist/esm/ActivityIndicator/__tests__/index-test.mjs.map +1 -1
  161. package/dist/esm/ActivityIndicator/index.mjs +82 -82
  162. package/dist/esm/ActivityIndicator/index.mjs.map +1 -1
  163. package/dist/esm/AppRegistry/AppContainer.mjs +22 -19
  164. package/dist/esm/AppRegistry/AppContainer.mjs.map +1 -1
  165. package/dist/esm/AppRegistry/__tests__/index-test.mjs +21 -9
  166. package/dist/esm/AppRegistry/__tests__/index-test.mjs.map +1 -1
  167. package/dist/esm/AppRegistry/__tests__/index-test.node.mjs +33 -28
  168. package/dist/esm/AppRegistry/__tests__/index-test.node.mjs.map +1 -1
  169. package/dist/esm/AppRegistry/index.mjs +23 -13
  170. package/dist/esm/AppRegistry/index.mjs.map +1 -1
  171. package/dist/esm/AppRegistry/renderApplication.mjs +27 -24
  172. package/dist/esm/AppRegistry/renderApplication.mjs.map +1 -1
  173. package/dist/esm/AppState/__tests__/index-test.mjs +4 -2
  174. package/dist/esm/AppState/__tests__/index-test.mjs.map +1 -1
  175. package/dist/esm/AppState/index.mjs +29 -15
  176. package/dist/esm/AppState/index.mjs.map +1 -1
  177. package/dist/esm/Appearance/index.mjs +26 -17
  178. package/dist/esm/Appearance/index.mjs.map +1 -1
  179. package/dist/esm/Clipboard/index.mjs +18 -7
  180. package/dist/esm/Clipboard/index.mjs.map +1 -1
  181. package/dist/esm/DeviceInfo/index.mjs +7 -1
  182. package/dist/esm/DeviceInfo/index.mjs.map +1 -1
  183. package/dist/esm/Dimensions/__tests__/index-test.mjs +20 -9
  184. package/dist/esm/Dimensions/__tests__/index-test.mjs.map +1 -1
  185. package/dist/esm/Dimensions/index.mjs +51 -23
  186. package/dist/esm/Dimensions/index.mjs.map +1 -1
  187. package/dist/esm/FlatList.mjs +107 -65
  188. package/dist/esm/FlatList.mjs.map +1 -1
  189. package/dist/esm/I18nManager/index.mjs +7 -3
  190. package/dist/esm/I18nManager/index.mjs.map +1 -1
  191. package/dist/esm/Image/index.mjs +178 -118
  192. package/dist/esm/Image/index.mjs.map +1 -1
  193. package/dist/esm/ImageBackground/__tests__/index-test.mjs +20 -18
  194. package/dist/esm/ImageBackground/__tests__/index-test.mjs.map +1 -1
  195. package/dist/esm/ImageBackground/index.mjs +32 -32
  196. package/dist/esm/ImageBackground/index.mjs.map +1 -1
  197. package/dist/esm/InteractionManager/TaskQueue.mjs +37 -15
  198. package/dist/esm/InteractionManager/TaskQueue.mjs.map +1 -1
  199. package/dist/esm/InteractionManager/index.mjs +87 -62
  200. package/dist/esm/InteractionManager/index.mjs.map +1 -1
  201. package/dist/esm/KeyboardAvoidingView/index.mjs +3 -1
  202. package/dist/esm/KeyboardAvoidingView/index.mjs.map +1 -1
  203. package/dist/esm/Linking/__tests__/index-test.mjs +22 -8
  204. package/dist/esm/Linking/__tests__/index-test.mjs.map +1 -1
  205. package/dist/esm/Linking/index.mjs +25 -13
  206. package/dist/esm/Linking/index.mjs.map +1 -1
  207. package/dist/esm/Modal/ModalAnimation.mjs +113 -88
  208. package/dist/esm/Modal/ModalAnimation.mjs.map +1 -1
  209. package/dist/esm/Modal/ModalContent.mjs +12 -4
  210. package/dist/esm/Modal/ModalContent.mjs.map +1 -1
  211. package/dist/esm/Modal/ModalPortal.mjs +17 -8
  212. package/dist/esm/Modal/ModalPortal.mjs.map +1 -1
  213. package/dist/esm/Pressable/index.mjs +97 -71
  214. package/dist/esm/Pressable/index.mjs.map +1 -1
  215. package/dist/esm/SafeAreaView/index.mjs +16 -11
  216. package/dist/esm/SafeAreaView/index.mjs.map +1 -1
  217. package/dist/esm/ScrollView/ScrollViewBase.mjs +83 -58
  218. package/dist/esm/ScrollView/ScrollViewBase.mjs.map +1 -1
  219. package/dist/esm/ScrollView/index.mjs +225 -144
  220. package/dist/esm/ScrollView/index.mjs.map +1 -1
  221. package/dist/esm/Share/index.mjs +13 -5
  222. package/dist/esm/Share/index.mjs.map +1 -1
  223. package/dist/esm/Text/index.mjs +143 -118
  224. package/dist/esm/Text/index.mjs.map +1 -1
  225. package/dist/esm/TextInput/index.mjs +224 -115
  226. package/dist/esm/TextInput/index.mjs.map +1 -1
  227. package/dist/esm/TouchableOpacity.mjs +62 -55
  228. package/dist/esm/TouchableOpacity.mjs.map +1 -1
  229. package/dist/esm/TouchableWithoutFeedback.mjs +46 -44
  230. package/dist/esm/TouchableWithoutFeedback.mjs.map +1 -1
  231. package/dist/esm/UnimplementedView.mjs +4 -1
  232. package/dist/esm/UnimplementedView.mjs.map +1 -1
  233. package/dist/esm/Vibration/index.mjs +11 -9
  234. package/dist/esm/Vibration/index.mjs.map +1 -1
  235. package/dist/esm/View/index.mjs +79 -60
  236. package/dist/esm/View/index.mjs.map +1 -1
  237. package/dist/esm/codegenNativeCommand.mjs +2 -1
  238. package/dist/esm/codegenNativeCommand.mjs.map +1 -1
  239. package/dist/esm/codegenNativeComponent.mjs +2 -1
  240. package/dist/esm/codegenNativeComponent.mjs.map +1 -1
  241. package/dist/esm/createElement/__tests__/index-test.mjs +150 -89
  242. package/dist/esm/createElement/__tests__/index-test.mjs.map +1 -1
  243. package/dist/esm/createElement/index.mjs +49 -41
  244. package/dist/esm/createElement/index.mjs.map +1 -1
  245. package/dist/esm/index.js +4 -4
  246. package/dist/esm/index.js.map +1 -1
  247. package/dist/esm/index.mjs +4 -4
  248. package/dist/esm/index.mjs.map +1 -1
  249. package/dist/esm/modules/requestIdleCallback.mjs +16 -16
  250. package/dist/esm/modules/requestIdleCallback.mjs.map +1 -1
  251. package/dist/esm/useColorScheme/index.mjs +3 -2
  252. package/dist/esm/useColorScheme/index.mjs.map +1 -1
  253. package/dist/esm/useWindowDimensions/index.mjs +9 -4
  254. package/dist/esm/useWindowDimensions/index.mjs.map +1 -1
  255. package/dist/esm/vendor/react-native/Animated/Animated.mjs +10 -10
  256. package/dist/esm/vendor/react-native/Animated/Animated.mjs.map +1 -1
  257. package/dist/esm/vendor/react-native/Animated/AnimatedEvent.mjs +81 -31
  258. package/dist/esm/vendor/react-native/Animated/AnimatedEvent.mjs.map +1 -1
  259. package/dist/esm/vendor/react-native/Animated/AnimatedImplementation.mjs +519 -442
  260. package/dist/esm/vendor/react-native/Animated/AnimatedImplementation.mjs.map +1 -1
  261. package/dist/esm/vendor/react-native/Animated/AnimatedMock.mjs +86 -81
  262. package/dist/esm/vendor/react-native/Animated/AnimatedMock.mjs.map +1 -1
  263. package/dist/esm/vendor/react-native/Animated/Easing.mjs +15 -5
  264. package/dist/esm/vendor/react-native/Animated/Easing.mjs.map +1 -1
  265. package/dist/esm/vendor/react-native/Animated/NativeAnimatedHelper.mjs +284 -198
  266. package/dist/esm/vendor/react-native/Animated/NativeAnimatedHelper.mjs.map +1 -1
  267. package/dist/esm/vendor/react-native/Animated/NativeAnimatedModule.mjs +34 -34
  268. package/dist/esm/vendor/react-native/Animated/NativeAnimatedModule.mjs.map +1 -1
  269. package/dist/esm/vendor/react-native/Animated/NativeAnimatedTurboModule.mjs +31 -31
  270. package/dist/esm/vendor/react-native/Animated/NativeAnimatedTurboModule.mjs.map +1 -1
  271. package/dist/esm/vendor/react-native/Animated/SpringConfig.mjs +10 -4
  272. package/dist/esm/vendor/react-native/Animated/SpringConfig.mjs.map +1 -1
  273. package/dist/esm/vendor/react-native/Animated/animations/Animation.mjs +10 -4
  274. package/dist/esm/vendor/react-native/Animated/animations/Animation.mjs.map +1 -1
  275. package/dist/esm/vendor/react-native/Animated/animations/DecayAnimation.mjs +31 -9
  276. package/dist/esm/vendor/react-native/Animated/animations/DecayAnimation.mjs.map +1 -1
  277. package/dist/esm/vendor/react-native/Animated/animations/SpringAnimation.mjs +100 -30
  278. package/dist/esm/vendor/react-native/Animated/animations/SpringAnimation.mjs.map +1 -1
  279. package/dist/esm/vendor/react-native/Animated/animations/TimingAnimation.mjs +62 -19
  280. package/dist/esm/vendor/react-native/Animated/animations/TimingAnimation.mjs.map +1 -1
  281. package/dist/esm/vendor/react-native/Animated/bezier.mjs +56 -17
  282. package/dist/esm/vendor/react-native/Animated/bezier.mjs.map +1 -1
  283. package/dist/esm/vendor/react-native/Animated/components/AnimatedFlatList.mjs +5 -5
  284. package/dist/esm/vendor/react-native/Animated/components/AnimatedFlatList.mjs.map +1 -1
  285. package/dist/esm/vendor/react-native/Animated/components/AnimatedImage.mjs +1 -1
  286. package/dist/esm/vendor/react-native/Animated/components/AnimatedImage.mjs.map +1 -1
  287. package/dist/esm/vendor/react-native/Animated/components/AnimatedScrollView.mjs +5 -5
  288. package/dist/esm/vendor/react-native/Animated/components/AnimatedScrollView.mjs.map +1 -1
  289. package/dist/esm/vendor/react-native/Animated/components/AnimatedSectionList.mjs +5 -5
  290. package/dist/esm/vendor/react-native/Animated/components/AnimatedSectionList.mjs.map +1 -1
  291. package/dist/esm/vendor/react-native/Animated/createAnimatedComponent.mjs +12 -11
  292. package/dist/esm/vendor/react-native/Animated/createAnimatedComponent.mjs.map +1 -1
  293. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedAddition.mjs +11 -4
  294. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedAddition.mjs.map +1 -1
  295. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedColor.mjs +132 -51
  296. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedColor.mjs.map +1 -1
  297. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedDiffClamp.mjs +14 -6
  298. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedDiffClamp.mjs.map +1 -1
  299. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedDivision.mjs +26 -8
  300. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedDivision.mjs.map +1 -1
  301. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedInterpolation.mjs +107 -34
  302. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedInterpolation.mjs.map +1 -1
  303. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedModulo.mjs +7 -3
  304. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedModulo.mjs.map +1 -1
  305. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedMultiplication.mjs +11 -4
  306. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedMultiplication.mjs.map +1 -1
  307. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedNode.mjs +56 -15
  308. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedNode.mjs.map +1 -1
  309. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedProps.mjs +56 -17
  310. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedProps.mjs.map +1 -1
  311. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedStyle.mjs +43 -13
  312. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedStyle.mjs.map +1 -1
  313. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedSubtraction.mjs +11 -4
  314. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedSubtraction.mjs.map +1 -1
  315. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedTracking.mjs +22 -7
  316. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedTracking.mjs.map +1 -1
  317. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedTransform.mjs +42 -19
  318. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedTransform.mjs.map +1 -1
  319. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedValue.mjs +92 -25
  320. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedValue.mjs.map +1 -1
  321. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedValueXY.mjs +38 -17
  322. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedValueXY.mjs.map +1 -1
  323. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedWithChildren.mjs +30 -6
  324. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedWithChildren.mjs.map +1 -1
  325. package/dist/esm/vendor/react-native/Animated/useAnimatedProps.mjs +45 -27
  326. package/dist/esm/vendor/react-native/Animated/useAnimatedProps.mjs.map +1 -1
  327. package/dist/esm/vendor/react-native/Batchinator/index.mjs +15 -5
  328. package/dist/esm/vendor/react-native/Batchinator/index.mjs.map +1 -1
  329. package/dist/esm/vendor/react-native/EventEmitter/NativeEventEmitter.mjs +14 -4
  330. package/dist/esm/vendor/react-native/EventEmitter/NativeEventEmitter.mjs.map +1 -1
  331. package/dist/esm/vendor/react-native/FeatureFlags.mjs +6 -6
  332. package/dist/esm/vendor/react-native/FillRateHelper/index.mjs +80 -32
  333. package/dist/esm/vendor/react-native/FillRateHelper/index.mjs.map +1 -1
  334. package/dist/esm/vendor/react-native/FlatList/index.mjs +133 -74
  335. package/dist/esm/vendor/react-native/FlatList/index.mjs.map +1 -1
  336. package/dist/esm/vendor/react-native/JSEventLoopWatchdog/index.mjs +27 -14
  337. package/dist/esm/vendor/react-native/JSEventLoopWatchdog/index.mjs.map +1 -1
  338. package/dist/esm/vendor/react-native/LayoutAnimation/index.mjs +61 -59
  339. package/dist/esm/vendor/react-native/LayoutAnimation/index.mjs.map +1 -1
  340. package/dist/esm/vendor/react-native/PanResponder/index.mjs +155 -94
  341. package/dist/esm/vendor/react-native/PanResponder/index.mjs.map +1 -1
  342. package/dist/esm/vendor/react-native/PooledClass/index.mjs +32 -20
  343. package/dist/esm/vendor/react-native/PooledClass/index.mjs.map +1 -1
  344. package/dist/esm/vendor/react-native/ReactNative/ReactNativeFeatureFlags.mjs +5 -5
  345. package/dist/esm/vendor/react-native/SectionList/index.mjs +36 -14
  346. package/dist/esm/vendor/react-native/SectionList/index.mjs.map +1 -1
  347. package/dist/esm/vendor/react-native/StaticContainer/index.mjs +1 -1
  348. package/dist/esm/vendor/react-native/StaticContainer/index.mjs.map +1 -1
  349. package/dist/esm/vendor/react-native/TouchHistoryMath/index.mjs +36 -19
  350. package/dist/esm/vendor/react-native/TouchHistoryMath/index.mjs.map +1 -1
  351. package/dist/esm/vendor/react-native/TurboModule/RCTExport.mjs +5 -5
  352. package/dist/esm/vendor/react-native/TurboModule/RCTExport.mjs.map +1 -1
  353. package/dist/esm/vendor/react-native/TurboModule/TurboModuleRegistry.mjs +2 -1
  354. package/dist/esm/vendor/react-native/TurboModule/TurboModuleRegistry.mjs.map +1 -1
  355. package/dist/esm/vendor/react-native/Types/CoreEventTypes.mjs +115 -115
  356. package/dist/esm/vendor/react-native/Types/CoreEventTypes.mjs.map +1 -1
  357. package/dist/esm/vendor/react-native/Utilities/clamp.mjs +7 -1
  358. package/dist/esm/vendor/react-native/Utilities/clamp.mjs.map +1 -1
  359. package/dist/esm/vendor/react-native/Utilities/setAndForwardRef.mjs +7 -2
  360. package/dist/esm/vendor/react-native/Utilities/setAndForwardRef.mjs.map +1 -1
  361. package/dist/esm/vendor/react-native/Utilities/useMergeRefs.mjs +9 -1
  362. package/dist/esm/vendor/react-native/Utilities/useMergeRefs.mjs.map +1 -1
  363. package/dist/esm/vendor/react-native/Utilities/useRefEffect.mjs +7 -1
  364. package/dist/esm/vendor/react-native/Utilities/useRefEffect.mjs.map +1 -1
  365. package/dist/esm/vendor/react-native/ViewabilityHelper/index.mjs +80 -41
  366. package/dist/esm/vendor/react-native/ViewabilityHelper/index.mjs.map +1 -1
  367. package/dist/esm/vendor/react-native/ViewabilityHelper.mjs +79 -40
  368. package/dist/esm/vendor/react-native/ViewabilityHelper.mjs.map +1 -1
  369. package/dist/esm/vendor/react-native/VirtualizeUtils/index.mjs +84 -48
  370. package/dist/esm/vendor/react-native/VirtualizeUtils/index.mjs.map +1 -1
  371. package/dist/esm/vendor/react-native/VirtualizedList/CellRenderMask.mjs +63 -34
  372. package/dist/esm/vendor/react-native/VirtualizedList/CellRenderMask.mjs.map +1 -1
  373. package/dist/esm/vendor/react-native/VirtualizedList/ChildListCollection.mjs +24 -7
  374. package/dist/esm/vendor/react-native/VirtualizedList/ChildListCollection.mjs.map +1 -1
  375. package/dist/esm/vendor/react-native/VirtualizedList/StateSafePureComponent.mjs +25 -17
  376. package/dist/esm/vendor/react-native/VirtualizedList/StateSafePureComponent.mjs.map +1 -1
  377. package/dist/esm/vendor/react-native/VirtualizedList/VirtualizedListCellRenderer.mjs +58 -51
  378. package/dist/esm/vendor/react-native/VirtualizedList/VirtualizedListCellRenderer.mjs.map +1 -1
  379. package/dist/esm/vendor/react-native/VirtualizedList/VirtualizedListContext.mjs +9 -7
  380. package/dist/esm/vendor/react-native/VirtualizedList/VirtualizedListContext.mjs.map +1 -1
  381. package/dist/esm/vendor/react-native/VirtualizedList/VirtualizedListProps.mjs +7 -7
  382. package/dist/esm/vendor/react-native/VirtualizedList/index.mjs +124 -80
  383. package/dist/esm/vendor/react-native/VirtualizedList/index.mjs.map +1 -1
  384. package/dist/esm/vendor/react-native/VirtualizedSectionList/index.mjs +66 -33
  385. package/dist/esm/vendor/react-native/VirtualizedSectionList/index.mjs.map +1 -1
  386. package/dist/esm/vendor/react-native/deepDiffer/index.mjs +37 -9
  387. package/dist/esm/vendor/react-native/deepDiffer/index.mjs.map +1 -1
  388. package/dist/esm/vendor/react-native/emitter/_EmitterSubscription.mjs +4 -1
  389. package/dist/esm/vendor/react-native/emitter/_EmitterSubscription.mjs.map +1 -1
  390. package/dist/esm/vendor/react-native/emitter/_EventEmitter.mjs +16 -7
  391. package/dist/esm/vendor/react-native/emitter/_EventEmitter.mjs.map +1 -1
  392. package/dist/esm/vendor/react-native/emitter/_EventSubscriptionVendor.mjs +19 -7
  393. package/dist/esm/vendor/react-native/emitter/_EventSubscriptionVendor.mjs.map +1 -1
  394. package/dist/esm/vendor/react-native/useRefEffect.mjs +7 -1
  395. package/dist/esm/vendor/react-native/useRefEffect.mjs.map +1 -1
  396. package/dist/esm/vendor/react-native/vendor/emitter/EventEmitter.mjs +25 -12
  397. package/dist/esm/vendor/react-native/vendor/emitter/EventEmitter.mjs.map +1 -1
  398. package/dist/esm/without-animated.mjs +86 -71
  399. package/dist/esm/without-animated.mjs.map +1 -1
  400. package/package.json +7 -7
  401. package/src/vendor/react-native/Animated/AnimatedImplementation.js +7 -7
@@ -2,54 +2,56 @@ var __create = Object.create;
2
2
  var __defProp = Object.defineProperty;
3
3
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
4
  var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __getProtoOf = Object.getPrototypeOf,
6
- __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __getProtoOf = Object.getPrototypeOf;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
7
  var __export = (target, all) => {
8
- for (var name in all) __defProp(target, name, {
9
- get: all[name],
10
- enumerable: !0
11
- });
12
- },
13
- __copyProps = (to, from, except, desc) => {
14
- if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
8
+ for (var name in all) __defProp(target, name, {
9
+ get: all[name],
10
+ enumerable: true
11
+ });
12
+ };
13
+ var __copyProps = (to, from, except, desc) => {
14
+ if (from && typeof from === "object" || typeof from === "function") {
15
+ for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
15
16
  get: () => from[key],
16
17
  enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
17
18
  });
18
- return to;
19
- };
19
+ }
20
+ return to;
21
+ };
20
22
  var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
- // If the importer is in node compatibility mode or this is not an ESM
22
- // file that has been converted to a CommonJS file using a Babel-
23
- // compatible transform (i.e. "__esModule" has not been set), then set
24
- // "default" to the CommonJS "module.exports" for node compatibility.
25
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
26
- value: mod,
27
- enumerable: !0
28
- }) : target, mod)),
29
- __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
30
- value: !0
31
- }), mod);
23
+ // If the importer is in node compatibility mode or this is not an ESM
24
+ // file that has been converted to a CommonJS file using a Babel-
25
+ // compatible transform (i.e. "__esModule" has not been set), then set
26
+ // "default" to the CommonJS "module.exports" for node compatibility.
27
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
28
+ value: mod,
29
+ enumerable: true
30
+ }) : target, mod));
31
+ var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
32
+ value: true
33
+ }), mod);
32
34
  var ScrollView_exports = {};
33
35
  __export(ScrollView_exports, {
34
36
  ScrollView: () => ForwardedScrollView,
35
37
  default: () => ScrollView_default
36
38
  });
37
39
  module.exports = __toCommonJS(ScrollView_exports);
38
- var import_react = __toESM(require("react"), 1),
39
- import_react_native_web_internals = require("@hanzogui/react-native-web-internals"),
40
- import_Dimensions = require("../Dimensions/index.cjs"),
41
- import_View = require("../View/index.cjs"),
42
- import_ScrollViewBase = require("./ScrollViewBase.cjs"),
43
- import_jsx_runtime = require("react/jsx-runtime");
44
- const emptyObject = {},
45
- IS_ANIMATING_TOUCH_START_THRESHOLD_MS = 16;
40
+ var import_react = __toESM(require("react"), 1);
41
+ var import_react_native_web_internals = require("@hanzogui/react-native-web-internals");
42
+ var import_Dimensions = require("../Dimensions/index.cjs");
43
+ var import_View = require("../View/index.cjs");
44
+ var import_ScrollViewBase = require("./ScrollViewBase.cjs");
45
+ var import_jsx_runtime = require("react/jsx-runtime");
46
+ const emptyObject = {};
47
+ const IS_ANIMATING_TOUCH_START_THRESHOLD_MS = 16;
46
48
  class ScrollView extends import_react.default.Component {
47
49
  _scrollNodeRef;
48
50
  _innerViewRef;
49
51
  keyboardWillOpenTo = null;
50
52
  additionalScrollOffset = 0;
51
- preventNegativeScrollOffset = !1;
52
- isTouching = !1;
53
+ preventNegativeScrollOffset = false;
54
+ isTouching = false;
53
55
  lastMomentumScrollBeginTime = 0;
54
56
  lastMomentumScrollEndTime = 0;
55
57
  // Reset to false every time becomes responder. This is used to:
@@ -57,8 +59,8 @@ class ScrollView extends import_react.default.Component {
57
59
  // refuse to give up its responder lock.
58
60
  // - Determine if releasing should dismiss the keyboard when we are in
59
61
  // tap-to-dismiss mode (!this.props.keyboardShouldPersistTaps).
60
- observedScrollSinceBecomingResponder = !1;
61
- becameResponderWhileAnimating = !1;
62
+ observedScrollSinceBecomingResponder = false;
63
+ becameResponderWhileAnimating = false;
62
64
  /**
63
65
  * Returns a reference to the underlying scroll responder, which supports
64
66
  * operations like `scrollTo`. All ScrollView-like components should
@@ -94,14 +96,20 @@ class ScrollView extends import_react.default.Component {
94
96
  * This is deprecated due to ambiguity (y before x), and SHOULD NOT BE USED.
95
97
  */
96
98
  scrollTo = (y, x, animated) => {
97
- typeof y == "number" ? console.warn("`scrollTo(y, x, animated)` is deprecated. Use `scrollTo({x: 5, y: 5, animated: true})` instead.") : {
98
- x,
99
- y,
100
- animated
101
- } = y || emptyObject, this.scrollResponderScrollTo({
99
+ if (typeof y === "number") {
100
+ console.warn("`scrollTo(y, x, animated)` is deprecated. Use `scrollTo({x: 5, y: 5, animated: true})` instead.");
101
+ } else {
102
+ ;
103
+ ({
104
+ x,
105
+ y,
106
+ animated
107
+ } = y || emptyObject);
108
+ }
109
+ this.scrollResponderScrollTo({
102
110
  x: x || 0,
103
111
  y: y || 0,
104
- animated: animated !== !1
112
+ animated: animated !== false
105
113
  });
106
114
  };
107
115
  /**
@@ -113,13 +121,13 @@ class ScrollView extends import_react.default.Component {
113
121
  * If no options are passed, `animated` defaults to true.
114
122
  */
115
123
  scrollToEnd = options => {
116
- const animated = (options && options.animated) !== !1,
117
- {
118
- horizontal
119
- } = this.props,
120
- scrollResponderNode = this.getScrollableNode(),
121
- x = horizontal ? scrollResponderNode.scrollWidth : 0,
122
- y = horizontal ? 0 : scrollResponderNode.scrollHeight;
124
+ const animated = (options && options.animated) !== false;
125
+ const {
126
+ horizontal
127
+ } = this.props;
128
+ const scrollResponderNode = this.getScrollableNode();
129
+ const x = horizontal ? scrollResponderNode.scrollWidth : 0;
130
+ const y = horizontal ? 0 : scrollResponderNode.scrollHeight;
123
131
  this.scrollResponderScrollTo({
124
132
  x,
125
133
  y,
@@ -174,61 +182,70 @@ class ScrollView extends import_react.default.Component {
174
182
  ...other
175
183
  } = this.props;
176
184
  if (process.env.NODE_ENV !== "production" && this.props.style) {
177
- const style = import_react_native_web_internals.StyleSheet.flatten(this.props.style),
178
- childLayoutProps = ["alignItems", "justifyContent"].filter(prop => style && style[prop] !== void 0);
185
+ const style = import_react_native_web_internals.StyleSheet.flatten(this.props.style);
186
+ const childLayoutProps = ["alignItems", "justifyContent"].filter(prop => style && style[prop] !== void 0);
179
187
  (0, import_react_native_web_internals.invariant)(childLayoutProps.length === 0, `ScrollView child layout (${JSON.stringify(childLayoutProps)}) must be applied through the contentContainerStyle prop.`);
180
188
  }
181
189
  let contentSizeChangeProps = {};
182
- onContentSizeChange && (contentSizeChangeProps = {
183
- onLayout: this._handleContentOnLayout.bind(this)
184
- });
185
- const hasStickyHeaderIndices = !horizontal && Array.isArray(stickyHeaderIndices),
186
- children = hasStickyHeaderIndices || pagingEnabled ? import_react.default.Children.map(this.props.children, (child, i) => {
187
- const isSticky = hasStickyHeaderIndices && stickyHeaderIndices.indexOf(i) > -1;
188
- return child != null && (isSticky || pagingEnabled) ? /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_View.View, {
190
+ if (onContentSizeChange) {
191
+ contentSizeChangeProps = {
192
+ onLayout: this._handleContentOnLayout.bind(this)
193
+ };
194
+ }
195
+ const hasStickyHeaderIndices = !horizontal && Array.isArray(stickyHeaderIndices);
196
+ const children = hasStickyHeaderIndices || pagingEnabled ? import_react.default.Children.map(this.props.children, (child, i) => {
197
+ const isSticky = hasStickyHeaderIndices && stickyHeaderIndices.indexOf(i) > -1;
198
+ if (child != null && (isSticky || pagingEnabled)) {
199
+ return /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_View.View, {
189
200
  style: import_react_native_web_internals.StyleSheet.compose(isSticky && styles.stickyHeader, pagingEnabled && styles.pagingEnabledChild),
190
201
  children: child
191
- }) : child;
192
- }) : this.props.children,
193
- contentContainer = /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_View.View, {
194
- ...contentSizeChangeProps,
195
- collapsable: !1,
196
- ref: this._setInnerViewRef.bind(this),
197
- style: [horizontal && styles.contentContainerHorizontal, centerContent && styles.contentContainerCenterContent, contentContainerStyle],
198
- children
199
- }),
200
- baseStyle = horizontal ? styles.baseHorizontal : styles.baseVertical,
201
- pagingEnabledStyle = horizontal ? styles.pagingEnabledHorizontal : styles.pagingEnabledVertical,
202
- props = {
203
- ...other,
204
- style: [baseStyle, pagingEnabled && pagingEnabledStyle, this.props.style],
205
- onTouchStart: this.scrollResponderHandleTouchStart.bind(this),
206
- onTouchMove: this.scrollResponderHandleTouchMove.bind(this),
207
- onTouchEnd: this.scrollResponderHandleTouchEnd.bind(this),
208
- onScrollBeginDrag: this.scrollResponderHandleScrollBeginDrag.bind(this),
209
- onScrollEndDrag: this.scrollResponderHandleScrollEndDrag.bind(this),
210
- onMomentumScrollBegin: this.scrollResponderHandleMomentumScrollBegin.bind(this),
211
- onMomentumScrollEnd: this.scrollResponderHandleMomentumScrollEnd.bind(this),
212
- onStartShouldSetResponder: this.scrollResponderHandleStartShouldSetResponder.bind(this),
213
- onStartShouldSetResponderCapture: this.scrollResponderHandleStartShouldSetResponderCapture.bind(this),
214
- onScrollShouldSetResponder: this.scrollResponderHandleScrollShouldSetResponder.bind(this),
215
- onScroll: this._handleScroll.bind(this),
216
- onResponderGrant: this.scrollResponderHandleResponderGrant.bind(this),
217
- onResponderTerminationRequest: this.scrollResponderHandleTerminationRequest.bind(this),
218
- onResponderRelease: this.scrollResponderHandleResponderRelease.bind(this),
219
- onResponderReject: this.scrollResponderHandleResponderReject.bind(this),
220
- onResponderTerminate: this.scrollResponderHandleTerminate.bind(this)
221
- },
222
- ScrollViewClass = import_ScrollViewBase.ScrollViewBase;
202
+ });
203
+ } else {
204
+ return child;
205
+ }
206
+ }) : this.props.children;
207
+ const contentContainer = /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_View.View, {
208
+ ...contentSizeChangeProps,
209
+ collapsable: false,
210
+ ref: this._setInnerViewRef.bind(this),
211
+ style: [horizontal && styles.contentContainerHorizontal, centerContent && styles.contentContainerCenterContent, contentContainerStyle],
212
+ children
213
+ });
214
+ const baseStyle = horizontal ? styles.baseHorizontal : styles.baseVertical;
215
+ const pagingEnabledStyle = horizontal ? styles.pagingEnabledHorizontal : styles.pagingEnabledVertical;
216
+ const props = {
217
+ ...other,
218
+ style: [baseStyle, pagingEnabled && pagingEnabledStyle, this.props.style],
219
+ onTouchStart: this.scrollResponderHandleTouchStart.bind(this),
220
+ onTouchMove: this.scrollResponderHandleTouchMove.bind(this),
221
+ onTouchEnd: this.scrollResponderHandleTouchEnd.bind(this),
222
+ onScrollBeginDrag: this.scrollResponderHandleScrollBeginDrag.bind(this),
223
+ onScrollEndDrag: this.scrollResponderHandleScrollEndDrag.bind(this),
224
+ onMomentumScrollBegin: this.scrollResponderHandleMomentumScrollBegin.bind(this),
225
+ onMomentumScrollEnd: this.scrollResponderHandleMomentumScrollEnd.bind(this),
226
+ onStartShouldSetResponder: this.scrollResponderHandleStartShouldSetResponder.bind(this),
227
+ onStartShouldSetResponderCapture: this.scrollResponderHandleStartShouldSetResponderCapture.bind(this),
228
+ onScrollShouldSetResponder: this.scrollResponderHandleScrollShouldSetResponder.bind(this),
229
+ onScroll: this._handleScroll.bind(this),
230
+ onResponderGrant: this.scrollResponderHandleResponderGrant.bind(this),
231
+ onResponderTerminationRequest: this.scrollResponderHandleTerminationRequest.bind(this),
232
+ onResponderRelease: this.scrollResponderHandleResponderRelease.bind(this),
233
+ onResponderReject: this.scrollResponderHandleResponderReject.bind(this),
234
+ onResponderTerminate: this.scrollResponderHandleTerminate.bind(this)
235
+ };
236
+ const ScrollViewClass = import_ScrollViewBase.ScrollViewBase;
223
237
  (0, import_react_native_web_internals.invariant)(ScrollViewClass !== void 0, "ScrollViewClass must not be undefined");
224
238
  const scrollView = /* @__PURE__ */(0, import_jsx_runtime.jsx)(ScrollViewClass, {
225
239
  ...props,
226
240
  ref: this._setScrollNodeRef.bind(this),
227
241
  children: contentContainer
228
242
  });
229
- return refreshControl ? import_react.default.cloneElement(refreshControl, {
230
- style: props.style
231
- }, scrollView) : scrollView;
243
+ if (refreshControl) {
244
+ return import_react.default.cloneElement(refreshControl, {
245
+ style: props.style
246
+ }, scrollView);
247
+ }
248
+ return scrollView;
232
249
  }
233
250
  _handleContentOnLayout(e) {
234
251
  const {
@@ -238,13 +255,35 @@ class ScrollView extends import_react.default.Component {
238
255
  this.props.onContentSizeChange?.(width, height);
239
256
  }
240
257
  _handleScroll(e) {
241
- 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" && (0, import_react_native_web_internals.dismissKeyboard)(), this.scrollResponderHandleScroll(e);
258
+ if (process.env.NODE_ENV !== "production") {
259
+ if (this.props.onScroll && this.props.scrollEventThrottle == null) {
260
+ 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.");
261
+ }
262
+ }
263
+ if (this.props.keyboardDismissMode === "on-drag") {
264
+ (0, import_react_native_web_internals.dismissKeyboard)();
265
+ }
266
+ this.scrollResponderHandleScroll(e);
242
267
  }
243
268
  _setInnerViewRef(node) {
244
269
  this._innerViewRef = node;
245
270
  }
246
271
  _setScrollNodeRef(node) {
247
- 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.flashScrollIndicators = this.flashScrollIndicators, node.scrollResponderZoomTo = this.scrollResponderZoomTo, node.scrollResponderScrollNativeHandleToKeyboard = this.scrollResponderScrollNativeHandleToKeyboard), (0, import_react_native_web_internals.mergeRefs)(this.props.forwardedRef)(node);
272
+ this._scrollNodeRef = node;
273
+ if (node != null) {
274
+ node.getScrollResponder = this.getScrollResponder;
275
+ node.getInnerViewNode = this.getInnerViewNode;
276
+ node.getInnerViewRef = this.getInnerViewRef;
277
+ node.getNativeScrollRef = this.getNativeScrollRef;
278
+ node.getScrollableNode = this.getScrollableNode;
279
+ node.scrollTo = this.scrollTo;
280
+ node.scrollToEnd = this.scrollToEnd;
281
+ node.flashScrollIndicators = this.flashScrollIndicators;
282
+ node.scrollResponderZoomTo = this.scrollResponderZoomTo;
283
+ node.scrollResponderScrollNativeHandleToKeyboard = this.scrollResponderScrollNativeHandleToKeyboard;
284
+ }
285
+ const ref = (0, import_react_native_web_internals.mergeRefs)(this.props.forwardedRef);
286
+ ref(node);
248
287
  }
249
288
  /**
250
289
  * Invoke this from an `onScroll` event.
@@ -278,7 +317,7 @@ class ScrollView extends import_react.default.Component {
278
317
  *
279
318
  */
280
319
  scrollResponderHandleStartShouldSetResponder() {
281
- return !1;
320
+ return false;
282
321
  }
283
322
  /**
284
323
  * There are times when the scroll view wants to become the responder
@@ -305,7 +344,7 @@ class ScrollView extends import_react.default.Component {
305
344
  * a touch has already started.
306
345
  */
307
346
  scrollResponderHandleResponderReject() {
308
- (0, import_react_native_web_internals.warning)(!1, "ScrollView doesn't take rejection well - scrolls anyway");
347
+ (0, import_react_native_web_internals.warning)(false, "ScrollView doesn't take rejection well - scrolls anyway");
309
348
  }
310
349
  /**
311
350
  * We will allow the scroll view to give up its lock iff it acquired the lock
@@ -332,7 +371,8 @@ class ScrollView extends import_react.default.Component {
332
371
  */
333
372
  scrollResponderHandleTouchEnd(e) {
334
373
  const nativeEvent = e.nativeEvent;
335
- this.isTouching = nativeEvent.touches.length !== 0, this.props.onTouchEnd && this.props.onTouchEnd(e);
374
+ this.isTouching = nativeEvent.touches.length !== 0;
375
+ this.props.onTouchEnd && this.props.onTouchEnd(e);
336
376
  }
337
377
  /**
338
378
  * Invoke this from an `onResponderRelease` event.
@@ -340,16 +380,22 @@ class ScrollView extends import_react.default.Component {
340
380
  scrollResponderHandleResponderRelease(e) {
341
381
  this.props.onResponderRelease && this.props.onResponderRelease(e);
342
382
  const currentlyFocusedTextInput = import_react_native_web_internals.TextInputState.currentlyFocusedField();
343
- !this.props.keyboardShouldPersistTaps && currentlyFocusedTextInput != null && e.target !== currentlyFocusedTextInput && !this.observedScrollSinceBecomingResponder && !this.becameResponderWhileAnimating && (this.props.onScrollResponderKeyboardDismissed && this.props.onScrollResponderKeyboardDismissed(e), import_react_native_web_internals.TextInputState.blurTextInput(currentlyFocusedTextInput));
383
+ if (!this.props.keyboardShouldPersistTaps && currentlyFocusedTextInput != null && e.target !== currentlyFocusedTextInput && !this.observedScrollSinceBecomingResponder && !this.becameResponderWhileAnimating) {
384
+ this.props.onScrollResponderKeyboardDismissed && this.props.onScrollResponderKeyboardDismissed(e);
385
+ import_react_native_web_internals.TextInputState.blurTextInput(currentlyFocusedTextInput);
386
+ }
344
387
  }
345
388
  scrollResponderHandleScroll(e) {
346
- this.observedScrollSinceBecomingResponder = !0, this.props.onScroll && this.props.onScroll(e);
389
+ this.observedScrollSinceBecomingResponder = true;
390
+ this.props.onScroll && this.props.onScroll(e);
347
391
  }
348
392
  /**
349
393
  * Invoke this from an `onResponderGrant` event.
350
394
  */
351
395
  scrollResponderHandleResponderGrant(e) {
352
- this.observedScrollSinceBecomingResponder = !1, this.props.onResponderGrant && this.props.onResponderGrant(e), this.becameResponderWhileAnimating = this.scrollResponderIsAnimating();
396
+ this.observedScrollSinceBecomingResponder = false;
397
+ this.props.onResponderGrant && this.props.onResponderGrant(e);
398
+ this.becameResponderWhileAnimating = this.scrollResponderIsAnimating();
353
399
  }
354
400
  /**
355
401
  * Unfortunately, `onScrollBeginDrag` also fires when *stopping* the scroll
@@ -371,13 +417,15 @@ class ScrollView extends import_react.default.Component {
371
417
  * Invoke this from an `onMomentumScrollBegin` event.
372
418
  */
373
419
  scrollResponderHandleMomentumScrollBegin(e) {
374
- this.lastMomentumScrollBeginTime = Date.now(), this.props.onMomentumScrollBegin && this.props.onMomentumScrollBegin(e);
420
+ this.lastMomentumScrollBeginTime = Date.now();
421
+ this.props.onMomentumScrollBegin && this.props.onMomentumScrollBegin(e);
375
422
  }
376
423
  /**
377
424
  * Invoke this from an `onMomentumScrollEnd` event.
378
425
  */
379
426
  scrollResponderHandleMomentumScrollEnd(e) {
380
- this.lastMomentumScrollEndTime = Date.now(), this.props.onMomentumScrollEnd && this.props.onMomentumScrollEnd(e);
427
+ this.lastMomentumScrollEndTime = Date.now();
428
+ this.props.onMomentumScrollEnd && this.props.onMomentumScrollEnd(e);
381
429
  }
382
430
  /**
383
431
  * Invoke this from an `onTouchStart` event.
@@ -391,7 +439,8 @@ class ScrollView extends import_react.default.Component {
391
439
  * @param {SyntheticEvent} e Touch Start event.
392
440
  */
393
441
  scrollResponderHandleTouchStart(e) {
394
- this.isTouching = !0, this.props.onTouchStart && this.props.onTouchStart(e);
442
+ this.isTouching = true;
443
+ this.props.onTouchStart && this.props.onTouchStart(e);
395
444
  }
396
445
  /**
397
446
  * Invoke this from an `onTouchMove` event.
@@ -416,7 +465,10 @@ class ScrollView extends import_react.default.Component {
416
465
  * a touch has just started or ended.
417
466
  */
418
467
  scrollResponderIsAnimating() {
419
- return Date.now() - this.lastMomentumScrollEndTime < IS_ANIMATING_TOUCH_START_THRESHOLD_MS || this.lastMomentumScrollEndTime < this.lastMomentumScrollBeginTime;
468
+ const now = Date.now();
469
+ const timeSinceLastMomentumScrollEnd = now - this.lastMomentumScrollEndTime;
470
+ const isAnimating = timeSinceLastMomentumScrollEnd < IS_ANIMATING_TOUCH_START_THRESHOLD_MS || this.lastMomentumScrollEndTime < this.lastMomentumScrollBeginTime;
471
+ return isAnimating;
420
472
  }
421
473
  /**
422
474
  * A helper function to scroll to a specific point in the scrollview.
@@ -430,19 +482,31 @@ class ScrollView extends import_react.default.Component {
430
482
  * This is deprecated due to ambiguity (y before x), and SHOULD NOT BE USED.
431
483
  */
432
484
  scrollResponderScrollTo = (x, y, animated) => {
433
- typeof x == "number" ? console.warn("`scrollResponderScrollTo(x, y, animated)` is deprecated. Use `scrollResponderScrollTo({x: 5, y: 5, animated: true})` instead.") : {
434
- x,
435
- y,
436
- animated
437
- } = x || emptyObject;
438
- const node = this.getScrollableNode(),
439
- left = x || 0,
440
- top = y || 0;
441
- node != null && (typeof node.scroll == "function" ? node.scroll({
442
- top,
443
- left,
444
- behavior: animated ? "smooth" : "auto"
445
- }) : (node.scrollLeft = left, node.scrollTop = top));
485
+ if (typeof x === "number") {
486
+ console.warn("`scrollResponderScrollTo(x, y, animated)` is deprecated. Use `scrollResponderScrollTo({x: 5, y: 5, animated: true})` instead.");
487
+ } else {
488
+ ;
489
+ ({
490
+ x,
491
+ y,
492
+ animated
493
+ } = x || emptyObject);
494
+ }
495
+ const node = this.getScrollableNode();
496
+ const left = x || 0;
497
+ const top = y || 0;
498
+ if (node != null) {
499
+ if (typeof node.scroll === "function") {
500
+ node.scroll({
501
+ top,
502
+ left,
503
+ behavior: !animated ? "auto" : "smooth"
504
+ });
505
+ } else {
506
+ node.scrollLeft = left;
507
+ node.scrollTop = top;
508
+ }
509
+ }
446
510
  };
447
511
  /**
448
512
  * A helper function to zoom to a specific rect in the scrollview. The argument has the shape
@@ -451,7 +515,9 @@ class ScrollView extends import_react.default.Component {
451
515
  * @platform ios
452
516
  */
453
517
  scrollResponderZoomTo = (rect, animated) => {
454
- import_react_native_web_internals.Platform.OS !== "ios" && (0, import_react_native_web_internals.invariant)("zoomToRect is not implemented");
518
+ if (import_react_native_web_internals.Platform.OS !== "ios") {
519
+ (0, import_react_native_web_internals.invariant)("zoomToRect is not implemented");
520
+ }
455
521
  };
456
522
  /**
457
523
  * Displays the scroll indicators momentarily.
@@ -468,7 +534,9 @@ class ScrollView extends import_react.default.Component {
468
534
  * down to make it meet the keyboard's top. Default is false.
469
535
  */
470
536
  scrollResponderScrollNativeHandleToKeyboard = (nodeHandle, additionalOffset, preventNegativeScrollOffset) => {
471
- this.additionalScrollOffset = additionalOffset || 0, this.preventNegativeScrollOffset = !!preventNegativeScrollOffset, import_react_native_web_internals.UIManager.measureLayout(nodeHandle, this.getInnerViewNode(), this.scrollResponderTextInputFocusError, this.scrollResponderInputMeasureAndScrollToKeyboard);
537
+ this.additionalScrollOffset = additionalOffset || 0;
538
+ this.preventNegativeScrollOffset = !!preventNegativeScrollOffset;
539
+ import_react_native_web_internals.UIManager.measureLayout(nodeHandle, this.getInnerViewNode(), this.scrollResponderTextInputFocusError, this.scrollResponderInputMeasureAndScrollToKeyboard);
472
540
  };
473
541
  /**
474
542
  * The calculations performed here assume the scroll view takes up the entire
@@ -482,13 +550,20 @@ class ScrollView extends import_react.default.Component {
482
550
  */
483
551
  scrollResponderInputMeasureAndScrollToKeyboard = (left, top, width, height) => {
484
552
  let keyboardScreenY = import_Dimensions.Dimensions.get("window").height;
485
- this.keyboardWillOpenTo && (keyboardScreenY = this.keyboardWillOpenTo.endCoordinates.screenY);
553
+ if (this.keyboardWillOpenTo) {
554
+ keyboardScreenY = this.keyboardWillOpenTo.endCoordinates.screenY;
555
+ }
486
556
  let scrollOffsetY = top - keyboardScreenY + height + this.additionalScrollOffset;
487
- this.preventNegativeScrollOffset && (scrollOffsetY = Math.max(0, scrollOffsetY)), this.scrollResponderScrollTo({
557
+ if (this.preventNegativeScrollOffset) {
558
+ scrollOffsetY = Math.max(0, scrollOffsetY);
559
+ }
560
+ this.scrollResponderScrollTo({
488
561
  x: 0,
489
562
  y: scrollOffsetY,
490
- animated: !0
491
- }), this.additionalScrollOffset = 0, this.preventNegativeScrollOffset = !1;
563
+ animated: true
564
+ });
565
+ this.additionalScrollOffset = 0;
566
+ this.preventNegativeScrollOffset = false;
492
567
  };
493
568
  scrollResponderTextInputFocusError(e) {
494
569
  console.error("Error measuring text field: ", e);
@@ -522,68 +597,76 @@ class ScrollView extends import_react.default.Component {
522
597
  * you had explicitly focused a node etc).
523
598
  */
524
599
  scrollResponderKeyboardWillShow = e => {
525
- this.keyboardWillOpenTo = e, this.props.onKeyboardWillShow && this.props.onKeyboardWillShow(e);
600
+ this.keyboardWillOpenTo = e;
601
+ this.props.onKeyboardWillShow && this.props.onKeyboardWillShow(e);
526
602
  };
527
603
  scrollResponderKeyboardWillHide = e => {
528
- this.keyboardWillOpenTo = null, this.props.onKeyboardWillHide && this.props.onKeyboardWillHide(e);
604
+ this.keyboardWillOpenTo = null;
605
+ this.props.onKeyboardWillHide && this.props.onKeyboardWillHide(e);
529
606
  };
530
607
  scrollResponderKeyboardDidShow = e => {
531
- e && (this.keyboardWillOpenTo = e), this.props.onKeyboardDidShow && this.props.onKeyboardDidShow(e);
608
+ if (e) {
609
+ this.keyboardWillOpenTo = e;
610
+ }
611
+ this.props.onKeyboardDidShow && this.props.onKeyboardDidShow(e);
532
612
  };
533
613
  scrollResponderKeyboardDidHide = e => {
534
- this.keyboardWillOpenTo = null, this.props.onKeyboardDidHide && this.props.onKeyboardDidHide(e);
614
+ this.keyboardWillOpenTo = null;
615
+ this.props.onKeyboardDidHide && this.props.onKeyboardDidHide(e);
535
616
  };
536
617
  }
537
618
  const commonStyle = {
538
- flexGrow: 1,
539
- flexShrink: 1,
540
- // Enable hardware compositing in modern browsers.
541
- // Creates a new layer with its own backing surface that can significantly
542
- // improve scroll performance.
543
- transform: [{
544
- translateZ: 0
545
- }],
546
- // iOS native scrolling
547
- WebkitOverflowScrolling: "touch"
619
+ flexGrow: 1,
620
+ flexShrink: 1,
621
+ // Enable hardware compositing in modern browsers.
622
+ // Creates a new layer with its own backing surface that can significantly
623
+ // improve scroll performance.
624
+ transform: [{
625
+ translateZ: 0
626
+ }],
627
+ // iOS native scrolling
628
+ WebkitOverflowScrolling: "touch"
629
+ };
630
+ const styles = {
631
+ baseVertical: {
632
+ ...commonStyle,
633
+ flexDirection: "column",
634
+ overflowX: "hidden",
635
+ overflowY: "auto"
548
636
  },
549
- styles = {
550
- baseVertical: {
551
- ...commonStyle,
552
- flexDirection: "column",
553
- overflowX: "hidden",
554
- overflowY: "auto"
555
- },
556
- baseHorizontal: {
557
- ...commonStyle,
558
- flexDirection: "row",
559
- overflowX: "auto",
560
- overflowY: "hidden"
561
- },
562
- contentContainerHorizontal: {
563
- flexDirection: "row"
564
- },
565
- contentContainerCenterContent: {
566
- justifyContent: "center",
567
- flexGrow: 1
568
- },
569
- stickyHeader: {
570
- position: "sticky",
571
- top: 0,
572
- zIndex: 10
573
- },
574
- pagingEnabledHorizontal: {
575
- scrollSnapType: "x mandatory"
576
- },
577
- pagingEnabledVertical: {
578
- scrollSnapType: "y mandatory"
579
- },
580
- pagingEnabledChild: {
581
- scrollSnapAlign: "start"
582
- }
637
+ baseHorizontal: {
638
+ ...commonStyle,
639
+ flexDirection: "row",
640
+ overflowX: "auto",
641
+ overflowY: "hidden"
642
+ },
643
+ contentContainerHorizontal: {
644
+ flexDirection: "row"
645
+ },
646
+ contentContainerCenterContent: {
647
+ justifyContent: "center",
648
+ flexGrow: 1
649
+ },
650
+ stickyHeader: {
651
+ position: "sticky",
652
+ top: 0,
653
+ zIndex: 10
583
654
  },
584
- ForwardedScrollView = import_react.default.forwardRef((props, forwardedRef) => /* @__PURE__ */(0, import_jsx_runtime.jsx)(ScrollView, {
655
+ pagingEnabledHorizontal: {
656
+ scrollSnapType: "x mandatory"
657
+ },
658
+ pagingEnabledVertical: {
659
+ scrollSnapType: "y mandatory"
660
+ },
661
+ pagingEnabledChild: {
662
+ scrollSnapAlign: "start"
663
+ }
664
+ };
665
+ const ForwardedScrollView = import_react.default.forwardRef((props, forwardedRef) => {
666
+ return /* @__PURE__ */(0, import_jsx_runtime.jsx)(ScrollView, {
585
667
  ...props,
586
668
  forwardedRef
587
- }));
669
+ });
670
+ });
588
671
  ForwardedScrollView.displayName = "ScrollView";
589
672
  var ScrollView_default = ForwardedScrollView;