@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
@@ -3,20 +3,22 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
3
  var __getOwnPropNames = Object.getOwnPropertyNames;
4
4
  var __hasOwnProp = Object.prototype.hasOwnProperty;
5
5
  var __export = (target, all) => {
6
- for (var name in all) __defProp(target, name, {
7
- get: all[name],
8
- enumerable: !0
9
- });
10
- },
11
- __copyProps = (to, from, except, desc) => {
12
- if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
6
+ for (var name in all) __defProp(target, name, {
7
+ get: all[name],
8
+ enumerable: true
9
+ });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
13
14
  get: () => from[key],
14
15
  enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
15
16
  });
16
- return to;
17
- };
17
+ }
18
+ return to;
19
+ };
18
20
  var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
19
- value: !0
21
+ value: true
20
22
  }), mod);
21
23
  var VirtualizedList_exports = {};
22
24
  __export(VirtualizedList_exports, {
@@ -24,20 +26,20 @@ __export(VirtualizedList_exports, {
24
26
  default: () => VirtualizedList_default
25
27
  });
26
28
  module.exports = __toCommonJS(VirtualizedList_exports);
27
- var import_react_native_web_internals = require("@hanzogui/react-native-web-internals"),
28
- import_ScrollView = require("../../../ScrollView/index.cjs"),
29
- import_RefreshControl = require("../../../RefreshControl/index.cjs"),
30
- import_Batchinator = require("../Batchinator/index.cjs"),
31
- import_ChildListCollection = require("./ChildListCollection.cjs"),
32
- import_FillRateHelper = require("../FillRateHelper/index.cjs"),
33
- import_StateSafePureComponent = require("./StateSafePureComponent.cjs"),
34
- import_ViewabilityHelper = require("../ViewabilityHelper/index.cjs"),
35
- import_VirtualizedListCellRenderer = require("./VirtualizedListCellRenderer.cjs"),
36
- import_VirtualizedListContext = require("./VirtualizedListContext.cjs"),
37
- import_jsx_runtime = require("react/jsx-runtime");
29
+ var import_react_native_web_internals = require("@hanzogui/react-native-web-internals");
30
+ var import_ScrollView = require("../../../ScrollView/index.cjs");
31
+ var import_RefreshControl = require("../../../RefreshControl/index.cjs");
32
+ var import_Batchinator = require("../Batchinator/index.cjs");
33
+ var import_ChildListCollection = require("./ChildListCollection.cjs");
34
+ var import_FillRateHelper = require("../FillRateHelper/index.cjs");
35
+ var import_StateSafePureComponent = require("./StateSafePureComponent.cjs");
36
+ var import_ViewabilityHelper = require("../ViewabilityHelper/index.cjs");
37
+ var import_VirtualizedListCellRenderer = require("./VirtualizedListCellRenderer.cjs");
38
+ var import_VirtualizedListContext = require("./VirtualizedListContext.cjs");
39
+ var import_jsx_runtime = require("react/jsx-runtime");
38
40
  const __DEV__ = process.env.NODE_ENV !== "production";
39
41
  function horizontalOrDefault(horizontal) {
40
- return horizontal ?? !1;
42
+ return horizontal ?? false;
41
43
  }
42
44
  function scrollEventThrottleOrDefault(scrollEventThrottle) {
43
45
  return scrollEventThrottle ?? 50;
@@ -45,7 +47,10 @@ function scrollEventThrottleOrDefault(scrollEventThrottle) {
45
47
  class VirtualizedList extends import_StateSafePureComponent.StateSafePureComponent {
46
48
  static contextType = import_VirtualizedListContext.VirtualizedListContext;
47
49
  constructor(props) {
48
- super(props), this._nestedChildLists = new import_ChildListCollection.ChildListCollection(), this._viewabilityTuples = [], this._scrollMetrics = {
50
+ super(props);
51
+ this._nestedChildLists = new import_ChildListCollection.ChildListCollection();
52
+ this._viewabilityTuples = [];
53
+ this._scrollMetrics = {
49
54
  contentLength: 0,
50
55
  dOffset: 0,
51
56
  dt: 10,
@@ -53,56 +58,76 @@ class VirtualizedList extends import_StateSafePureComponent.StateSafePureCompone
53
58
  timestamp: 0,
54
59
  velocity: 0,
55
60
  visibleLength: 0
56
- }, this._highestMeasuredFrameIndex = 0, this._headerLength = 0, this._footerLength = 0, this._averageCellLength = 0, this._hasWarned = {}, this._fillRateHelper = new import_FillRateHelper.FillRateHelper(this._getFrameMetrics), this._updateCellsToRenderBatcher = new import_Batchinator.Batchinator(this._updateCellsToRender, this.props.updateCellsBatchingPeriod ?? 50), this.props.viewabilityConfig && this.props.onViewableItemsChanged && this._viewabilityTuples.push({
57
- viewabilityHelper: new import_ViewabilityHelper.ViewabilityHelper(this.props.viewabilityConfig),
58
- onViewableItemsChanged: this.props.onViewableItemsChanged
59
- });
61
+ };
62
+ this._highestMeasuredFrameIndex = 0;
63
+ this._headerLength = 0;
64
+ this._footerLength = 0;
65
+ this._averageCellLength = 0;
66
+ this._hasWarned = {};
67
+ this._fillRateHelper = new import_FillRateHelper.FillRateHelper(this._getFrameMetrics);
68
+ this._updateCellsToRenderBatcher = new import_Batchinator.Batchinator(this._updateCellsToRender, this.props.updateCellsBatchingPeriod ?? 50);
69
+ if (this.props.viewabilityConfig && this.props.onViewableItemsChanged) {
70
+ this._viewabilityTuples.push({
71
+ viewabilityHelper: new import_ViewabilityHelper.ViewabilityHelper(this.props.viewabilityConfig),
72
+ onViewableItemsChanged: this.props.onViewableItemsChanged
73
+ });
74
+ }
60
75
  }
61
76
  scrollToEnd(params) {
62
- const animated = params ? params.animated : !0,
63
- veryLast = this.props.getItemCount(this.props.data) - 1;
64
- if (veryLast < 0) return;
65
- const frame = this.__getFrameMetricsApprox(veryLast, this.props),
66
- offset = Math.max(0, frame.offset + frame.length + this._footerLength - this._scrollMetrics.visibleLength);
67
- if (this._scrollRef != null) {
68
- if (this._scrollRef.scrollTo == null) {
69
- console.warn("No scrollTo method provided. This may be because you have two nested VirtualizedLists with the same orientation, or because you are using a custom component that does not implement scrollTo.");
70
- return;
71
- }
72
- this._scrollRef.scrollTo(horizontalOrDefault(this.props.horizontal) ? {
73
- x: offset,
74
- animated
75
- } : {
76
- y: offset,
77
- animated
78
- });
77
+ const animated = params ? params.animated : true;
78
+ const veryLast = this.props.getItemCount(this.props.data) - 1;
79
+ if (veryLast < 0) {
80
+ return;
81
+ }
82
+ const frame = this.__getFrameMetricsApprox(veryLast, this.props);
83
+ const offset = Math.max(0, frame.offset + frame.length + this._footerLength - this._scrollMetrics.visibleLength);
84
+ if (this._scrollRef == null) {
85
+ return;
86
+ }
87
+ if (this._scrollRef.scrollTo == null) {
88
+ console.warn("No scrollTo method provided. This may be because you have two nested VirtualizedLists with the same orientation, or because you are using a custom component that does not implement scrollTo.");
89
+ return;
79
90
  }
91
+ this._scrollRef.scrollTo(horizontalOrDefault(this.props.horizontal) ? {
92
+ x: offset,
93
+ animated
94
+ } : {
95
+ y: offset,
96
+ animated
97
+ });
80
98
  }
81
99
  scrollToIndex(params) {
82
100
  const {
83
- data,
84
- horizontal,
85
- getItemCount,
86
- getItemLayout,
87
- onScrollToIndexFailed
88
- } = this.props,
89
- {
90
- animated,
91
- index,
92
- viewOffset,
93
- viewPosition
94
- } = params;
95
- if ((0, import_react_native_web_internals.invariant)(index >= 0, `scrollToIndex out of range: requested index ${index} but minimum is 0`), (0, import_react_native_web_internals.invariant)(getItemCount(data) >= 1, `scrollToIndex out of range: item length ${getItemCount(data)} but minimum is 1`), (0, import_react_native_web_internals.invariant)(index < getItemCount(data), `scrollToIndex out of range: requested index ${index} is out of 0 to ${getItemCount(data) - 1}`), !getItemLayout && index > this._highestMeasuredFrameIndex) {
96
- (0, import_react_native_web_internals.invariant)(!!onScrollToIndexFailed, "scrollToIndex should be used in conjunction with getItemLayout or onScrollToIndexFailed, otherwise there is no way to know the location of offscreen indices or handle failures."), onScrollToIndexFailed({
101
+ data,
102
+ horizontal,
103
+ getItemCount,
104
+ getItemLayout,
105
+ onScrollToIndexFailed
106
+ } = this.props;
107
+ const {
108
+ animated,
109
+ index,
110
+ viewOffset,
111
+ viewPosition
112
+ } = params;
113
+ (0, import_react_native_web_internals.invariant)(index >= 0, `scrollToIndex out of range: requested index ${index} but minimum is 0`);
114
+ (0, import_react_native_web_internals.invariant)(getItemCount(data) >= 1, `scrollToIndex out of range: item length ${getItemCount(data)} but minimum is 1`);
115
+ (0, import_react_native_web_internals.invariant)(index < getItemCount(data), `scrollToIndex out of range: requested index ${index} is out of 0 to ${getItemCount(data) - 1}`);
116
+ if (!getItemLayout && index > this._highestMeasuredFrameIndex) {
117
+ (0, import_react_native_web_internals.invariant)(!!onScrollToIndexFailed, "scrollToIndex should be used in conjunction with getItemLayout or onScrollToIndexFailed, otherwise there is no way to know the location of offscreen indices or handle failures.");
118
+ onScrollToIndexFailed({
97
119
  averageItemLength: this._averageCellLength,
98
120
  highestMeasuredFrameIndex: this._highestMeasuredFrameIndex,
99
121
  index
100
122
  });
101
123
  return;
102
124
  }
103
- const frame = this.__getFrameMetricsApprox(Math.floor(index), this.props),
104
- offset = Math.max(0, this._getOffsetApprox(index, this.props) - (viewPosition || 0) * (this._scrollMetrics.visibleLength - frame.length)) - (viewOffset || 0);
105
- this._scrollRef != null && this._scrollRef.scrollTo(horizontalOrDefault(horizontal) ? {
125
+ const frame = this.__getFrameMetricsApprox(Math.floor(index), this.props);
126
+ const offset = Math.max(0, this._getOffsetApprox(index, this.props) - (viewPosition || 0) * (this._scrollMetrics.visibleLength - frame.length)) - (viewOffset || 0);
127
+ if (this._scrollRef == null) {
128
+ return;
129
+ }
130
+ this._scrollRef.scrollTo(horizontalOrDefault(horizontal) ? {
106
131
  x: offset,
107
132
  animated
108
133
  } : {
@@ -112,34 +137,38 @@ class VirtualizedList extends import_StateSafePureComponent.StateSafePureCompone
112
137
  }
113
138
  scrollToItem(params) {
114
139
  const {
115
- data,
116
- getItem,
117
- getItemCount,
118
- horizontal,
119
- onScrollToIndexFailed
120
- } = this.props,
121
- {
122
- animated,
123
- item,
124
- viewPosition,
125
- viewOffset
126
- } = params,
127
- index = this.props.data.indexOf(item);
128
- if (index !== -1) this.scrollToIndex({
140
+ data,
141
+ getItem,
142
+ getItemCount,
143
+ horizontal,
144
+ onScrollToIndexFailed
145
+ } = this.props;
146
+ const {
129
147
  animated,
130
- index,
131
- viewOffset,
132
- viewPosition
133
- });else {
148
+ item,
149
+ viewPosition,
150
+ viewOffset
151
+ } = params;
152
+ const index = this.props.data.indexOf(item);
153
+ if (index !== -1) {
154
+ this.scrollToIndex({
155
+ animated,
156
+ index,
157
+ viewOffset,
158
+ viewPosition
159
+ });
160
+ } else {
134
161
  const itemCount = getItemCount(data);
135
- for (let i = 0; i < itemCount; i++) if (getItem(data, i) === item) {
136
- this.scrollToIndex({
137
- animated,
138
- index: i,
139
- viewOffset,
140
- viewPosition
141
- });
142
- break;
162
+ for (let i = 0; i < itemCount; i++) {
163
+ if (getItem(data, i) === item) {
164
+ this.scrollToIndex({
165
+ animated,
166
+ index: i,
167
+ viewOffset,
168
+ viewPosition
169
+ });
170
+ break;
171
+ }
143
172
  }
144
173
  }
145
174
  }
@@ -148,7 +177,10 @@ class VirtualizedList extends import_StateSafePureComponent.StateSafePureCompone
148
177
  animated,
149
178
  offset
150
179
  } = params;
151
- this._scrollRef != null && this._scrollRef.scrollTo(horizontalOrDefault(this.props.horizontal) ? {
180
+ if (this._scrollRef == null) {
181
+ return;
182
+ }
183
+ this._scrollRef.scrollTo(horizontalOrDefault(this.props.horizontal) ? {
152
184
  x: offset,
153
185
  animated
154
186
  } : {
@@ -159,24 +191,33 @@ class VirtualizedList extends import_StateSafePureComponent.StateSafePureCompone
159
191
  recordInteraction() {
160
192
  this._nestedChildLists.forEach(childList => {
161
193
  childList.recordInteraction();
162
- }), this._viewabilityTuples.forEach(viewabilityTuple => {
194
+ });
195
+ this._viewabilityTuples.forEach(viewabilityTuple => {
163
196
  viewabilityTuple.viewabilityHelper.recordInteraction();
164
197
  });
165
198
  }
166
199
  flashScrollIndicators() {
167
- this._scrollRef && this._scrollRef.flashScrollIndicators && this._scrollRef.flashScrollIndicators();
200
+ if (this._scrollRef && this._scrollRef.flashScrollIndicators) {
201
+ this._scrollRef.flashScrollIndicators();
202
+ }
168
203
  }
169
204
  getScrollResponder() {
170
- if (this._scrollRef && this._scrollRef.getScrollResponder) return this._scrollRef.getScrollResponder();
205
+ if (this._scrollRef && this._scrollRef.getScrollResponder) {
206
+ return this._scrollRef.getScrollResponder();
207
+ }
171
208
  }
172
209
  getScrollableNode() {
173
- if (this._scrollRef && this._scrollRef.getScrollableNode) return this._scrollRef.getScrollableNode();
210
+ if (this._scrollRef && this._scrollRef.getScrollableNode) {
211
+ return this._scrollRef.getScrollableNode();
212
+ }
174
213
  }
175
214
  getScrollRef() {
176
215
  return this._scrollRef;
177
216
  }
178
217
  setNativeProps(props) {
179
- this._scrollRef && this._scrollRef.setNativeProps(props);
218
+ if (this._scrollRef) {
219
+ this._scrollRef.setNativeProps(props);
220
+ }
180
221
  }
181
222
  render() {
182
223
  const {
@@ -211,7 +252,11 @@ class VirtualizedList extends import_StateSafePureComponent.StateSafePureCompone
211
252
  viewabilityConfigCallbackPairs,
212
253
  ...restProps
213
254
  } = this.props;
214
- return getItemCount(data) === 0 ? ListEmptyComponent ? /* @__PURE__ */(0, import_jsx_runtime.jsx)(ListEmptyComponent, {}) : null : /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_ScrollView.ScrollView, {
255
+ const itemCount = getItemCount(data);
256
+ if (itemCount === 0) {
257
+ return ListEmptyComponent ? /* @__PURE__ */(0, import_jsx_runtime.jsx)(ListEmptyComponent, {}) : null;
258
+ }
259
+ return /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_ScrollView.ScrollView, {
215
260
  ...restProps,
216
261
  ref: this._captureRef,
217
262
  onContentSizeChange: this._onContentSizeChange,
@@ -228,12 +273,12 @@ class VirtualizedList extends import_StateSafePureComponent.StateSafePureCompone
228
273
  }
229
274
  _renderChildren() {
230
275
  const {
231
- data,
232
- getItem,
233
- getItemCount,
234
- renderItem
235
- } = this.props,
236
- items = [];
276
+ data,
277
+ getItem,
278
+ getItemCount,
279
+ renderItem
280
+ } = this.props;
281
+ const items = [];
237
282
  for (let i = 0; i < getItemCount(data); i++) {
238
283
  const item = getItem(data, i);
239
284
  items.push(/* @__PURE__ */(0, import_jsx_runtime.jsx)(import_VirtualizedListCellRenderer.CellRenderer, {
@@ -252,10 +297,11 @@ class VirtualizedList extends import_StateSafePureComponent.StateSafePureCompone
252
297
  _onLayout = event => {};
253
298
  _onScroll = event => {};
254
299
  __getFrameMetricsApprox(index, props) {
255
- return {
300
+ const frame = {
256
301
  length: this._averageCellLength,
257
302
  offset: this._averageCellLength * index
258
303
  };
304
+ return frame;
259
305
  }
260
306
  _getOffsetApprox(index, props) {
261
307
  return this.__getFrameMetricsApprox(index, props).offset;
@@ -2,42 +2,44 @@ 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 VirtualizedSectionList_exports = {};
33
35
  __export(VirtualizedSectionList_exports, {
34
36
  VirtualizedSectionList: () => VirtualizedSectionList,
35
37
  default: () => VirtualizedSectionList_default
36
38
  });
37
39
  module.exports = __toCommonJS(VirtualizedSectionList_exports);
38
- var import_VirtualizedList = require("../VirtualizedList/index.cjs"),
39
- React = __toESM(require("react"), 1),
40
- import_jsx_runtime = require("react/jsx-runtime");
40
+ var import_VirtualizedList = require("../VirtualizedList/index.cjs");
41
+ var React = __toESM(require("react"), 1);
42
+ var import_jsx_runtime = require("react/jsx-runtime");
41
43
  const defaultProps = {
42
44
  data: [],
43
45
  key: null,
@@ -48,9 +50,13 @@ const defaultProps = {
48
50
  class VirtualizedSectionList extends React.PureComponent {
49
51
  scrollToLocation(params) {
50
52
  let index = params.itemIndex;
51
- for (let i = 0; i < params.sectionIndex; i++) index += this.props.getItemCount(this.props.sections[i].data) + 2;
53
+ for (let i = 0; i < params.sectionIndex; i++) {
54
+ index += this.props.getItemCount(this.props.sections[i].data) + 2;
55
+ }
52
56
  let viewOffset = params.viewOffset || 0;
53
- if (this._listRef == null) return;
57
+ if (this._listRef == null) {
58
+ return;
59
+ }
54
60
  if (params.itemIndex > 0 && this.props.stickySectionHeadersEnabled) {
55
61
  const frame = this._listRef.__getFrameMetricsApprox(index - params.itemIndex, this._listRef.props);
56
62
  viewOffset += frame.length;
@@ -67,19 +73,25 @@ class VirtualizedSectionList extends React.PureComponent {
67
73
  }
68
74
  render() {
69
75
  const {
70
- ItemSeparatorComponent,
71
- SectionSeparatorComponent,
72
- renderItem: _renderItem,
73
- renderSectionFooter,
74
- renderSectionHeader,
75
- sections: _sections,
76
- stickySectionHeadersEnabled,
77
- ...passThroughProps
78
- } = this.props,
79
- listHeaderOffset = this.props.ListHeaderComponent ? 1 : 0,
80
- stickyHeaderIndices = this.props.stickySectionHeadersEnabled ? [] : void 0;
76
+ ItemSeparatorComponent,
77
+ SectionSeparatorComponent,
78
+ renderItem: _renderItem,
79
+ renderSectionFooter,
80
+ renderSectionHeader,
81
+ sections: _sections,
82
+ stickySectionHeadersEnabled,
83
+ ...passThroughProps
84
+ } = this.props;
85
+ const listHeaderOffset = this.props.ListHeaderComponent ? 1 : 0;
86
+ const stickyHeaderIndices = this.props.stickySectionHeadersEnabled ? [] : void 0;
81
87
  let itemCount = 0;
82
- for (const section of this.props.sections) stickyHeaderIndices?.push(itemCount + listHeaderOffset), itemCount += 2, itemCount += this.props.getItemCount(section.data);
88
+ for (const section of this.props.sections) {
89
+ if (stickyHeaderIndices != null) {
90
+ stickyHeaderIndices.push(itemCount + listHeaderOffset);
91
+ }
92
+ itemCount += 2;
93
+ itemCount += this.props.getItemCount(section.data);
94
+ }
83
95
  const renderItem = this._renderItem(itemCount);
84
96
  return /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_VirtualizedList.VirtualizedList, {
85
97
  ...passThroughProps,
@@ -94,36 +106,59 @@ class VirtualizedSectionList extends React.PureComponent {
94
106
  });
95
107
  }
96
108
  _getItem(props, sections, index) {
97
- if (!sections) return null;
109
+ if (!sections) {
110
+ return null;
111
+ }
98
112
  let itemIdx = index - 1;
99
113
  for (let i = 0; i < sections.length; i++) {
100
- const section = sections[i],
101
- sectionData = section.data,
102
- itemCount = props.getItemCount(sectionData);
103
- if (itemIdx === -1 || itemIdx === itemCount) return section;
104
- if (itemIdx < itemCount) return props.getItem(sectionData, itemIdx);
105
- itemIdx -= itemCount + 2;
114
+ const section = sections[i];
115
+ const sectionData = section.data;
116
+ const itemCount = props.getItemCount(sectionData);
117
+ if (itemIdx === -1 || itemIdx === itemCount) {
118
+ return section;
119
+ } else if (itemIdx < itemCount) {
120
+ return props.getItem(sectionData, itemIdx);
121
+ } else {
122
+ itemIdx -= itemCount + 2;
123
+ }
106
124
  }
107
125
  return null;
108
126
  }
109
- _keyExtractor = (item, index) => (this.props.keyExtractor || this._defaultKeyExtractor)(item, index);
110
- _defaultKeyExtractor = (item, index) => item.key != null ? item.key : String(index);
127
+ _keyExtractor = (item, index) => {
128
+ const keyExtractor = this.props.keyExtractor || this._defaultKeyExtractor;
129
+ return keyExtractor(item, index);
130
+ };
131
+ _defaultKeyExtractor = (item, index) => {
132
+ return item.key != null ? item.key : String(index);
133
+ };
111
134
  _captureRef = ref => {
112
135
  this._listRef = ref;
113
136
  };
114
- _renderItem = itemCount => ({
115
- item,
116
- index
117
- }) => index === 0 || index === itemCount - 1 ? null : (this.props.renderItem || this._defaultRenderItem)({
118
- item,
119
- index,
120
- section: item
121
- });
137
+ _renderItem = itemCount => {
138
+ return ({
139
+ item,
140
+ index
141
+ }) => {
142
+ if (index === 0 || index === itemCount - 1) {
143
+ return null;
144
+ }
145
+ const renderItem = this.props.renderItem || this._defaultRenderItem;
146
+ return renderItem({
147
+ item,
148
+ index,
149
+ section: item
150
+ });
151
+ };
152
+ };
122
153
  _defaultRenderItem = ({
123
154
  item
124
- }) => null;
155
+ }) => {
156
+ return null;
157
+ };
125
158
  _onViewableItemsChanged = info => {
126
- this.props.onViewableItemsChanged && this.props.onViewableItemsChanged(info);
159
+ if (this.props.onViewableItemsChanged) {
160
+ this.props.onViewableItemsChanged(info);
161
+ }
127
162
  };
128
163
  }
129
164
  VirtualizedSectionList.defaultProps = defaultProps;
@@ -5,20 +5,22 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
5
  var __getOwnPropNames = Object.getOwnPropertyNames;
6
6
  var __hasOwnProp = Object.prototype.hasOwnProperty;
7
7
  var __export = (target, all) => {
8
- 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 __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
21
- value: !0
23
+ value: true
22
24
  }), mod);
23
25
  var deepDiffer_exports = {};
24
26
  __export(deepDiffer_exports, {
@@ -27,18 +29,46 @@ __export(deepDiffer_exports, {
27
29
  });
28
30
  module.exports = __toCommonJS(deepDiffer_exports);
29
31
  const deepDiffer = function (one, two, maxDepth = -1) {
30
- if (maxDepth === 0) return !0;
31
- if (one === two || typeof one == "function" && typeof two == "function") return !1;
32
- if (typeof one != "object" || one === null) return one !== two;
33
- if (typeof two != "object" || two === null || one.constructor !== two.constructor) return !0;
32
+ if (maxDepth === 0) {
33
+ return true;
34
+ }
35
+ if (one === two) {
36
+ return false;
37
+ }
38
+ if (typeof one === "function" && typeof two === "function") {
39
+ return false;
40
+ }
41
+ if (typeof one !== "object" || one === null) {
42
+ return one !== two;
43
+ }
44
+ if (typeof two !== "object" || two === null) {
45
+ return true;
46
+ }
47
+ if (one.constructor !== two.constructor) {
48
+ return true;
49
+ }
34
50
  if (Array.isArray(one)) {
35
51
  const len = one.length;
36
- if (two.length !== len) return !0;
37
- for (let ii = 0; ii < len; ii++) if (deepDiffer(one[ii], two[ii], maxDepth - 1)) return !0;
52
+ if (two.length !== len) {
53
+ return true;
54
+ }
55
+ for (let ii = 0; ii < len; ii++) {
56
+ if (deepDiffer(one[ii], two[ii], maxDepth - 1)) {
57
+ return true;
58
+ }
59
+ }
38
60
  } else {
39
- for (const key in one) if (deepDiffer(one[key], two[key], maxDepth - 1)) return !0;
40
- for (const twoKey in two) if (one[twoKey] === void 0 && two[twoKey] !== void 0) return !0;
61
+ for (const key in one) {
62
+ if (deepDiffer(one[key], two[key], maxDepth - 1)) {
63
+ return true;
64
+ }
65
+ }
66
+ for (const twoKey in two) {
67
+ if (one[twoKey] === void 0 && two[twoKey] !== void 0) {
68
+ return true;
69
+ }
70
+ }
41
71
  }
42
- return !1;
72
+ return false;
43
73
  };
44
74
  var deepDiffer_default = deepDiffer;