@hanzogui/react-native-web-lite 2.0.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 (644) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +31 -0
  3. package/dist/cjs/AccessibilityInfo/index.cjs +97 -0
  4. package/dist/cjs/ActivityIndicator/__tests__/index-test.cjs +188 -0
  5. package/dist/cjs/ActivityIndicator/index.cjs +128 -0
  6. package/dist/cjs/Alert/index.cjs +28 -0
  7. package/dist/cjs/AppRegistry/AppContainer.cjs +70 -0
  8. package/dist/cjs/AppRegistry/__tests__/index-test.cjs +83 -0
  9. package/dist/cjs/AppRegistry/__tests__/index-test.node.cjs +155 -0
  10. package/dist/cjs/AppRegistry/index.cjs +88 -0
  11. package/dist/cjs/AppRegistry/renderApplication.cjs +69 -0
  12. package/dist/cjs/AppState/__tests__/index-test.cjs +34 -0
  13. package/dist/cjs/AppState/index.cjs +69 -0
  14. package/dist/cjs/Appearance/index.cjs +53 -0
  15. package/dist/cjs/BackHandler/index.cjs +35 -0
  16. package/dist/cjs/Clipboard/index.cjs +51 -0
  17. package/dist/cjs/DeviceEmitter.cjs +27 -0
  18. package/dist/cjs/DeviceInfo/index.cjs +68 -0
  19. package/dist/cjs/Dimensions/__tests__/index-test.cjs +54 -0
  20. package/dist/cjs/Dimensions/index.cjs +82 -0
  21. package/dist/cjs/FlatList.cjs +197 -0
  22. package/dist/cjs/I18nManager/index.cjs +34 -0
  23. package/dist/cjs/Image/index.cjs +293 -0
  24. package/dist/cjs/Image/types.cjs +16 -0
  25. package/dist/cjs/ImageBackground/__tests__/index-test.cjs +68 -0
  26. package/dist/cjs/ImageBackground/index.cjs +67 -0
  27. package/dist/cjs/InteractionManager/TaskQueue.cjs +87 -0
  28. package/dist/cjs/InteractionManager/index.cjs +114 -0
  29. package/dist/cjs/Keyboard/index.cjs +38 -0
  30. package/dist/cjs/KeyboardAvoidingView/index.cjs +68 -0
  31. package/dist/cjs/Libraries/Pressability/Pressability.cjs +26 -0
  32. package/dist/cjs/Libraries/Pressability/usePressability.cjs +26 -0
  33. package/dist/cjs/Linking/__tests__/index-test.cjs +40 -0
  34. package/dist/cjs/Linking/index.cjs +89 -0
  35. package/dist/cjs/LogBox/index.cjs +33 -0
  36. package/dist/cjs/Modal/ModalAnimation.cjs +147 -0
  37. package/dist/cjs/Modal/ModalContent.cjs +85 -0
  38. package/dist/cjs/Modal/ModalPortal.cjs +52 -0
  39. package/dist/cjs/Modal/index.cjs +26 -0
  40. package/dist/cjs/NativeModules/index.cjs +29 -0
  41. package/dist/cjs/PanResponder/index.cjs +37 -0
  42. package/dist/cjs/PixelRatio/index.cjs +57 -0
  43. package/dist/cjs/Pressable/index.cjs +144 -0
  44. package/dist/cjs/RefreshControl/index.cjs +49 -0
  45. package/dist/cjs/SafeAreaView/index.cjs +63 -0
  46. package/dist/cjs/ScrollView/ScrollViewBase.cjs +140 -0
  47. package/dist/cjs/ScrollView/index.cjs +589 -0
  48. package/dist/cjs/SectionList.cjs +39 -0
  49. package/dist/cjs/Share/index.cjs +48 -0
  50. package/dist/cjs/StatusBar/index.cjs +36 -0
  51. package/dist/cjs/Text/index.cjs +170 -0
  52. package/dist/cjs/Text/types.cjs +16 -0
  53. package/dist/cjs/TextInput/index.cjs +285 -0
  54. package/dist/cjs/TextInput/types.cjs +16 -0
  55. package/dist/cjs/TouchableNativeFeedback.cjs +26 -0
  56. package/dist/cjs/TouchableOpacity.cjs +116 -0
  57. package/dist/cjs/TouchableWithoutFeedback.cjs +91 -0
  58. package/dist/cjs/UnimplementedView.cjs +47 -0
  59. package/dist/cjs/Vibration/index.cjs +36 -0
  60. package/dist/cjs/View/index.cjs +123 -0
  61. package/dist/cjs/View/types.cjs +16 -0
  62. package/dist/cjs/VirtualizedList.cjs +39 -0
  63. package/dist/cjs/codegenNativeCommand.cjs +28 -0
  64. package/dist/cjs/codegenNativeComponent.cjs +28 -0
  65. package/dist/cjs/createElement/__tests__/index-test.cjs +765 -0
  66. package/dist/cjs/createElement/index.cjs +84 -0
  67. package/dist/cjs/createReactDOMStyle.cjs +28 -0
  68. package/dist/cjs/index.cjs +172 -0
  69. package/dist/cjs/modules/requestIdleCallback.cjs +43 -0
  70. package/dist/cjs/preprocess.cjs +30 -0
  71. package/dist/cjs/render/index.cjs +32 -0
  72. package/dist/cjs/styleTypes.cjs +16 -0
  73. package/dist/cjs/types.cjs +16 -0
  74. package/dist/cjs/useColorScheme/index.cjs +50 -0
  75. package/dist/cjs/useLocaleContext/index.cjs +26 -0
  76. package/dist/cjs/useWindowDimensions/index.cjs +51 -0
  77. package/dist/cjs/vendor/react-native/Animated/Animated.cjs +46 -0
  78. package/dist/cjs/vendor/react-native/Animated/AnimatedEvent.cjs +112 -0
  79. package/dist/cjs/vendor/react-native/Animated/AnimatedImplementation.cjs +508 -0
  80. package/dist/cjs/vendor/react-native/Animated/AnimatedMock.cjs +140 -0
  81. package/dist/cjs/vendor/react-native/Animated/AnimatedPlatformConfig.cjs +1 -0
  82. package/dist/cjs/vendor/react-native/Animated/Easing.cjs +187 -0
  83. package/dist/cjs/vendor/react-native/Animated/NativeAnimatedHelper.cjs +314 -0
  84. package/dist/cjs/vendor/react-native/Animated/NativeAnimatedModule.cjs +78 -0
  85. package/dist/cjs/vendor/react-native/Animated/NativeAnimatedTurboModule.cjs +75 -0
  86. package/dist/cjs/vendor/react-native/Animated/SpringConfig.cjs +78 -0
  87. package/dist/cjs/vendor/react-native/Animated/animations/Animation.cjs +64 -0
  88. package/dist/cjs/vendor/react-native/Animated/animations/DecayAnimation.cjs +71 -0
  89. package/dist/cjs/vendor/react-native/Animated/animations/SpringAnimation.cjs +161 -0
  90. package/dist/cjs/vendor/react-native/Animated/animations/TimingAnimation.cjs +89 -0
  91. package/dist/cjs/vendor/react-native/Animated/bezier.cjs +83 -0
  92. package/dist/cjs/vendor/react-native/Animated/components/AnimatedFlatList.cjs +48 -0
  93. package/dist/cjs/vendor/react-native/Animated/components/AnimatedImage.cjs +31 -0
  94. package/dist/cjs/vendor/react-native/Animated/components/AnimatedScrollView.cjs +48 -0
  95. package/dist/cjs/vendor/react-native/Animated/components/AnimatedSectionList.cjs +48 -0
  96. package/dist/cjs/vendor/react-native/Animated/components/AnimatedText.cjs +30 -0
  97. package/dist/cjs/vendor/react-native/Animated/components/AnimatedView.cjs +30 -0
  98. package/dist/cjs/vendor/react-native/Animated/createAnimatedComponent.cjs +62 -0
  99. package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedAddition.cjs +60 -0
  100. package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedColor.cjs +191 -0
  101. package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedDiffClamp.cjs +64 -0
  102. package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedDivision.cjs +64 -0
  103. package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedInterpolation.cjs +150 -0
  104. package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedModulo.cjs +58 -0
  105. package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedMultiplication.cjs +60 -0
  106. package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedNode.cjs +131 -0
  107. package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedProps.cjs +110 -0
  108. package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedStyle.cjs +104 -0
  109. package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedSubtraction.cjs +60 -0
  110. package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedTracking.cjs +73 -0
  111. package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedTransform.cjs +102 -0
  112. package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedValue.cjs +170 -0
  113. package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedValueXY.cjs +96 -0
  114. package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedWithChildren.cjs +61 -0
  115. package/dist/cjs/vendor/react-native/Animated/useAnimatedProps.cjs +84 -0
  116. package/dist/cjs/vendor/react-native/Batchinator/index.cjs +60 -0
  117. package/dist/cjs/vendor/react-native/EventEmitter/NativeEventEmitter.cjs +61 -0
  118. package/dist/cjs/vendor/react-native/EventEmitter/RCTDeviceEventEmitter.cjs +29 -0
  119. package/dist/cjs/vendor/react-native/FeatureFlags.cjs +33 -0
  120. package/dist/cjs/vendor/react-native/FillRateHelper/index.cjs +139 -0
  121. package/dist/cjs/vendor/react-native/FlatList/index.cjs +263 -0
  122. package/dist/cjs/vendor/react-native/JSEventLoopWatchdog/index.cjs +78 -0
  123. package/dist/cjs/vendor/react-native/LayoutAnimation/index.cjs +112 -0
  124. package/dist/cjs/vendor/react-native/PanResponder/index.cjs +144 -0
  125. package/dist/cjs/vendor/react-native/PooledClass/index.cjs +48 -0
  126. package/dist/cjs/vendor/react-native/ReactNative/ReactNativeFeatureFlags.cjs +34 -0
  127. package/dist/cjs/vendor/react-native/SectionList/index.cjs +104 -0
  128. package/dist/cjs/vendor/react-native/StaticContainer/index.cjs +50 -0
  129. package/dist/cjs/vendor/react-native/StaticRenderer/index.cjs +49 -0
  130. package/dist/cjs/vendor/react-native/TouchHistoryMath/index.cjs +106 -0
  131. package/dist/cjs/vendor/react-native/TurboModule/RCTExport.cjs +34 -0
  132. package/dist/cjs/vendor/react-native/TurboModule/TurboModuleRegistry.cjs +36 -0
  133. package/dist/cjs/vendor/react-native/Types/CoreEventTypes.cjs +156 -0
  134. package/dist/cjs/vendor/react-native/Utilities/Platform.cjs +28 -0
  135. package/dist/cjs/vendor/react-native/Utilities/clamp.cjs +32 -0
  136. package/dist/cjs/vendor/react-native/Utilities/setAndForwardRef.cjs +38 -0
  137. package/dist/cjs/vendor/react-native/Utilities/useMergeRefs.cjs +35 -0
  138. package/dist/cjs/vendor/react-native/Utilities/useRefEffect.cjs +34 -0
  139. package/dist/cjs/vendor/react-native/ViewabilityHelper/index.cjs +143 -0
  140. package/dist/cjs/vendor/react-native/ViewabilityHelper.cjs +134 -0
  141. package/dist/cjs/vendor/react-native/VirtualizeUtils/index.cjs +106 -0
  142. package/dist/cjs/vendor/react-native/VirtualizedList/CellRenderMask.cjs +79 -0
  143. package/dist/cjs/vendor/react-native/VirtualizedList/ChildListCollection.cjs +58 -0
  144. package/dist/cjs/vendor/react-native/VirtualizedList/StateSafePureComponent.cjs +82 -0
  145. package/dist/cjs/vendor/react-native/VirtualizedList/VirtualizedListCellRenderer.cjs +173 -0
  146. package/dist/cjs/vendor/react-native/VirtualizedList/VirtualizedListContext.cjs +85 -0
  147. package/dist/cjs/vendor/react-native/VirtualizedList/VirtualizedListProps.cjs +64 -0
  148. package/dist/cjs/vendor/react-native/VirtualizedList/index.cjs +264 -0
  149. package/dist/cjs/vendor/react-native/VirtualizedSectionList/index.cjs +130 -0
  150. package/dist/cjs/vendor/react-native/deepDiffer/index.cjs +44 -0
  151. package/dist/cjs/vendor/react-native/emitter/EventEmitter.cjs +30 -0
  152. package/dist/cjs/vendor/react-native/emitter/EventSubscription.cjs +1 -0
  153. package/dist/cjs/vendor/react-native/emitter/_EmitterSubscription.cjs +54 -0
  154. package/dist/cjs/vendor/react-native/emitter/_EventEmitter.cjs +125 -0
  155. package/dist/cjs/vendor/react-native/emitter/_EventSubscription.cjs +44 -0
  156. package/dist/cjs/vendor/react-native/emitter/_EventSubscriptionVendor.cjs +82 -0
  157. package/dist/cjs/vendor/react-native/infoLog/index.cjs +32 -0
  158. package/dist/cjs/vendor/react-native/useRefEffect.cjs +34 -0
  159. package/dist/cjs/vendor/react-native/vendor/emitter/EventEmitter.cjs +88 -0
  160. package/dist/cjs/without-animated.cjs +331 -0
  161. package/dist/esm/AccessibilityInfo/index.mjs +74 -0
  162. package/dist/esm/AccessibilityInfo/index.mjs.map +1 -0
  163. package/dist/esm/ActivityIndicator/__tests__/index-test.mjs +167 -0
  164. package/dist/esm/ActivityIndicator/__tests__/index-test.mjs.map +1 -0
  165. package/dist/esm/ActivityIndicator/index.mjs +93 -0
  166. package/dist/esm/ActivityIndicator/index.mjs.map +1 -0
  167. package/dist/esm/Alert/index.mjs +5 -0
  168. package/dist/esm/Alert/index.mjs.map +1 -0
  169. package/dist/esm/AppRegistry/AppContainer.mjs +35 -0
  170. package/dist/esm/AppRegistry/AppContainer.mjs.map +1 -0
  171. package/dist/esm/AppRegistry/__tests__/index-test.mjs +62 -0
  172. package/dist/esm/AppRegistry/__tests__/index-test.mjs.map +1 -0
  173. package/dist/esm/AppRegistry/__tests__/index-test.node.mjs +134 -0
  174. package/dist/esm/AppRegistry/__tests__/index-test.node.mjs.map +1 -0
  175. package/dist/esm/AppRegistry/index.mjs +65 -0
  176. package/dist/esm/AppRegistry/index.mjs.map +1 -0
  177. package/dist/esm/AppRegistry/renderApplication.mjs +45 -0
  178. package/dist/esm/AppRegistry/renderApplication.mjs.map +1 -0
  179. package/dist/esm/AppState/__tests__/index-test.mjs +13 -0
  180. package/dist/esm/AppState/__tests__/index-test.mjs.map +1 -0
  181. package/dist/esm/AppState/index.mjs +46 -0
  182. package/dist/esm/AppState/index.mjs.map +1 -0
  183. package/dist/esm/Appearance/index.mjs +30 -0
  184. package/dist/esm/Appearance/index.mjs.map +1 -0
  185. package/dist/esm/BackHandler/index.mjs +12 -0
  186. package/dist/esm/BackHandler/index.mjs.map +1 -0
  187. package/dist/esm/Clipboard/index.mjs +28 -0
  188. package/dist/esm/Clipboard/index.mjs.map +1 -0
  189. package/dist/esm/DeviceEmitter.mjs +4 -0
  190. package/dist/esm/DeviceEmitter.mjs.map +1 -0
  191. package/dist/esm/DeviceInfo/index.mjs +45 -0
  192. package/dist/esm/DeviceInfo/index.mjs.map +1 -0
  193. package/dist/esm/Dimensions/__tests__/index-test.mjs +33 -0
  194. package/dist/esm/Dimensions/__tests__/index-test.mjs.map +1 -0
  195. package/dist/esm/Dimensions/index.mjs +58 -0
  196. package/dist/esm/Dimensions/index.mjs.map +1 -0
  197. package/dist/esm/FlatList.mjs +162 -0
  198. package/dist/esm/FlatList.mjs.map +1 -0
  199. package/dist/esm/I18nManager/index.mjs +11 -0
  200. package/dist/esm/I18nManager/index.mjs.map +1 -0
  201. package/dist/esm/Image/index.mjs +258 -0
  202. package/dist/esm/Image/index.mjs.map +1 -0
  203. package/dist/esm/Image/types.mjs +2 -0
  204. package/dist/esm/Image/types.mjs.map +1 -0
  205. package/dist/esm/ImageBackground/__tests__/index-test.mjs +47 -0
  206. package/dist/esm/ImageBackground/__tests__/index-test.mjs.map +1 -0
  207. package/dist/esm/ImageBackground/index.mjs +43 -0
  208. package/dist/esm/ImageBackground/index.mjs.map +1 -0
  209. package/dist/esm/InteractionManager/TaskQueue.mjs +64 -0
  210. package/dist/esm/InteractionManager/TaskQueue.mjs.map +1 -0
  211. package/dist/esm/InteractionManager/index.mjs +80 -0
  212. package/dist/esm/InteractionManager/index.mjs.map +1 -0
  213. package/dist/esm/Keyboard/index.mjs +15 -0
  214. package/dist/esm/Keyboard/index.mjs.map +1 -0
  215. package/dist/esm/KeyboardAvoidingView/index.mjs +33 -0
  216. package/dist/esm/KeyboardAvoidingView/index.mjs.map +1 -0
  217. package/dist/esm/Libraries/Pressability/Pressability.mjs +3 -0
  218. package/dist/esm/Libraries/Pressability/Pressability.mjs.map +1 -0
  219. package/dist/esm/Libraries/Pressability/usePressability.mjs +3 -0
  220. package/dist/esm/Libraries/Pressability/usePressability.mjs.map +1 -0
  221. package/dist/esm/Linking/__tests__/index-test.mjs +19 -0
  222. package/dist/esm/Linking/__tests__/index-test.mjs.map +1 -0
  223. package/dist/esm/Linking/index.mjs +66 -0
  224. package/dist/esm/Linking/index.mjs.map +1 -0
  225. package/dist/esm/LogBox/index.mjs +9 -0
  226. package/dist/esm/LogBox/index.mjs.map +1 -0
  227. package/dist/esm/Modal/ModalAnimation.mjs +113 -0
  228. package/dist/esm/Modal/ModalAnimation.mjs.map +1 -0
  229. package/dist/esm/Modal/ModalContent.mjs +51 -0
  230. package/dist/esm/Modal/ModalContent.mjs.map +1 -0
  231. package/dist/esm/Modal/ModalPortal.mjs +18 -0
  232. package/dist/esm/Modal/ModalPortal.mjs.map +1 -0
  233. package/dist/esm/Modal/index.mjs +3 -0
  234. package/dist/esm/Modal/index.mjs.map +1 -0
  235. package/dist/esm/NativeModules/index.mjs +6 -0
  236. package/dist/esm/NativeModules/index.mjs.map +1 -0
  237. package/dist/esm/PanResponder/index.mjs +3 -0
  238. package/dist/esm/PanResponder/index.mjs.map +1 -0
  239. package/dist/esm/PixelRatio/index.mjs +34 -0
  240. package/dist/esm/PixelRatio/index.mjs.map +1 -0
  241. package/dist/esm/Pressable/index.mjs +107 -0
  242. package/dist/esm/Pressable/index.mjs.map +1 -0
  243. package/dist/esm/RefreshControl/index.mjs +25 -0
  244. package/dist/esm/RefreshControl/index.mjs.map +1 -0
  245. package/dist/esm/SafeAreaView/index.mjs +28 -0
  246. package/dist/esm/SafeAreaView/index.mjs.map +1 -0
  247. package/dist/esm/ScrollView/ScrollViewBase.mjs +105 -0
  248. package/dist/esm/ScrollView/ScrollViewBase.mjs.map +1 -0
  249. package/dist/esm/ScrollView/index.mjs +554 -0
  250. package/dist/esm/ScrollView/index.mjs.map +1 -0
  251. package/dist/esm/SectionList.mjs +4 -0
  252. package/dist/esm/SectionList.mjs.map +1 -0
  253. package/dist/esm/Share/index.mjs +25 -0
  254. package/dist/esm/Share/index.mjs.map +1 -0
  255. package/dist/esm/StatusBar/index.mjs +12 -0
  256. package/dist/esm/StatusBar/index.mjs.map +1 -0
  257. package/dist/esm/Text/index.mjs +135 -0
  258. package/dist/esm/Text/index.mjs.map +1 -0
  259. package/dist/esm/Text/types.mjs +2 -0
  260. package/dist/esm/Text/types.mjs.map +1 -0
  261. package/dist/esm/TextInput/index.mjs +250 -0
  262. package/dist/esm/TextInput/index.mjs.map +1 -0
  263. package/dist/esm/TextInput/types.mjs +2 -0
  264. package/dist/esm/TextInput/types.mjs.map +1 -0
  265. package/dist/esm/TouchableNativeFeedback.mjs +3 -0
  266. package/dist/esm/TouchableNativeFeedback.mjs.map +1 -0
  267. package/dist/esm/TouchableOpacity.mjs +80 -0
  268. package/dist/esm/TouchableOpacity.mjs.map +1 -0
  269. package/dist/esm/TouchableWithoutFeedback.mjs +57 -0
  270. package/dist/esm/TouchableWithoutFeedback.mjs.map +1 -0
  271. package/dist/esm/UnimplementedView.mjs +13 -0
  272. package/dist/esm/UnimplementedView.mjs.map +1 -0
  273. package/dist/esm/Vibration/index.mjs +13 -0
  274. package/dist/esm/Vibration/index.mjs.map +1 -0
  275. package/dist/esm/View/index.mjs +88 -0
  276. package/dist/esm/View/index.mjs.map +1 -0
  277. package/dist/esm/View/types.mjs +2 -0
  278. package/dist/esm/View/types.mjs.map +1 -0
  279. package/dist/esm/VirtualizedList.mjs +4 -0
  280. package/dist/esm/VirtualizedList.mjs.map +1 -0
  281. package/dist/esm/codegenNativeCommand.mjs +5 -0
  282. package/dist/esm/codegenNativeCommand.mjs.map +1 -0
  283. package/dist/esm/codegenNativeComponent.mjs +5 -0
  284. package/dist/esm/codegenNativeComponent.mjs.map +1 -0
  285. package/dist/esm/createElement/__tests__/index-test.mjs +744 -0
  286. package/dist/esm/createElement/__tests__/index-test.mjs.map +1 -0
  287. package/dist/esm/createElement/index.mjs +49 -0
  288. package/dist/esm/createElement/index.mjs.map +1 -0
  289. package/dist/esm/createReactDOMStyle.mjs +4 -0
  290. package/dist/esm/createReactDOMStyle.mjs.map +1 -0
  291. package/dist/esm/index.js +61 -0
  292. package/dist/esm/index.js.map +1 -0
  293. package/dist/esm/index.mjs +61 -0
  294. package/dist/esm/index.mjs.map +1 -0
  295. package/dist/esm/modules/requestIdleCallback.mjs +19 -0
  296. package/dist/esm/modules/requestIdleCallback.mjs.map +1 -0
  297. package/dist/esm/preprocess.mjs +3 -0
  298. package/dist/esm/preprocess.mjs.map +1 -0
  299. package/dist/esm/render/index.mjs +6 -0
  300. package/dist/esm/render/index.mjs.map +1 -0
  301. package/dist/esm/styleTypes.mjs +2 -0
  302. package/dist/esm/styleTypes.mjs.map +1 -0
  303. package/dist/esm/types.mjs +2 -0
  304. package/dist/esm/types.mjs.map +1 -0
  305. package/dist/esm/useColorScheme/index.mjs +16 -0
  306. package/dist/esm/useColorScheme/index.mjs.map +1 -0
  307. package/dist/esm/useLocaleContext/index.mjs +3 -0
  308. package/dist/esm/useLocaleContext/index.mjs.map +1 -0
  309. package/dist/esm/useWindowDimensions/index.mjs +17 -0
  310. package/dist/esm/useWindowDimensions/index.mjs.map +1 -0
  311. package/dist/esm/vendor/react-native/Animated/Animated.mjs +22 -0
  312. package/dist/esm/vendor/react-native/Animated/Animated.mjs.map +1 -0
  313. package/dist/esm/vendor/react-native/Animated/AnimatedEvent.mjs +86 -0
  314. package/dist/esm/vendor/react-native/Animated/AnimatedEvent.mjs.map +1 -0
  315. package/dist/esm/vendor/react-native/Animated/AnimatedImplementation.mjs +481 -0
  316. package/dist/esm/vendor/react-native/Animated/AnimatedImplementation.mjs.map +1 -0
  317. package/dist/esm/vendor/react-native/Animated/AnimatedMock.mjs +113 -0
  318. package/dist/esm/vendor/react-native/Animated/AnimatedMock.mjs.map +1 -0
  319. package/dist/esm/vendor/react-native/Animated/AnimatedPlatformConfig.mjs +2 -0
  320. package/dist/esm/vendor/react-native/Animated/AnimatedPlatformConfig.mjs.map +1 -0
  321. package/dist/esm/vendor/react-native/Animated/Easing.mjs +161 -0
  322. package/dist/esm/vendor/react-native/Animated/Easing.mjs.map +1 -0
  323. package/dist/esm/vendor/react-native/Animated/NativeAnimatedHelper.mjs +274 -0
  324. package/dist/esm/vendor/react-native/Animated/NativeAnimatedHelper.mjs.map +1 -0
  325. package/dist/esm/vendor/react-native/Animated/NativeAnimatedModule.mjs +38 -0
  326. package/dist/esm/vendor/react-native/Animated/NativeAnimatedModule.mjs.map +1 -0
  327. package/dist/esm/vendor/react-native/Animated/NativeAnimatedTurboModule.mjs +35 -0
  328. package/dist/esm/vendor/react-native/Animated/NativeAnimatedTurboModule.mjs.map +1 -0
  329. package/dist/esm/vendor/react-native/Animated/SpringConfig.mjs +54 -0
  330. package/dist/esm/vendor/react-native/Animated/SpringConfig.mjs.map +1 -0
  331. package/dist/esm/vendor/react-native/Animated/animations/Animation.mjs +38 -0
  332. package/dist/esm/vendor/react-native/Animated/animations/Animation.mjs.map +1 -0
  333. package/dist/esm/vendor/react-native/Animated/animations/DecayAnimation.mjs +45 -0
  334. package/dist/esm/vendor/react-native/Animated/animations/DecayAnimation.mjs.map +1 -0
  335. package/dist/esm/vendor/react-native/Animated/animations/SpringAnimation.mjs +135 -0
  336. package/dist/esm/vendor/react-native/Animated/animations/SpringAnimation.mjs.map +1 -0
  337. package/dist/esm/vendor/react-native/Animated/animations/TimingAnimation.mjs +65 -0
  338. package/dist/esm/vendor/react-native/Animated/animations/TimingAnimation.mjs.map +1 -0
  339. package/dist/esm/vendor/react-native/Animated/bezier.mjs +57 -0
  340. package/dist/esm/vendor/react-native/Animated/bezier.mjs.map +1 -0
  341. package/dist/esm/vendor/react-native/Animated/components/AnimatedFlatList.mjs +13 -0
  342. package/dist/esm/vendor/react-native/Animated/components/AnimatedFlatList.mjs.map +1 -0
  343. package/dist/esm/vendor/react-native/Animated/components/AnimatedImage.mjs +7 -0
  344. package/dist/esm/vendor/react-native/Animated/components/AnimatedImage.mjs.map +1 -0
  345. package/dist/esm/vendor/react-native/Animated/components/AnimatedScrollView.mjs +13 -0
  346. package/dist/esm/vendor/react-native/Animated/components/AnimatedScrollView.mjs.map +1 -0
  347. package/dist/esm/vendor/react-native/Animated/components/AnimatedSectionList.mjs +13 -0
  348. package/dist/esm/vendor/react-native/Animated/components/AnimatedSectionList.mjs.map +1 -0
  349. package/dist/esm/vendor/react-native/Animated/components/AnimatedText.mjs +6 -0
  350. package/dist/esm/vendor/react-native/Animated/components/AnimatedText.mjs.map +1 -0
  351. package/dist/esm/vendor/react-native/Animated/components/AnimatedView.mjs +6 -0
  352. package/dist/esm/vendor/react-native/Animated/components/AnimatedView.mjs.map +1 -0
  353. package/dist/esm/vendor/react-native/Animated/createAnimatedComponent.mjs +27 -0
  354. package/dist/esm/vendor/react-native/Animated/createAnimatedComponent.mjs.map +1 -0
  355. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedAddition.mjs +34 -0
  356. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedAddition.mjs.map +1 -0
  357. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedColor.mjs +167 -0
  358. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedColor.mjs.map +1 -0
  359. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedDiffClamp.mjs +40 -0
  360. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedDiffClamp.mjs.map +1 -0
  361. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedDivision.mjs +38 -0
  362. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedDivision.mjs.map +1 -0
  363. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedInterpolation.mjs +124 -0
  364. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedInterpolation.mjs.map +1 -0
  365. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedModulo.mjs +34 -0
  366. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedModulo.mjs.map +1 -0
  367. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedMultiplication.mjs +34 -0
  368. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedMultiplication.mjs.map +1 -0
  369. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedNode.mjs +105 -0
  370. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedNode.mjs.map +1 -0
  371. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedProps.mjs +86 -0
  372. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedProps.mjs.map +1 -0
  373. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedStyle.mjs +80 -0
  374. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedStyle.mjs.map +1 -0
  375. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedSubtraction.mjs +34 -0
  376. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedSubtraction.mjs.map +1 -0
  377. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedTracking.mjs +49 -0
  378. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedTracking.mjs.map +1 -0
  379. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedTransform.mjs +76 -0
  380. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedTransform.mjs.map +1 -0
  381. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedValue.mjs +144 -0
  382. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedValue.mjs.map +1 -0
  383. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedValueXY.mjs +72 -0
  384. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedValueXY.mjs.map +1 -0
  385. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedWithChildren.mjs +35 -0
  386. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedWithChildren.mjs.map +1 -0
  387. package/dist/esm/vendor/react-native/Animated/useAnimatedProps.mjs +58 -0
  388. package/dist/esm/vendor/react-native/Animated/useAnimatedProps.mjs.map +1 -0
  389. package/dist/esm/vendor/react-native/Batchinator/index.mjs +34 -0
  390. package/dist/esm/vendor/react-native/Batchinator/index.mjs.map +1 -0
  391. package/dist/esm/vendor/react-native/EventEmitter/NativeEventEmitter.mjs +35 -0
  392. package/dist/esm/vendor/react-native/EventEmitter/NativeEventEmitter.mjs.map +1 -0
  393. package/dist/esm/vendor/react-native/EventEmitter/RCTDeviceEventEmitter.mjs +5 -0
  394. package/dist/esm/vendor/react-native/EventEmitter/RCTDeviceEventEmitter.mjs.map +1 -0
  395. package/dist/esm/vendor/react-native/FeatureFlags.mjs +10 -0
  396. package/dist/esm/vendor/react-native/FeatureFlags.mjs.map +1 -0
  397. package/dist/esm/vendor/react-native/FillRateHelper/index.mjs +115 -0
  398. package/dist/esm/vendor/react-native/FillRateHelper/index.mjs.map +1 -0
  399. package/dist/esm/vendor/react-native/FlatList/index.mjs +228 -0
  400. package/dist/esm/vendor/react-native/FlatList/index.mjs.map +1 -0
  401. package/dist/esm/vendor/react-native/JSEventLoopWatchdog/index.mjs +52 -0
  402. package/dist/esm/vendor/react-native/JSEventLoopWatchdog/index.mjs.map +1 -0
  403. package/dist/esm/vendor/react-native/LayoutAnimation/index.mjs +86 -0
  404. package/dist/esm/vendor/react-native/LayoutAnimation/index.mjs.map +1 -0
  405. package/dist/esm/vendor/react-native/PanResponder/index.mjs +109 -0
  406. package/dist/esm/vendor/react-native/PanResponder/index.mjs.map +1 -0
  407. package/dist/esm/vendor/react-native/PooledClass/index.mjs +24 -0
  408. package/dist/esm/vendor/react-native/PooledClass/index.mjs.map +1 -0
  409. package/dist/esm/vendor/react-native/ReactNative/ReactNativeFeatureFlags.mjs +10 -0
  410. package/dist/esm/vendor/react-native/ReactNative/ReactNativeFeatureFlags.mjs.map +1 -0
  411. package/dist/esm/vendor/react-native/SectionList/index.mjs +69 -0
  412. package/dist/esm/vendor/react-native/SectionList/index.mjs.map +1 -0
  413. package/dist/esm/vendor/react-native/StaticContainer/index.mjs +13 -0
  414. package/dist/esm/vendor/react-native/StaticContainer/index.mjs.map +1 -0
  415. package/dist/esm/vendor/react-native/StaticRenderer/index.mjs +12 -0
  416. package/dist/esm/vendor/react-native/StaticRenderer/index.mjs.map +1 -0
  417. package/dist/esm/vendor/react-native/TouchHistoryMath/index.mjs +82 -0
  418. package/dist/esm/vendor/react-native/TouchHistoryMath/index.mjs.map +1 -0
  419. package/dist/esm/vendor/react-native/TurboModule/RCTExport.mjs +8 -0
  420. package/dist/esm/vendor/react-native/TurboModule/RCTExport.mjs.map +1 -0
  421. package/dist/esm/vendor/react-native/TurboModule/TurboModuleRegistry.mjs +10 -0
  422. package/dist/esm/vendor/react-native/TurboModule/TurboModuleRegistry.mjs.map +1 -0
  423. package/dist/esm/vendor/react-native/Types/CoreEventTypes.mjs +126 -0
  424. package/dist/esm/vendor/react-native/Types/CoreEventTypes.mjs.map +1 -0
  425. package/dist/esm/vendor/react-native/Utilities/Platform.mjs +4 -0
  426. package/dist/esm/vendor/react-native/Utilities/Platform.mjs.map +1 -0
  427. package/dist/esm/vendor/react-native/Utilities/clamp.mjs +6 -0
  428. package/dist/esm/vendor/react-native/Utilities/clamp.mjs.map +1 -0
  429. package/dist/esm/vendor/react-native/Utilities/setAndForwardRef.mjs +12 -0
  430. package/dist/esm/vendor/react-native/Utilities/setAndForwardRef.mjs.map +1 -0
  431. package/dist/esm/vendor/react-native/Utilities/useMergeRefs.mjs +11 -0
  432. package/dist/esm/vendor/react-native/Utilities/useMergeRefs.mjs.map +1 -0
  433. package/dist/esm/vendor/react-native/Utilities/useRefEffect.mjs +10 -0
  434. package/dist/esm/vendor/react-native/Utilities/useRefEffect.mjs.map +1 -0
  435. package/dist/esm/vendor/react-native/ViewabilityHelper/index.mjs +117 -0
  436. package/dist/esm/vendor/react-native/ViewabilityHelper/index.mjs.map +1 -0
  437. package/dist/esm/vendor/react-native/ViewabilityHelper.mjs +110 -0
  438. package/dist/esm/vendor/react-native/ViewabilityHelper.mjs.map +1 -0
  439. package/dist/esm/vendor/react-native/VirtualizeUtils/index.mjs +80 -0
  440. package/dist/esm/vendor/react-native/VirtualizeUtils/index.mjs.map +1 -0
  441. package/dist/esm/vendor/react-native/VirtualizedList/CellRenderMask.mjs +56 -0
  442. package/dist/esm/vendor/react-native/VirtualizedList/CellRenderMask.mjs.map +1 -0
  443. package/dist/esm/vendor/react-native/VirtualizedList/ChildListCollection.mjs +34 -0
  444. package/dist/esm/vendor/react-native/VirtualizedList/ChildListCollection.mjs.map +1 -0
  445. package/dist/esm/vendor/react-native/VirtualizedList/StateSafePureComponent.mjs +47 -0
  446. package/dist/esm/vendor/react-native/VirtualizedList/StateSafePureComponent.mjs.map +1 -0
  447. package/dist/esm/vendor/react-native/VirtualizedList/VirtualizedListCellRenderer.mjs +138 -0
  448. package/dist/esm/vendor/react-native/VirtualizedList/VirtualizedListCellRenderer.mjs.map +1 -0
  449. package/dist/esm/vendor/react-native/VirtualizedList/VirtualizedListContext.mjs +48 -0
  450. package/dist/esm/vendor/react-native/VirtualizedList/VirtualizedListContext.mjs.map +1 -0
  451. package/dist/esm/vendor/react-native/VirtualizedList/VirtualizedListProps.mjs +40 -0
  452. package/dist/esm/vendor/react-native/VirtualizedList/VirtualizedListProps.mjs.map +1 -0
  453. package/dist/esm/vendor/react-native/VirtualizedList/index.mjs +240 -0
  454. package/dist/esm/vendor/react-native/VirtualizedList/index.mjs.map +1 -0
  455. package/dist/esm/vendor/react-native/VirtualizedSectionList/index.mjs +95 -0
  456. package/dist/esm/vendor/react-native/VirtualizedSectionList/index.mjs.map +1 -0
  457. package/dist/esm/vendor/react-native/deepDiffer/index.mjs +18 -0
  458. package/dist/esm/vendor/react-native/deepDiffer/index.mjs.map +1 -0
  459. package/dist/esm/vendor/react-native/emitter/EventEmitter.mjs +4 -0
  460. package/dist/esm/vendor/react-native/emitter/EventEmitter.mjs.map +1 -0
  461. package/dist/esm/vendor/react-native/emitter/EventSubscription.mjs +2 -0
  462. package/dist/esm/vendor/react-native/emitter/EventSubscription.mjs.map +1 -0
  463. package/dist/esm/vendor/react-native/emitter/_EmitterSubscription.mjs +28 -0
  464. package/dist/esm/vendor/react-native/emitter/_EmitterSubscription.mjs.map +1 -0
  465. package/dist/esm/vendor/react-native/emitter/_EventEmitter.mjs +101 -0
  466. package/dist/esm/vendor/react-native/emitter/_EventEmitter.mjs.map +1 -0
  467. package/dist/esm/vendor/react-native/emitter/_EventSubscription.mjs +18 -0
  468. package/dist/esm/vendor/react-native/emitter/_EventSubscription.mjs.map +1 -0
  469. package/dist/esm/vendor/react-native/emitter/_EventSubscriptionVendor.mjs +56 -0
  470. package/dist/esm/vendor/react-native/emitter/_EventSubscriptionVendor.mjs.map +1 -0
  471. package/dist/esm/vendor/react-native/infoLog/index.mjs +6 -0
  472. package/dist/esm/vendor/react-native/infoLog/index.mjs.map +1 -0
  473. package/dist/esm/vendor/react-native/useRefEffect.mjs +10 -0
  474. package/dist/esm/vendor/react-native/useRefEffect.mjs.map +1 -0
  475. package/dist/esm/vendor/react-native/vendor/emitter/EventEmitter.mjs +62 -0
  476. package/dist/esm/vendor/react-native/vendor/emitter/EventEmitter.mjs.map +1 -0
  477. package/dist/esm/without-animated.mjs +219 -0
  478. package/dist/esm/without-animated.mjs.map +1 -0
  479. package/package.json +125 -0
  480. package/src/AccessibilityInfo/index.tsx +113 -0
  481. package/src/ActivityIndicator/__tests__/__snapshots__/index-test.js.snap +466 -0
  482. package/src/ActivityIndicator/__tests__/index-test.tsx +147 -0
  483. package/src/ActivityIndicator/index.tsx +116 -0
  484. package/src/Alert/index.tsx +12 -0
  485. package/src/AppRegistry/AppContainer.tsx +54 -0
  486. package/src/AppRegistry/__tests__/index-test.node.tsx +144 -0
  487. package/src/AppRegistry/__tests__/index-test.tsx +94 -0
  488. package/src/AppRegistry/index.tsx +156 -0
  489. package/src/AppRegistry/renderApplication.tsx +75 -0
  490. package/src/AppState/__tests__/index-test.tsx +24 -0
  491. package/src/AppState/index.tsx +92 -0
  492. package/src/Appearance/index.tsx +59 -0
  493. package/src/BackHandler/index.tsx +23 -0
  494. package/src/Clipboard/index.tsx +61 -0
  495. package/src/DeviceEmitter.ts +3 -0
  496. package/src/DeviceInfo/index.tsx +55 -0
  497. package/src/Dimensions/__tests__/index-test.tsx +54 -0
  498. package/src/Dimensions/index.tsx +129 -0
  499. package/src/FlatList.tsx +331 -0
  500. package/src/I18nManager/index.tsx +31 -0
  501. package/src/Image/index.tsx +401 -0
  502. package/src/Image/types.tsx +112 -0
  503. package/src/ImageBackground/__tests__/index-test.tsx +49 -0
  504. package/src/ImageBackground/index.tsx +66 -0
  505. package/src/InteractionManager/TaskQueue.tsx +112 -0
  506. package/src/InteractionManager/index.tsx +140 -0
  507. package/src/Keyboard/index.tsx +24 -0
  508. package/src/KeyboardAvoidingView/index.tsx +55 -0
  509. package/src/Libraries/Pressability/Pressability.ts +2 -0
  510. package/src/Libraries/Pressability/usePressability.ts +2 -0
  511. package/src/Linking/__tests__/index-test.tsx +37 -0
  512. package/src/Linking/index.tsx +113 -0
  513. package/src/LogBox/index.tsx +17 -0
  514. package/src/Modal/ModalAnimation.js +178 -0
  515. package/src/Modal/ModalContent.js +73 -0
  516. package/src/Modal/ModalPortal.js +40 -0
  517. package/src/Modal/index.js +1 -0
  518. package/src/NativeModules/index.tsx +15 -0
  519. package/src/PanResponder/Alternative.tsx +385 -0
  520. package/src/PanResponder/index.tsx +1 -0
  521. package/src/PixelRatio/index.tsx +49 -0
  522. package/src/Pressable/__tests__/__snapshots__/index-test.js.snap +196 -0
  523. package/src/Pressable/index.tsx +236 -0
  524. package/src/RefreshControl/index.tsx +50 -0
  525. package/src/SafeAreaView/index.tsx +48 -0
  526. package/src/ScrollView/ScrollViewBase.tsx +183 -0
  527. package/src/ScrollView/__tests__/__snapshots__/index-test.js.snap +49 -0
  528. package/src/ScrollView/index.tsx +892 -0
  529. package/src/SectionList.tsx +9 -0
  530. package/src/Share/index.tsx +69 -0
  531. package/src/StatusBar/index.tsx +22 -0
  532. package/src/Text/__tests__/__snapshots__/index-test.js.snap +218 -0
  533. package/src/Text/index.tsx +208 -0
  534. package/src/Text/types.tsx +96 -0
  535. package/src/TextInput/index.tsx +453 -0
  536. package/src/TextInput/types.tsx +74 -0
  537. package/src/TouchableNativeFeedback.tsx +8 -0
  538. package/src/TouchableOpacity.tsx +150 -0
  539. package/src/TouchableWithoutFeedback.tsx +95 -0
  540. package/src/UnimplementedView.tsx +13 -0
  541. package/src/Vibration/index.tsx +26 -0
  542. package/src/View/index.tsx +139 -0
  543. package/src/View/types.tsx +170 -0
  544. package/src/VirtualizedList.tsx +9 -0
  545. package/src/codegenNativeCommand.ts +6 -0
  546. package/src/codegenNativeComponent.ts +6 -0
  547. package/src/createElement/__tests__/__snapshots__/index-test.js.snap +13 -0
  548. package/src/createElement/__tests__/index-test.tsx +647 -0
  549. package/src/createElement/index.tsx +92 -0
  550. package/src/createReactDOMStyle.ts +4 -0
  551. package/src/index.tsx +111 -0
  552. package/src/modules/requestIdleCallback.ts +32 -0
  553. package/src/preprocess.ts +7 -0
  554. package/src/render/index.tsx +16 -0
  555. package/src/styleTypes.ts +321 -0
  556. package/src/types.ts +77 -0
  557. package/src/useColorScheme/index.tsx +28 -0
  558. package/src/useLocaleContext/index.tsx +10 -0
  559. package/src/useWindowDimensions/index.tsx +34 -0
  560. package/src/vendor/react-native/Animated/Animated.js +33 -0
  561. package/src/vendor/react-native/Animated/AnimatedEvent.js +199 -0
  562. package/src/vendor/react-native/Animated/AnimatedImplementation.js +649 -0
  563. package/src/vendor/react-native/Animated/AnimatedMock.js +155 -0
  564. package/src/vendor/react-native/Animated/AnimatedPlatformConfig.js +11 -0
  565. package/src/vendor/react-native/Animated/Easing.js +249 -0
  566. package/src/vendor/react-native/Animated/NativeAnimatedHelper.js +525 -0
  567. package/src/vendor/react-native/Animated/NativeAnimatedModule.js +57 -0
  568. package/src/vendor/react-native/Animated/NativeAnimatedTurboModule.js +53 -0
  569. package/src/vendor/react-native/Animated/SpringConfig.js +88 -0
  570. package/src/vendor/react-native/Animated/animations/Animation.js +66 -0
  571. package/src/vendor/react-native/Animated/animations/DecayAnimation.js +88 -0
  572. package/src/vendor/react-native/Animated/animations/SpringAnimation.js +291 -0
  573. package/src/vendor/react-native/Animated/animations/TimingAnimation.js +133 -0
  574. package/src/vendor/react-native/Animated/bezier.js +142 -0
  575. package/src/vendor/react-native/Animated/components/AnimatedFlatList.jsx +24 -0
  576. package/src/vendor/react-native/Animated/components/AnimatedImage.js +17 -0
  577. package/src/vendor/react-native/Animated/components/AnimatedScrollView.jsx +24 -0
  578. package/src/vendor/react-native/Animated/components/AnimatedSectionList.jsx +24 -0
  579. package/src/vendor/react-native/Animated/components/AnimatedText.js +15 -0
  580. package/src/vendor/react-native/Animated/components/AnimatedView.js +15 -0
  581. package/src/vendor/react-native/Animated/createAnimatedComponent.jsx +39 -0
  582. package/src/vendor/react-native/Animated/nodes/AnimatedAddition.js +60 -0
  583. package/src/vendor/react-native/Animated/nodes/AnimatedColor.js +293 -0
  584. package/src/vendor/react-native/Animated/nodes/AnimatedDiffClamp.js +67 -0
  585. package/src/vendor/react-native/Animated/nodes/AnimatedDivision.js +78 -0
  586. package/src/vendor/react-native/Animated/nodes/AnimatedInterpolation.jsx +327 -0
  587. package/src/vendor/react-native/Animated/nodes/AnimatedModulo.js +56 -0
  588. package/src/vendor/react-native/Animated/nodes/AnimatedMultiplication.js +59 -0
  589. package/src/vendor/react-native/Animated/nodes/AnimatedNode.js +190 -0
  590. package/src/vendor/react-native/Animated/nodes/AnimatedProps.js +160 -0
  591. package/src/vendor/react-native/Animated/nodes/AnimatedStyle.js +137 -0
  592. package/src/vendor/react-native/Animated/nodes/AnimatedSubtraction.js +60 -0
  593. package/src/vendor/react-native/Animated/nodes/AnimatedTracking.js +90 -0
  594. package/src/vendor/react-native/Animated/nodes/AnimatedTransform.js +122 -0
  595. package/src/vendor/react-native/Animated/nodes/AnimatedValue.js +292 -0
  596. package/src/vendor/react-native/Animated/nodes/AnimatedValueXY.js +108 -0
  597. package/src/vendor/react-native/Animated/nodes/AnimatedWithChildren.js +89 -0
  598. package/src/vendor/react-native/Animated/useAnimatedProps.js +173 -0
  599. package/src/vendor/react-native/Batchinator/index.js +77 -0
  600. package/src/vendor/react-native/EventEmitter/NativeEventEmitter.js +85 -0
  601. package/src/vendor/react-native/EventEmitter/RCTDeviceEventEmitter.js +22 -0
  602. package/src/vendor/react-native/FeatureFlags.js +8 -0
  603. package/src/vendor/react-native/FillRateHelper/index.js +213 -0
  604. package/src/vendor/react-native/FlatList/index.jsx +518 -0
  605. package/src/vendor/react-native/JSEventLoopWatchdog/index.js +85 -0
  606. package/src/vendor/react-native/LayoutAnimation/index.js +119 -0
  607. package/src/vendor/react-native/PanResponder/index.js +243 -0
  608. package/src/vendor/react-native/PooledClass/index.js +62 -0
  609. package/src/vendor/react-native/ReactNative/ReactNativeFeatureFlags.js +20 -0
  610. package/src/vendor/react-native/SHA +2 -0
  611. package/src/vendor/react-native/SectionList/index.jsx +100 -0
  612. package/src/vendor/react-native/StaticContainer/index.js +43 -0
  613. package/src/vendor/react-native/StaticRenderer/index.js +26 -0
  614. package/src/vendor/react-native/TouchHistoryMath/index.js +137 -0
  615. package/src/vendor/react-native/TurboModule/RCTExport.js +37 -0
  616. package/src/vendor/react-native/TurboModule/TurboModuleRegistry.js +27 -0
  617. package/src/vendor/react-native/Types/CoreEventTypes.js +151 -0
  618. package/src/vendor/react-native/Utilities/Platform.js +3 -0
  619. package/src/vendor/react-native/Utilities/clamp.js +24 -0
  620. package/src/vendor/react-native/Utilities/setAndForwardRef.js +62 -0
  621. package/src/vendor/react-native/Utilities/useMergeRefs.js +40 -0
  622. package/src/vendor/react-native/Utilities/useRefEffect.js +44 -0
  623. package/src/vendor/react-native/ViewabilityHelper/index.js +251 -0
  624. package/src/vendor/react-native/ViewabilityHelper.ts +293 -0
  625. package/src/vendor/react-native/VirtualizeUtils/index.js +204 -0
  626. package/src/vendor/react-native/VirtualizedList/CellRenderMask.js +135 -0
  627. package/src/vendor/react-native/VirtualizedList/ChildListCollection.js +75 -0
  628. package/src/vendor/react-native/VirtualizedList/StateSafePureComponent.js +82 -0
  629. package/src/vendor/react-native/VirtualizedList/VirtualizedListCellRenderer.jsx +184 -0
  630. package/src/vendor/react-native/VirtualizedList/VirtualizedListContext.jsx +96 -0
  631. package/src/vendor/react-native/VirtualizedList/VirtualizedListProps.js +46 -0
  632. package/src/vendor/react-native/VirtualizedList/index.jsx +378 -0
  633. package/src/vendor/react-native/VirtualizedSectionList/index.jsx +149 -0
  634. package/src/vendor/react-native/deepDiffer/index.js +69 -0
  635. package/src/vendor/react-native/emitter/EventEmitter.js +14 -0
  636. package/src/vendor/react-native/emitter/EventSubscription.js +12 -0
  637. package/src/vendor/react-native/emitter/_EmitterSubscription.js +47 -0
  638. package/src/vendor/react-native/emitter/_EventEmitter.js +175 -0
  639. package/src/vendor/react-native/emitter/_EventSubscription.js +34 -0
  640. package/src/vendor/react-native/emitter/_EventSubscriptionVendor.js +96 -0
  641. package/src/vendor/react-native/infoLog/index.js +21 -0
  642. package/src/vendor/react-native/useRefEffect.js +44 -0
  643. package/src/vendor/react-native/vendor/emitter/EventEmitter.js +121 -0
  644. package/src/without-animated.tsx +288 -0
