@hanzogui/react-native-web-lite 3.0.6 → 4.4.0

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
@@ -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 AnimatedInterpolation_exports = {};
24
26
  __export(AnimatedInterpolation_exports, {
@@ -26,22 +28,38 @@ __export(AnimatedInterpolation_exports, {
26
28
  default: () => AnimatedInterpolation_default
27
29
  });
28
30
  module.exports = __toCommonJS(AnimatedInterpolation_exports);
29
- var import_AnimatedWithChildren = require("./AnimatedWithChildren.cjs"),
30
- import_NativeAnimatedHelper = require("../NativeAnimatedHelper.cjs"),
31
- import_react_native_web_internals = require("@hanzogui/react-native-web-internals");
32
- const __DEV__ = process.env.NODE_ENV !== "production",
33
- linear = t => t;
31
+ var import_AnimatedWithChildren = require("./AnimatedWithChildren.cjs");
32
+ var import_NativeAnimatedHelper = require("../NativeAnimatedHelper.cjs");
33
+ var import_react_native_web_internals = require("@hanzogui/react-native-web-internals");
34
+ const __DEV__ = process.env.NODE_ENV !== "production";
35
+ const linear = t => t;
34
36
  function createInterpolation(config) {
35
- if (config.outputRange && typeof config.outputRange[0] == "string") return createInterpolationFromStringOutputRange(config);
36
- const outputRange = config.outputRange,
37
- inputRange = config.inputRange;
38
- __DEV__ && (checkInfiniteRange("outputRange", outputRange), checkInfiniteRange("inputRange", inputRange), checkValidInputRange(inputRange), (0, import_react_native_web_internals.invariant)(inputRange.length === outputRange.length, "inputRange (" + inputRange.length + ") and outputRange (" + outputRange.length + ") must have the same length"));
37
+ if (config.outputRange && typeof config.outputRange[0] === "string") {
38
+ return createInterpolationFromStringOutputRange(config);
39
+ }
40
+ const outputRange = config.outputRange;
41
+ const inputRange = config.inputRange;
42
+ if (__DEV__) {
43
+ checkInfiniteRange("outputRange", outputRange);
44
+ checkInfiniteRange("inputRange", inputRange);
45
+ checkValidInputRange(inputRange);
46
+ (0, import_react_native_web_internals.invariant)(inputRange.length === outputRange.length, "inputRange (" + inputRange.length + ") and outputRange (" + outputRange.length + ") must have the same length");
47
+ }
39
48
  const easing = config.easing || linear;
40
49
  let extrapolateLeft = "extend";
41
- config.extrapolateLeft !== void 0 ? extrapolateLeft = config.extrapolateLeft : config.extrapolate !== void 0 && (extrapolateLeft = config.extrapolate);
50
+ if (config.extrapolateLeft !== void 0) {
51
+ extrapolateLeft = config.extrapolateLeft;
52
+ } else if (config.extrapolate !== void 0) {
53
+ extrapolateLeft = config.extrapolate;
54
+ }
42
55
  let extrapolateRight = "extend";
43
- return config.extrapolateRight !== void 0 ? extrapolateRight = config.extrapolateRight : config.extrapolate !== void 0 && (extrapolateRight = config.extrapolate), input => {
44
- (0, import_react_native_web_internals.invariant)(typeof input == "number", "Cannot interpolation an input which is not a number");
56
+ if (config.extrapolateRight !== void 0) {
57
+ extrapolateRight = config.extrapolateRight;
58
+ } else if (config.extrapolate !== void 0) {
59
+ extrapolateRight = config.extrapolate;
60
+ }
61
+ return input => {
62
+ (0, import_react_native_web_internals.invariant)(typeof input === "number", "Cannot interpolation an input which is not a number");
45
63
  const range = findRange(input, inputRange);
46
64
  return interpolate(input, inputRange[range], inputRange[range + 1], outputRange[range], outputRange[range + 1], easing, extrapolateLeft, extrapolateRight);
47
65
  };
@@ -49,80 +67,133 @@ function createInterpolation(config) {
49
67
  function interpolate(input, inputMin, inputMax, outputMin, outputMax, easing, extrapolateLeft, extrapolateRight) {
50
68
  let result = input;
51
69
  if (result < inputMin) {
52
- if (extrapolateLeft === "identity") return result;
53
- extrapolateLeft === "clamp" && (result = inputMin);
70
+ if (extrapolateLeft === "identity") {
71
+ return result;
72
+ } else if (extrapolateLeft === "clamp") {
73
+ result = inputMin;
74
+ } else if (extrapolateLeft === "extend") {}
54
75
  }
55
76
  if (result > inputMax) {
56
- if (extrapolateRight === "identity") return result;
57
- extrapolateRight === "clamp" && (result = inputMax);
77
+ if (extrapolateRight === "identity") {
78
+ return result;
79
+ } else if (extrapolateRight === "clamp") {
80
+ result = inputMax;
81
+ } else if (extrapolateRight === "extend") {}
82
+ }
83
+ if (outputMin === outputMax) {
84
+ return outputMin;
58
85
  }
59
- return outputMin === outputMax ? outputMin : inputMin === inputMax ? input <= inputMin ? outputMin : outputMax : (inputMin === -1 / 0 ? result = -result : inputMax === 1 / 0 ? result = result - inputMin : result = (result - inputMin) / (inputMax - inputMin), result = easing(result), outputMin === -1 / 0 ? result = -result : outputMax === 1 / 0 ? result = result + outputMin : result = result * (outputMax - outputMin) + outputMin, result);
86
+ if (inputMin === inputMax) {
87
+ if (input <= inputMin) {
88
+ return outputMin;
89
+ }
90
+ return outputMax;
91
+ }
92
+ if (inputMin === -Infinity) {
93
+ result = -result;
94
+ } else if (inputMax === Infinity) {
95
+ result = result - inputMin;
96
+ } else {
97
+ result = (result - inputMin) / (inputMax - inputMin);
98
+ }
99
+ result = easing(result);
100
+ if (outputMin === -Infinity) {
101
+ result = -result;
102
+ } else if (outputMax === Infinity) {
103
+ result = result + outputMin;
104
+ } else {
105
+ result = result * (outputMax - outputMin) + outputMin;
106
+ }
107
+ return result;
60
108
  }
61
109
  function colorToRgba(input) {
62
110
  let normalizedColor = (0, import_react_native_web_internals.normalizeColor)(input);
63
- if (normalizedColor === null || typeof normalizedColor != "number") return input;
111
+ if (normalizedColor === null || typeof normalizedColor !== "number") {
112
+ return input;
113
+ }
64
114
  normalizedColor = normalizedColor || 0;
65
- const r = (normalizedColor & 4278190080) >>> 24,
66
- g = (normalizedColor & 16711680) >>> 16,
67
- b = (normalizedColor & 65280) >>> 8,
68
- a = (normalizedColor & 255) / 255;
115
+ const r = (normalizedColor & 4278190080) >>> 24;
116
+ const g = (normalizedColor & 16711680) >>> 16;
117
+ const b = (normalizedColor & 65280) >>> 8;
118
+ const a = (normalizedColor & 255) / 255;
69
119
  return `rgba(${r}, ${g}, ${b}, ${a})`;
70
120
  }
71
121
  const stringShapeRegex = /[+-]?(?:\d+\.?\d*|\.\d+)(?:[eE][+-]?\d+)?/g;
72
122
  function createInterpolationFromStringOutputRange(config) {
73
123
  let outputRange = config.outputRange;
74
- (0, import_react_native_web_internals.invariant)(outputRange.length >= 2, "Bad output range"), outputRange = outputRange.map(colorToRgba), checkPattern(outputRange);
124
+ (0, import_react_native_web_internals.invariant)(outputRange.length >= 2, "Bad output range");
125
+ outputRange = outputRange.map(colorToRgba);
126
+ checkPattern(outputRange);
75
127
  const outputRanges = outputRange[0].match(stringShapeRegex).map(() => []);
76
128
  outputRange.forEach(value => {
77
129
  value.match(stringShapeRegex).forEach((number, i) => {
78
130
  outputRanges[i].push(+number);
79
131
  });
80
132
  });
81
- const interpolations = outputRange[0].match(stringShapeRegex).map((value, i) => createInterpolation({
133
+ const interpolations = outputRange[0].match(stringShapeRegex).map((value, i) => {
134
+ return createInterpolation({
82
135
  ...config,
83
136
  outputRange: outputRanges[i]
84
- })),
85
- shouldRound = isRgbOrRgba(outputRange[0]);
137
+ });
138
+ });
139
+ const shouldRound = isRgbOrRgba(outputRange[0]);
86
140
  return input => {
87
141
  let i = 0;
88
142
  return outputRange[0].replace(stringShapeRegex, () => {
89
143
  let val = +interpolations[i++](input);
90
- return shouldRound && (val = i < 4 ? Math.round(val) : Math.round(val * 1e3) / 1e3), String(val);
144
+ if (shouldRound) {
145
+ val = i < 4 ? Math.round(val) : Math.round(val * 1e3) / 1e3;
146
+ }
147
+ return String(val);
91
148
  });
92
149
  };
93
150
  }
94
151
  function isRgbOrRgba(range) {
95
- return typeof range == "string" && range.startsWith("rgb");
152
+ return typeof range === "string" && range.startsWith("rgb");
96
153
  }
97
154
  function checkPattern(arr) {
98
155
  const pattern = arr[0].replace(stringShapeRegex, "");
99
- for (let i = 1; i < arr.length; ++i) (0, import_react_native_web_internals.invariant)(pattern === arr[i].replace(stringShapeRegex, ""), "invalid pattern " + arr[0] + " and " + arr[i]);
156
+ for (let i = 1; i < arr.length; ++i) {
157
+ (0, import_react_native_web_internals.invariant)(pattern === arr[i].replace(stringShapeRegex, ""), "invalid pattern " + arr[0] + " and " + arr[i]);
158
+ }
100
159
  }
101
160
  function findRange(input, inputRange) {
102
161
  let i;
103
- for (i = 1; i < inputRange.length - 1 && !(inputRange[i] >= input); ++i);
162
+ for (i = 1; i < inputRange.length - 1; ++i) {
163
+ if (inputRange[i] >= input) {
164
+ break;
165
+ }
166
+ }
104
167
  return i - 1;
105
168
  }
106
169
  function checkValidInputRange(arr) {
107
170
  (0, import_react_native_web_internals.invariant)(arr.length >= 2, "inputRange must have at least 2 elements");
108
171
  const message = "inputRange must be monotonically non-decreasing " + String(arr);
109
- for (let i = 1; i < arr.length; ++i) (0, import_react_native_web_internals.invariant)(arr[i] >= arr[i - 1], message);
172
+ for (let i = 1; i < arr.length; ++i) {
173
+ (0, import_react_native_web_internals.invariant)(arr[i] >= arr[i - 1], message);
174
+ }
110
175
  }
111
176
  function checkInfiniteRange(name, arr) {
112
- (0, import_react_native_web_internals.invariant)(arr.length >= 2, name + " must have at least 2 elements"), (0, import_react_native_web_internals.invariant)(arr.length !== 2 || arr[0] !== -1 / 0 || arr[1] !== 1 / 0, name + "cannot be ]-infinity;+infinity[ " + arr);
177
+ (0, import_react_native_web_internals.invariant)(arr.length >= 2, name + " must have at least 2 elements");
178
+ (0, import_react_native_web_internals.invariant)(arr.length !== 2 || arr[0] !== -Infinity || arr[1] !== Infinity, name + "cannot be ]-infinity;+infinity[ " + arr);
113
179
  }
114
180
  class AnimatedInterpolation extends import_AnimatedWithChildren.AnimatedWithChildren {
115
181
  // Export for testing.
116
182
  static __createInterpolation = createInterpolation;
117
183
  constructor(parent, config) {
118
- super(), this._parent = parent, this._config = config, this._interpolation = createInterpolation(config);
184
+ super();
185
+ this._parent = parent;
186
+ this._config = config;
187
+ this._interpolation = createInterpolation(config);
119
188
  }
120
189
  __makeNative(platformConfig) {
121
- this._parent.__makeNative(platformConfig), super.__makeNative(platformConfig);
190
+ this._parent.__makeNative(platformConfig);
191
+ super.__makeNative(platformConfig);
122
192
  }
123
193
  __getValue() {
124
194
  const parentValue = this._parent.__getValue();
125
- return (0, import_react_native_web_internals.invariant)(typeof parentValue == "number", "Cannot interpolate an input which is not a number."), this._interpolation(parentValue);
195
+ (0, import_react_native_web_internals.invariant)(typeof parentValue === "number", "Cannot interpolate an input which is not a number.");
196
+ return this._interpolation(parentValue);
126
197
  }
127
198
  interpolate(config) {
128
199
  return new AnimatedInterpolation(this, config);
@@ -131,13 +202,17 @@ class AnimatedInterpolation extends import_AnimatedWithChildren.AnimatedWithChil
131
202
  this._parent.__addChild(this);
132
203
  }
133
204
  __detach() {
134
- this._parent.__removeChild(this), super.__detach();
205
+ this._parent.__removeChild(this);
206
+ super.__detach();
135
207
  }
136
208
  __transformDataType(range) {
137
209
  return range.map(import_NativeAnimatedHelper.NativeAnimatedHelper.transformDataType);
138
210
  }
139
211
  __getNativeConfig() {
140
- return __DEV__ && import_NativeAnimatedHelper.NativeAnimatedHelper.validateInterpolation(this._config), {
212
+ if (__DEV__) {
213
+ import_NativeAnimatedHelper.NativeAnimatedHelper.validateInterpolation(this._config);
214
+ }
215
+ return {
141
216
  inputRange: this._config.inputRange,
142
217
  // Only the `outputRange` can contain strings so we don't need to transform `inputRange` here
143
218
  outputRange: this.__transformDataType(this._config.outputRange),
@@ -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 AnimatedModulo_exports = {};
22
24
  __export(AnimatedModulo_exports, {
@@ -24,16 +26,19 @@ __export(AnimatedModulo_exports, {
24
26
  default: () => AnimatedModulo_default
25
27
  });
26
28
  module.exports = __toCommonJS(AnimatedModulo_exports);
27
- var import_AnimatedInterpolation = require("./AnimatedInterpolation.cjs"),
28
- import_AnimatedWithChildren = require("./AnimatedWithChildren.cjs");
29
+ var import_AnimatedInterpolation = require("./AnimatedInterpolation.cjs");
30
+ var import_AnimatedWithChildren = require("./AnimatedWithChildren.cjs");
29
31
  class AnimatedModulo extends import_AnimatedWithChildren.AnimatedWithChildren {
30
32
  _a;
31
33
  _modulus;
32
34
  constructor(a, modulus) {
33
- super(), this._a = a, this._modulus = modulus;
35
+ super();
36
+ this._a = a;
37
+ this._modulus = modulus;
34
38
  }
35
39
  __makeNative(platformConfig) {
36
- this._a.__makeNative(platformConfig), super.__makeNative(platformConfig);
40
+ this._a.__makeNative(platformConfig);
41
+ super.__makeNative(platformConfig);
37
42
  }
38
43
  __getValue() {
39
44
  return (this._a.__getValue() % this._modulus + this._modulus) % this._modulus;
@@ -45,7 +50,8 @@ class AnimatedModulo extends import_AnimatedWithChildren.AnimatedWithChildren {
45
50
  this._a.__addChild(this);
46
51
  }
47
52
  __detach() {
48
- this._a.__removeChild(this), super.__detach();
53
+ this._a.__removeChild(this);
54
+ super.__detach();
49
55
  }
50
56
  __getNativeConfig() {
51
57
  return {
@@ -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 AnimatedMultiplication_exports = {};
24
26
  __export(AnimatedMultiplication_exports, {
@@ -26,17 +28,21 @@ __export(AnimatedMultiplication_exports, {
26
28
  default: () => AnimatedMultiplication_default
27
29
  });
28
30
  module.exports = __toCommonJS(AnimatedMultiplication_exports);
29
- var import_AnimatedInterpolation = require("./AnimatedInterpolation.cjs"),
30
- import_AnimatedValue = require("./AnimatedValue.cjs"),
31
- import_AnimatedWithChildren = require("./AnimatedWithChildren.cjs");
31
+ var import_AnimatedInterpolation = require("./AnimatedInterpolation.cjs");
32
+ var import_AnimatedValue = require("./AnimatedValue.cjs");
33
+ var import_AnimatedWithChildren = require("./AnimatedWithChildren.cjs");
32
34
  class AnimatedMultiplication extends import_AnimatedWithChildren.AnimatedWithChildren {
33
35
  _a;
34
36
  _b;
35
37
  constructor(a, b) {
36
- super(), this._a = typeof a == "number" ? new import_AnimatedValue.AnimatedValue(a) : a, this._b = typeof b == "number" ? new import_AnimatedValue.AnimatedValue(b) : b;
38
+ super();
39
+ this._a = typeof a === "number" ? new import_AnimatedValue.AnimatedValue(a) : a;
40
+ this._b = typeof b === "number" ? new import_AnimatedValue.AnimatedValue(b) : b;
37
41
  }
38
42
  __makeNative(platformConfig) {
39
- this._a.__makeNative(platformConfig), this._b.__makeNative(platformConfig), super.__makeNative(platformConfig);
43
+ this._a.__makeNative(platformConfig);
44
+ this._b.__makeNative(platformConfig);
45
+ super.__makeNative(platformConfig);
40
46
  }
41
47
  __getValue() {
42
48
  return this._a.__getValue() * this._b.__getValue();
@@ -45,10 +51,13 @@ class AnimatedMultiplication extends import_AnimatedWithChildren.AnimatedWithChi
45
51
  return new import_AnimatedInterpolation.AnimatedInterpolation(this, config);
46
52
  }
47
53
  __attach() {
48
- this._a.__addChild(this), this._b.__addChild(this);
54
+ this._a.__addChild(this);
55
+ this._b.__addChild(this);
49
56
  }
50
57
  __detach() {
51
- this._a.__removeChild(this), this._b.__removeChild(this), super.__detach();
58
+ this._a.__removeChild(this);
59
+ this._b.__removeChild(this);
60
+ super.__detach();
52
61
  }
53
62
  __getNativeConfig() {
54
63
  return {
@@ -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 AnimatedNode_exports = {};
24
26
  __export(AnimatedNode_exports, {
@@ -26,8 +28,8 @@ __export(AnimatedNode_exports, {
26
28
  default: () => AnimatedNode_default
27
29
  });
28
30
  module.exports = __toCommonJS(AnimatedNode_exports);
29
- var import_NativeAnimatedHelper = require("../NativeAnimatedHelper.cjs"),
30
- import_react_native_web_internals = require("@hanzogui/react-native-web-internals");
31
+ var import_NativeAnimatedHelper = require("../NativeAnimatedHelper.cjs");
32
+ var import_react_native_web_internals = require("@hanzogui/react-native-web-internals");
31
33
  const NativeAnimatedAPI = import_NativeAnimatedHelper.NativeAnimatedHelper.API;
32
34
  let _uniqueId = 1;
33
35
  class AnimatedNode {
@@ -36,7 +38,10 @@ class AnimatedNode {
36
38
  __nativeAnimatedValueListener;
37
39
  __attach() {}
38
40
  __detach() {
39
- this.__isNative && this.__nativeTag != null && (import_NativeAnimatedHelper.NativeAnimatedHelper.API.dropAnimatedNode(this.__nativeTag), this.__nativeTag = void 0);
41
+ if (this.__isNative && this.__nativeTag != null) {
42
+ import_NativeAnimatedHelper.NativeAnimatedHelper.API.dropAnimatedNode(this.__nativeTag);
43
+ this.__nativeTag = void 0;
44
+ }
40
45
  }
41
46
  __getValue() {}
42
47
  __getAnimatedValue() {
@@ -55,8 +60,13 @@ class AnimatedNode {
55
60
  this._listeners = {};
56
61
  }
57
62
  __makeNative(platformConfig) {
58
- if (!this.__isNative) throw new Error('This node cannot be made a "native" animated node');
59
- this._platformConfig = platformConfig, this.hasListeners() && this._startListeningToNativeValueUpdates();
63
+ if (!this.__isNative) {
64
+ throw new Error('This node cannot be made a "native" animated node');
65
+ }
66
+ this._platformConfig = platformConfig;
67
+ if (this.hasListeners()) {
68
+ this._startListeningToNativeValueUpdates();
69
+ }
60
70
  }
61
71
  /**
62
72
  * Adds an asynchronous listener to the value so you can observe updates from
@@ -67,7 +77,11 @@ class AnimatedNode {
67
77
  */
68
78
  addListener(callback) {
69
79
  const id = String(_uniqueId++);
70
- return this._listeners[id] = callback, this.__isNative && this._startListeningToNativeValueUpdates(), id;
80
+ this._listeners[id] = callback;
81
+ if (this.__isNative) {
82
+ this._startListeningToNativeValueUpdates();
83
+ }
84
+ return id;
71
85
  }
72
86
  /**
73
87
  * Unregister a listener. The `id` param shall match the identifier
@@ -76,7 +90,10 @@ class AnimatedNode {
76
90
  * See https://reactnative.dev/docs/animatedvalue#removelistener
77
91
  */
78
92
  removeListener(id) {
79
- delete this._listeners[id], this.__isNative && !this.hasListeners() && this._stopListeningForNativeValueUpdates();
93
+ delete this._listeners[id];
94
+ if (this.__isNative && !this.hasListeners()) {
95
+ this._stopListeningForNativeValueUpdates();
96
+ }
80
97
  }
81
98
  /**
82
99
  * Remove all registered listeners.
@@ -84,34 +101,60 @@ class AnimatedNode {
84
101
  * See https://reactnative.dev/docs/animatedvalue#removealllisteners
85
102
  */
86
103
  removeAllListeners() {
87
- this._listeners = {}, this.__isNative && this._stopListeningForNativeValueUpdates();
104
+ this._listeners = {};
105
+ if (this.__isNative) {
106
+ this._stopListeningForNativeValueUpdates();
107
+ }
88
108
  }
89
109
  hasListeners() {
90
110
  return !!Object.keys(this._listeners).length;
91
111
  }
92
112
  _startListeningToNativeValueUpdates() {
93
- this.__nativeAnimatedValueListener && !this.__shouldUpdateListenersForNewNativeTag || (this.__shouldUpdateListenersForNewNativeTag && (this.__shouldUpdateListenersForNewNativeTag = !1, this._stopListeningForNativeValueUpdates()), NativeAnimatedAPI.startListeningToAnimatedNodeValue(this.__getNativeTag()), this.__nativeAnimatedValueListener = import_NativeAnimatedHelper.NativeAnimatedHelper.nativeEventEmitter.addListener("onAnimatedValueUpdate", data => {
94
- data.tag === this.__getNativeTag() && this.__onAnimatedValueUpdateReceived(data.value);
95
- }));
113
+ if (this.__nativeAnimatedValueListener && !this.__shouldUpdateListenersForNewNativeTag) {
114
+ return;
115
+ }
116
+ if (this.__shouldUpdateListenersForNewNativeTag) {
117
+ this.__shouldUpdateListenersForNewNativeTag = false;
118
+ this._stopListeningForNativeValueUpdates();
119
+ }
120
+ NativeAnimatedAPI.startListeningToAnimatedNodeValue(this.__getNativeTag());
121
+ this.__nativeAnimatedValueListener = import_NativeAnimatedHelper.NativeAnimatedHelper.nativeEventEmitter.addListener("onAnimatedValueUpdate", data => {
122
+ if (data.tag !== this.__getNativeTag()) {
123
+ return;
124
+ }
125
+ this.__onAnimatedValueUpdateReceived(data.value);
126
+ });
96
127
  }
97
128
  __onAnimatedValueUpdateReceived(value) {
98
129
  this.__callListeners(value);
99
130
  }
100
131
  __callListeners(value) {
101
- for (const key in this._listeners) this._listeners[key]({
102
- value
103
- });
132
+ for (const key in this._listeners) {
133
+ this._listeners[key]({
134
+ value
135
+ });
136
+ }
104
137
  }
105
138
  _stopListeningForNativeValueUpdates() {
106
- this.__nativeAnimatedValueListener && (this.__nativeAnimatedValueListener.remove(), this.__nativeAnimatedValueListener = null, NativeAnimatedAPI.stopListeningToAnimatedNodeValue(this.__getNativeTag()));
139
+ if (!this.__nativeAnimatedValueListener) {
140
+ return;
141
+ }
142
+ this.__nativeAnimatedValueListener.remove();
143
+ this.__nativeAnimatedValueListener = null;
144
+ NativeAnimatedAPI.stopListeningToAnimatedNodeValue(this.__getNativeTag());
107
145
  }
108
146
  __getNativeTag() {
109
- import_NativeAnimatedHelper.NativeAnimatedHelper.assertNativeAnimatedModule(), (0, import_react_native_web_internals.invariant)(this.__isNative, 'Attempt to get native tag from node not marked as "native"');
147
+ import_NativeAnimatedHelper.NativeAnimatedHelper.assertNativeAnimatedModule();
148
+ (0, import_react_native_web_internals.invariant)(this.__isNative, 'Attempt to get native tag from node not marked as "native"');
110
149
  const nativeTag = this.__nativeTag ?? import_NativeAnimatedHelper.NativeAnimatedHelper.generateNewNodeTag();
111
150
  if (this.__nativeTag == null) {
112
151
  this.__nativeTag = nativeTag;
113
152
  const config = this.__getNativeConfig();
114
- this._platformConfig && (config.platformConfig = this._platformConfig), import_NativeAnimatedHelper.NativeAnimatedHelper.API.createAnimatedNode(nativeTag, config), this.__shouldUpdateListenersForNewNativeTag = !0;
153
+ if (this._platformConfig) {
154
+ config.platformConfig = this._platformConfig;
155
+ }
156
+ import_NativeAnimatedHelper.NativeAnimatedHelper.API.createAnimatedNode(nativeTag, config);
157
+ this.__shouldUpdateListenersForNewNativeTag = true;
115
158
  }
116
159
  return nativeTag;
117
160
  }