@@ -0,0 +1,142 @@
1
+ /**
2
+ * Portions Copyright (c) Meta Platforms, Inc. and affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ * @format
8
+ * @format
9
+ */
10
+
11
+ /**
12
+ * BezierEasing - use bezier curve for transition easing function
13
+ * https://github.com/gre/bezier-easing
14
+ * @copyright 2014-2015 Gaëtan Renaudeau. MIT License.
15
+ */
16
+
17
+ 'use strict'
18
+
19
+ // These values are established by empiricism with tests (tradeoff: performance VS precision)
20
+ const NEWTON_ITERATIONS = 4
21
+ const NEWTON_MIN_SLOPE = 0.001
22
+ const SUBDIVISION_PRECISION = 0.0000001
23
+ const SUBDIVISION_MAX_ITERATIONS = 10
24
+
25
+ const kSplineTableSize = 11
26
+ const kSampleStepSize = 1.0 / (kSplineTableSize - 1.0)
27
+
28
+ const float32ArraySupported = typeof Float32Array === 'function'
29
+
30
+ function A(aA1, aA2) {
31
+ return 1.0 - 3.0 * aA2 + 3.0 * aA1
32
+ }
33
+ function B(aA1, aA2) {
34
+ return 3.0 * aA2 - 6.0 * aA1
35
+ }
36
+ function C(aA1) {
37
+ return 3.0 * aA1
38
+ }
39
+
40
+ // Returns x(t) given t, x1, and x2, or y(t) given t, y1, and y2.
41
+ function calcBezier(aT, aA1, aA2) {
42
+ return ((A(aA1, aA2) * aT + B(aA1, aA2)) * aT + C(aA1)) * aT
43
+ }
44
+
45
+ // Returns dx/dt given t, x1, and x2, or dy/dt given t, y1, and y2.
46
+ function getSlope(aT, aA1, aA2) {
47
+ return 3.0 * A(aA1, aA2) * aT * aT + 2.0 * B(aA1, aA2) * aT + C(aA1)
48
+ }
49
+
50
+ function binarySubdivide(aX, _aA, _aB, mX1, mX2) {
51
+ let currentX,
52
+ currentT,
53
+ i = 0,
54
+ aA = _aA,
55
+ aB = _aB
56
+ do {
57
+ currentT = aA + (aB - aA) / 2.0
58
+ currentX = calcBezier(currentT, mX1, mX2) - aX
59
+ if (currentX > 0.0) {
60
+ aB = currentT
61
+ } else {
62
+ aA = currentT
63
+ }
64
+ } while (Math.abs(currentX) > SUBDIVISION_PRECISION && ++i < SUBDIVISION_MAX_ITERATIONS)
65
+ return currentT
66
+ }
67
+
68
+ function newtonRaphsonIterate(aX, _aGuessT, mX1, mX2) {
69
+ let aGuessT = _aGuessT
70
+ for (let i = 0; i < NEWTON_ITERATIONS; ++i) {
71
+ const currentSlope = getSlope(aGuessT, mX1, mX2)
72
+ if (currentSlope === 0.0) {
73
+ return aGuessT
74
+ }
75
+ const currentX = calcBezier(aGuessT, mX1, mX2) - aX
76
+ aGuessT -= currentX / currentSlope
77
+ }
78
+ return aGuessT
79
+ }
80
+
81
+ function bezier(mX1, mY1, mX2, mY2) {
82
+ if (!(mX1 >= 0 && mX1 <= 1 && mX2 >= 0 && mX2 <= 1)) {
83
+ throw new Error('bezier x values must be in [0, 1] range')
84
+ }
85
+
86
+ // Precompute samples table
87
+ const sampleValues = float32ArraySupported
88
+ ? new Float32Array(kSplineTableSize)
89
+ : new Array(kSplineTableSize)
90
+ if (mX1 !== mY1 || mX2 !== mY2) {
91
+ for (let i = 0; i < kSplineTableSize; ++i) {
92
+ sampleValues[i] = calcBezier(i * kSampleStepSize, mX1, mX2)
93
+ }
94
+ }
95
+
96
+ function getTForX(aX) {
97
+ let intervalStart = 0.0
98
+ let currentSample = 1
99
+ const lastSample = kSplineTableSize - 1
100
+
101
+ for (
102
+ ;
103
+ currentSample !== lastSample && sampleValues[currentSample] <= aX;
104
+ ++currentSample
105
+ ) {
106
+ intervalStart += kSampleStepSize
107
+ }
108
+ --currentSample
109
+
110
+ // Interpolate to provide an initial guess for t
111
+ const dist =
112
+ (aX - sampleValues[currentSample]) /
113
+ (sampleValues[currentSample + 1] - sampleValues[currentSample])
114
+ const guessForT = intervalStart + dist * kSampleStepSize
115
+
116
+ const initialSlope = getSlope(guessForT, mX1, mX2)
117
+ if (initialSlope >= NEWTON_MIN_SLOPE) {
118
+ return newtonRaphsonIterate(aX, guessForT, mX1, mX2)
119
+ } else if (initialSlope === 0.0) {
120
+ return guessForT
121
+ } else {
122
+ return binarySubdivide(aX, intervalStart, intervalStart + kSampleStepSize, mX1, mX2)
123
+ }
124
+ }
125
+
126
+ return function BezierEasing(x) {
127
+ if (mX1 === mY1 && mX2 === mY2) {
128
+ return x // linear
129
+ }
130
+ // Because JavaScript number are imprecise, we should guarantee the extremes are right.
131
+ if (x === 0) {
132
+ return 0
133
+ }
134
+ if (x === 1) {
135
+ return 1
136
+ }
137
+ return calcBezier(getTForX(x), mY1, mY2)
138
+ }
139
+ }
140
+
141
+ export { bezier }
142
+ export default bezier
@@ -0,0 +1,24 @@
1
+ /**
2
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ * @format
8
+ */
9
+
10
+ import * as React from 'react'
11
+
12
+ import { FlatList as FlatListComponent } from '../../../../FlatList'
13
+ import { createAnimatedComponent } from '../createAnimatedComponent'
14
+
15
+ /**
16
+ * @see https://github.com/facebook/react-native/commit/b8c8562
17
+ */
18
+ const FlatListWithEventThrottle = React.forwardRef((props, ref) => (
19
+ <FlatListComponent scrollEventThrottle={0.0001} {...props} ref={ref} />
20
+ ))
21
+
22
+ const FlatList = createAnimatedComponent(FlatListWithEventThrottle)
23
+ export { FlatList }
24
+ export default FlatList
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ * @format
8
+ */
9
+
10
+ import * as React from 'react'
11
+
12
+ import { Image } from '../../../../Image'
13
+ import { createAnimatedComponent } from '../createAnimatedComponent'
14
+
15
+ const AnimatedImage = createAnimatedComponent(Image)
16
+ export { AnimatedImage }
17
+ export default AnimatedImage
@@ -0,0 +1,24 @@
1
+ /**
2
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ * @format
8
+ */
9
+
10
+ import * as React from 'react'
11
+
12
+ import { ScrollView as ScrollViewComponent } from '../../../../ScrollView'
13
+ import { createAnimatedComponent } from '../createAnimatedComponent'
14
+
15
+ /**
16
+ * @see https://github.com/facebook/react-native/commit/b8c8562
17
+ */
18
+ const ScrollViewWithEventThrottle = React.forwardRef((props, ref) => (
19
+ <ScrollViewComponent scrollEventThrottle={0.0001} {...props} ref={ref} />
20
+ ))
21
+
22
+ const ScrollView = createAnimatedComponent(ScrollViewWithEventThrottle)
23
+ export { ScrollView }
24
+ export default ScrollView
@@ -0,0 +1,24 @@
1
+ /**
2
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ * @format
8
+ */
9
+
10
+ import * as React from 'react'
11
+
12
+ import { SectionList as SectionListComponent } from '../../../../SectionList'
13
+ import { createAnimatedComponent } from '../createAnimatedComponent'
14
+
15
+ /**
16
+ * @see https://github.com/facebook/react-native/commit/b8c8562
17
+ */
18
+ const SectionListWithEventThrottle = React.forwardRef((props, ref) => (
19
+ <SectionListComponent scrollEventThrottle={0.0001} {...props} ref={ref} />
20
+ ))
21
+
22
+ const SectionList = createAnimatedComponent(SectionListWithEventThrottle)
23
+ export { SectionList }
24
+ export default SectionList
@@ -0,0 +1,15 @@
1
+ /**
2
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ * @format
8
+ */
9
+
10
+ import { Text } from '../../../../Text'
11
+ import { createAnimatedComponent } from '../createAnimatedComponent'
12
+
13
+ const AnimatedText = createAnimatedComponent(Text)
14
+ export { AnimatedText }
15
+ export default AnimatedText
@@ -0,0 +1,15 @@
1
+ /**
2
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ * @format
8
+ */
9
+
10
+ import { View } from '../../../../View'
11
+ import { createAnimatedComponent } from '../createAnimatedComponent'
12
+
13
+ const AnimatedView = createAnimatedComponent(View)
14
+ export { AnimatedView }
15
+ export default AnimatedView
@@ -0,0 +1,39 @@
1
+ /**
2
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ * @format
8
+ */
9
+
10
+ import { useAnimatedProps } from './useAnimatedProps'
11
+ import { useMergeRefs } from '../Utilities/useMergeRefs'
12
+ import * as React from 'react'
13
+
14
+ /**
15
+ * Experimental implementation of `createAnimatedComponent` that is intended to
16
+ * be compatible with concurrent rendering.
17
+ */
18
+ function createAnimatedComponent(Component) {
19
+ return React.forwardRef((props, forwardedRef) => {
20
+ const [reducedProps, callbackRef] = useAnimatedProps(props)
21
+ const ref = useMergeRefs(callbackRef, forwardedRef)
22
+
23
+ // Some components require explicit passthrough values for animation
24
+ // to work properly. For example, if an animated component is
25
+ // transformed and Pressable, onPress will not work after transform
26
+ // without these passthrough values.
27
+ const { passthroughAnimatedPropExplicitValues, style } = reducedProps
28
+ const { style: passthroughStyle, ...passthroughProps } =
29
+ passthroughAnimatedPropExplicitValues ?? {}
30
+ const mergedStyle = [style, passthroughStyle]
31
+
32
+ return (
33
+ <Component {...reducedProps} {...passthroughProps} style={mergedStyle} ref={ref} />
34
+ )
35
+ })
36
+ }
37
+
38
+ export { createAnimatedComponent }
39
+ export default createAnimatedComponent
@@ -0,0 +1,60 @@
1
+ /**
2
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ * @format
8
+ */
9
+
10
+ 'use strict'
11
+
12
+ import { AnimatedInterpolation } from './AnimatedInterpolation'
13
+ import { AnimatedValue } from './AnimatedValue'
14
+ import { AnimatedWithChildren } from './AnimatedWithChildren'
15
+
16
+ class AnimatedAddition extends AnimatedWithChildren {
17
+ _a
18
+ _b
19
+
20
+ constructor(a, b) {
21
+ super()
22
+ this._a = typeof a === 'number' ? new AnimatedValue(a) : a
23
+ this._b = typeof b === 'number' ? new AnimatedValue(b) : b
24
+ }
25
+
26
+ __makeNative(platformConfig) {
27
+ this._a.__makeNative(platformConfig)
28
+ this._b.__makeNative(platformConfig)
29
+ super.__makeNative(platformConfig)
30
+ }
31
+
32
+ __getValue() {
33
+ return this._a.__getValue() + this._b.__getValue()
34
+ }
35
+
36
+ interpolate(config) {
37
+ return new AnimatedInterpolation(this, config)
38
+ }
39
+
40
+ __attach() {
41
+ this._a.__addChild(this)
42
+ this._b.__addChild(this)
43
+ }
44
+
45
+ __detach() {
46
+ this._a.__removeChild(this)
47
+ this._b.__removeChild(this)
48
+ super.__detach()
49
+ }
50
+
51
+ __getNativeConfig() {
52
+ return {
53
+ type: 'addition',
54
+ input: [this._a.__getNativeTag(), this._b.__getNativeTag()],
55
+ }
56
+ }
57
+ }
58
+
59
+ export { AnimatedAddition }
60
+ export default AnimatedAddition
@@ -0,0 +1,293 @@
1
+ /**
2
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ * @format
8
+ * @format
9
+ */
10
+
11
+ import { AnimatedValue } from './AnimatedValue'
12
+ import { AnimatedWithChildren } from './AnimatedWithChildren'
13
+ import { normalizeColor } from '@hanzogui/react-native-web-internals'
14
+ import { NativeAnimatedHelper } from '../NativeAnimatedHelper'
15
+
16
+ const NativeAnimatedAPI = NativeAnimatedHelper.API
17
+
18
+ const defaultColor = { r: 0, g: 0, b: 0, a: 1.0 }
19
+ let _uniqueId = 1
20
+
21
+ const processColorObject = (color) => {
22
+ return color
23
+ }
24
+
25
+ /* eslint no-bitwise: 0 */
26
+ function processColor(color) {
27
+ if (color === undefined || color === null) {
28
+ return null
29
+ }
30
+
31
+ if (isRgbaValue(color)) {
32
+ return color
33
+ }
34
+
35
+ let normalizedColor = normalizeColor(color)
36
+ if (normalizedColor === undefined || normalizedColor === null) {
37
+ return null
38
+ }
39
+
40
+ if (typeof normalizedColor === 'object') {
41
+ const processedColorObj = processColorObject(normalizedColor)
42
+ if (processedColorObj != null) {
43
+ return processedColorObj
44
+ }
45
+ } else if (typeof normalizedColor === 'number') {
46
+ const r = (normalizedColor & 0xff000000) >>> 24
47
+ const g = (normalizedColor & 0x00ff0000) >>> 16
48
+ const b = (normalizedColor & 0x0000ff00) >>> 8
49
+ const a = (normalizedColor & 0x000000ff) / 255
50
+
51
+ return { r, g, b, a }
52
+ }
53
+
54
+ return null
55
+ }
56
+
57
+ function isRgbaValue(value) {
58
+ return (
59
+ value &&
60
+ typeof value.r === 'number' &&
61
+ typeof value.g === 'number' &&
62
+ typeof value.b === 'number' &&
63
+ typeof value.a === 'number'
64
+ )
65
+ }
66
+
67
+ function isRgbaAnimatedValue(value) {
68
+ return (
69
+ value &&
70
+ value.r instanceof AnimatedValue &&
71
+ value.g instanceof AnimatedValue &&
72
+ value.b instanceof AnimatedValue &&
73
+ value.a instanceof AnimatedValue
74
+ )
75
+ }
76
+
77
+ class AnimatedColor extends AnimatedWithChildren {
78
+ constructor(valueIn, config) {
79
+ super()
80
+ this._listeners = {}
81
+
82
+ let value = valueIn ?? defaultColor
83
+ if (isRgbaAnimatedValue(value)) {
84
+ const rgbaAnimatedValue = value
85
+ this.r = rgbaAnimatedValue.r
86
+ this.g = rgbaAnimatedValue.g
87
+ this.b = rgbaAnimatedValue.b
88
+ this.a = rgbaAnimatedValue.a
89
+ } else {
90
+ const processedColor = processColor(value) ?? defaultColor
91
+ let initColor = defaultColor
92
+ if (isRgbaValue(processedColor)) {
93
+ initColor = processedColor
94
+ } else {
95
+ this.nativeColor = processedColor
96
+ }
97
+
98
+ this.r = new AnimatedValue(initColor.r)
99
+ this.g = new AnimatedValue(initColor.g)
100
+ this.b = new AnimatedValue(initColor.b)
101
+ this.a = new AnimatedValue(initColor.a)
102
+ }
103
+ if (this.nativeColor || (config && config.useNativeDriver)) {
104
+ this.__makeNative()
105
+ }
106
+ }
107
+
108
+ /**
109
+ * Directly set the value. This will stop any animations running on the value
110
+ * and update all the bound properties.
111
+ */
112
+ setValue(value) {
113
+ let shouldUpdateNodeConfig = false
114
+ if (this.__isNative) {
115
+ const nativeTag = this.__getNativeTag()
116
+ NativeAnimatedAPI.setWaitingForIdentifier(nativeTag.toString())
117
+ }
118
+
119
+ const processedColor = processColor(value) ?? defaultColor
120
+ if (isRgbaValue(processedColor)) {
121
+ const rgbaValue = processedColor
122
+ this.r.setValue(rgbaValue.r)
123
+ this.g.setValue(rgbaValue.g)
124
+ this.b.setValue(rgbaValue.b)
125
+ this.a.setValue(rgbaValue.a)
126
+ if (this.nativeColor != null) {
127
+ this.nativeColor = null
128
+ shouldUpdateNodeConfig = true
129
+ }
130
+ } else {
131
+ const nativeColor = processedColor
132
+ if (this.nativeColor !== nativeColor) {
133
+ this.nativeColor = nativeColor
134
+ shouldUpdateNodeConfig = true
135
+ }
136
+ }
137
+
138
+ if (this.__isNative) {
139
+ const nativeTag = this.__getNativeTag()
140
+ if (shouldUpdateNodeConfig) {
141
+ NativeAnimatedAPI.updateAnimatedNodeConfig(nativeTag, this.__getNativeConfig())
142
+ }
143
+ NativeAnimatedAPI.unsetWaitingForIdentifier(nativeTag.toString())
144
+ }
145
+ }
146
+
147
+ /**
148
+ * Sets an offset that is applied on top of whatever value is set, whether
149
+ * via `setValue`, an animation, or `Animated.event`. Useful for compensating
150
+ * things like the start of a pan gesture.
151
+ */
152
+ setOffset(offset) {
153
+ this.r.setOffset(offset.r)
154
+ this.g.setOffset(offset.g)
155
+ this.b.setOffset(offset.b)
156
+ this.a.setOffset(offset.a)
157
+ }
158
+
159
+ /**
160
+ * Merges the offset value into the base value and resets the offset to zero.
161
+ * The final output of the value is unchanged.
162
+ */
163
+ flattenOffset() {
164
+ this.r.flattenOffset()
165
+ this.g.flattenOffset()
166
+ this.b.flattenOffset()
167
+ this.a.flattenOffset()
168
+ }
169
+
170
+ /**
171
+ * Sets the offset value to the base value, and resets the base value to
172
+ * zero. The final output of the value is unchanged.
173
+ */
174
+ extractOffset() {
175
+ this.r.extractOffset()
176
+ this.g.extractOffset()
177
+ this.b.extractOffset()
178
+ this.a.extractOffset()
179
+ }
180
+
181
+ /**
182
+ * Adds an asynchronous listener to the value so you can observe updates from
183
+ * animations. This is useful because there is no way to synchronously read
184
+ * the value because it might be driven natively.
185
+ *
186
+ * Returns a string that serves as an identifier for the listener.
187
+ */
188
+ addListener(callback) {
189
+ const id = String(_uniqueId++)
190
+ const jointCallback = ({ value }) => {
191
+ callback(this.__getValue())
192
+ }
193
+ this._listeners[id] = {
194
+ r: this.r.addListener(jointCallback),
195
+ g: this.g.addListener(jointCallback),
196
+ b: this.b.addListener(jointCallback),
197
+ a: this.a.addListener(jointCallback),
198
+ }
199
+ return id
200
+ }
201
+
202
+ removeListener(id) {
203
+ if (this._listeners[id]) {
204
+ this.r.removeListener(this._listeners[id].r)
205
+ this.g.removeListener(this._listeners[id].g)
206
+ this.b.removeListener(this._listeners[id].b)
207
+ this.a.removeListener(this._listeners[id].a)
208
+ delete this._listeners[id]
209
+ }
210
+ }
211
+
212
+ removeAllListeners() {
213
+ this.r.removeAllListeners()
214
+ this.g.removeAllListeners()
215
+ this.b.removeAllListeners()
216
+ this.a.removeAllListeners()
217
+ this._listeners = {}
218
+ }
219
+
220
+ stopAnimation(callback) {
221
+ this.r.stopAnimation()
222
+ this.g.stopAnimation()
223
+ this.b.stopAnimation()
224
+ this.a.stopAnimation()
225
+ callback && callback(this.__getValue())
226
+ }
227
+
228
+ resetAnimation(callback) {
229
+ this.r.resetAnimation()
230
+ this.g.resetAnimation()
231
+ this.b.resetAnimation()
232
+ this.a.resetAnimation()
233
+ callback && callback(this.__getValue())
234
+ }
235
+
236
+ interpolate(config) {
237
+ throw new Error(
238
+ 'Directly calling interpolate on an AnimatedColor is not supported. ' +
239
+ 'Call interpolate on the AnimatedColor.r/g/b/a values instead.'
240
+ )
241
+ }
242
+
243
+ __getValue() {
244
+ if (this.nativeColor != null) {
245
+ return this.nativeColor
246
+ } else {
247
+ return {
248
+ r: this.r.__getValue(),
249
+ g: this.g.__getValue(),
250
+ b: this.b.__getValue(),
251
+ a: this.a.__getValue(),
252
+ }
253
+ }
254
+ }
255
+
256
+ __attach() {
257
+ this.r.__addChild(this)
258
+ this.g.__addChild(this)
259
+ this.b.__addChild(this)
260
+ this.a.__addChild(this)
261
+ super.__attach()
262
+ }
263
+
264
+ __detach() {
265
+ this.r.__removeChild(this)
266
+ this.g.__removeChild(this)
267
+ this.b.__removeChild(this)
268
+ this.a.__removeChild(this)
269
+ super.__detach()
270
+ }
271
+
272
+ __makeNative(platformConfig) {
273
+ this.r.__makeNative(platformConfig)
274
+ this.g.__makeNative(platformConfig)
275
+ this.b.__makeNative(platformConfig)
276
+ this.a.__makeNative(platformConfig)
277
+ super.__makeNative(platformConfig)
278
+ }
279
+
280
+ __getNativeConfig() {
281
+ return {
282
+ type: 'color',
283
+ r: this.r.__getNativeTag(),
284
+ g: this.g.__getNativeTag(),
285
+ b: this.b.__getNativeTag(),
286
+ a: this.a.__getNativeTag(),
287
+ nativeColor: this.nativeColor,
288
+ }
289
+ }
290
+ }
291
+
292
+ export { AnimatedColor }
293
+ export default AnimatedColor