react-native-tvos 0.86.0-2 → 0.86.3-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 (394) hide show
  1. package/Libraries/ActionSheetIOS/React-RCTActionSheet.podspec +1 -1
  2. package/Libraries/Animated/components/AnimatedScrollView.js +1 -1
  3. package/Libraries/AppDelegate/React-RCTAppDelegate.podspec +1 -1
  4. package/Libraries/Blob/React-RCTBlob.podspec +1 -1
  5. package/Libraries/Components/Button.js +2 -2
  6. package/Libraries/Components/TV/TVFocusGuideView.js +31 -0
  7. package/Libraries/Components/TV/useFocusEnterLeave.js +112 -0
  8. package/Libraries/Components/TextInput/AndroidTextInputNativeComponent.js +1 -1
  9. package/Libraries/Components/TextInput/TextInput.flow.js +1 -1
  10. package/Libraries/Components/Touchable/Touchable.d.ts +1 -1
  11. package/Libraries/Components/View/ViewAccessibility.d.ts +1 -1
  12. package/Libraries/Components/View/ViewAccessibility.js +1 -1
  13. package/Libraries/Core/ReactNativeVersion.js +2 -2
  14. package/Libraries/Core/Timers/JSTimers.js +1 -1
  15. package/Libraries/Core/setUpNavigator.js +1 -1
  16. package/Libraries/EventEmitter/RCTNativeAppEventEmitter.d.ts +1 -1
  17. package/Libraries/FBLazyVector/FBLazyVector.podspec +1 -1
  18. package/Libraries/Image/ImageSource.d.ts +1 -1
  19. package/Libraries/Image/RCTImageLoader.mm +1 -1
  20. package/Libraries/Image/React-RCTImage.podspec +1 -1
  21. package/Libraries/Interaction/PanResponder.js +1 -1
  22. package/Libraries/LinkingIOS/React-RCTLinking.podspec +1 -1
  23. package/Libraries/NativeAnimation/React-RCTAnimation.podspec +1 -1
  24. package/Libraries/Network/React-RCTNetwork.podspec +1 -1
  25. package/Libraries/PushNotificationIOS/React-RCTPushNotification.podspec +1 -1
  26. package/Libraries/Renderer/README.md +2 -2
  27. package/Libraries/Required/RCTRequired.podspec +1 -1
  28. package/Libraries/Settings/React-RCTSettings.podspec +1 -1
  29. package/Libraries/Text/React-RCTText.podspec +1 -1
  30. package/Libraries/TypeSafety/RCTTypeSafety.podspec +1 -1
  31. package/Libraries/Utilities/PolyfillFunctions.js +1 -1
  32. package/Libraries/Vibration/React-RCTVibration.podspec +1 -1
  33. package/README-core.md +6 -6
  34. package/README.md +2 -0
  35. package/React/Base/RCTVersion.m +2 -2
  36. package/React/CoreModules/React-CoreModules.podspec +1 -1
  37. package/React/Fabric/Mounting/ComponentViews/ScrollView/RCTScrollViewComponentView.mm +1 -1
  38. package/React/Fabric/Mounting/ComponentViews/TextInput/RCTTextInputComponentView.mm +1 -1
  39. package/React/Fabric/Mounting/ComponentViews/View/RCTViewComponentView.mm +43 -17
  40. package/React/React-RCTFBReactNativeSpec.podspec +1 -1
  41. package/React/React-RCTFabric.podspec +1 -1
  42. package/React/Runtime/React-RCTRuntime.podspec +1 -1
  43. package/React/Views/ScrollView/RCTScrollView.m +1 -1
  44. package/React-Core.podspec +1 -1
  45. package/React.podspec +1 -1
  46. package/ReactAndroid/build.gradle.kts +1 -1
  47. package/ReactAndroid/gradle.properties +1 -1
  48. package/ReactAndroid/publish.gradle +5 -5
  49. package/ReactAndroid/src/main/java/com/facebook/react/ReactInstanceManager.java +5 -4
  50. package/ReactAndroid/src/main/java/com/facebook/react/devsupport/CxxInspectorPackagerConnection.kt +1 -1
  51. package/ReactAndroid/src/main/java/com/facebook/react/fabric/mounting/SurfaceMountingManager.kt +49 -12
  52. package/ReactAndroid/src/main/java/com/facebook/react/modules/core/JavaTimerManager.kt +2 -2
  53. package/ReactAndroid/src/main/java/com/facebook/react/modules/intent/IntentModule.kt +8 -4
  54. package/ReactAndroid/src/main/java/com/facebook/react/modules/network/NetworkingModule.kt +2 -2
  55. package/ReactAndroid/src/main/java/com/facebook/react/modules/systeminfo/ReactNativeVersion.kt +2 -2
  56. package/ReactAndroid/src/main/java/com/facebook/react/runtime/ReactInstance.kt +1 -1
  57. package/ReactAndroid/src/main/java/com/facebook/react/uimanager/BaseViewManager.java +1 -1
  58. package/ReactAndroid/src/main/java/com/facebook/react/views/scroll/ReactNestedScrollViewManager.kt +1 -1
  59. package/ReactAndroid/src/main/java/com/facebook/react/views/scroll/ReactScrollViewManager.kt +1 -1
  60. package/ReactAndroid/src/main/java/com/facebook/react/views/text/ReactTextView.java +1 -1
  61. package/ReactAndroid/src/main/java/com/facebook/react/views/textinput/ReactEditText.kt +2 -2
  62. package/ReactAndroid/src/main/java/com/facebook/react/views/textinput/ReactTextInputManager.kt +2 -2
  63. package/ReactAndroid/src/main/java/com/facebook/react/views/textinput/ReactTextSelectionWatcher.kt +1 -1
  64. package/ReactAndroid/src/main/java/com/facebook/react/views/view/ReactViewGroup.kt +4 -4
  65. package/ReactAndroid/src/main/java/com/facebook/react/views/view/ReactViewManager.kt +1 -1
  66. package/ReactApple/Libraries/RCTFoundation/RCTDeprecation/RCTDeprecation.podspec +1 -1
  67. package/ReactApple/RCTSwiftUI/RCTSwiftUI.podspec +1 -1
  68. package/ReactApple/RCTSwiftUIWrapper/RCTSwiftUIWrapper.podspec +1 -1
  69. package/ReactCommon/React-Fabric.podspec +1 -1
  70. package/ReactCommon/React-FabricComponents.podspec +1 -1
  71. package/ReactCommon/React-FabricImage.podspec +1 -1
  72. package/ReactCommon/React-Mapbuffer.podspec +1 -1
  73. package/ReactCommon/ReactCommon.podspec +1 -1
  74. package/ReactCommon/callinvoker/React-callinvoker.podspec +1 -1
  75. package/ReactCommon/cxxreact/React-cxxreact.podspec +1 -1
  76. package/ReactCommon/cxxreact/ReactNativeVersion.h +3 -3
  77. package/ReactCommon/hermes/React-hermes.podspec +1 -1
  78. package/ReactCommon/hermes/executor/React-jsitracing.podspec +1 -1
  79. package/ReactCommon/jserrorhandler/React-jserrorhandler.podspec +1 -1
  80. package/ReactCommon/jsi/React-jsi.podspec +1 -1
  81. package/ReactCommon/jsiexecutor/React-jsiexecutor.podspec +1 -1
  82. package/ReactCommon/jsinspector-modern/React-jsinspector.podspec +1 -1
  83. package/ReactCommon/jsinspector-modern/cdp/React-jsinspectorcdp.podspec +1 -1
  84. package/ReactCommon/jsinspector-modern/network/React-jsinspectornetwork.podspec +1 -1
  85. package/ReactCommon/jsinspector-modern/tracing/React-jsinspectortracing.podspec +1 -1
  86. package/ReactCommon/jsitooling/React-jsitooling.podspec +1 -1
  87. package/ReactCommon/logger/React-logger.podspec +1 -1
  88. package/ReactCommon/oscompat/React-oscompat.podspec +1 -1
  89. package/ReactCommon/react/debug/React-debug.podspec +1 -1
  90. package/ReactCommon/react/debug/redbox/JscSafeUrl.h +1 -1
  91. package/ReactCommon/react/featureflags/React-featureflags.podspec +1 -1
  92. package/ReactCommon/react/nativemodule/core/platform/android/ReactCommon/JavaTurboModule.cpp +1 -1
  93. package/ReactCommon/react/nativemodule/core/platform/ios/React-NativeModulesApple.podspec +1 -1
  94. package/ReactCommon/react/nativemodule/core/platform/ios/ReactCommon/RCTInteropTurboModule.mm +1 -1
  95. package/ReactCommon/react/nativemodule/core/platform/ios/ReactCommon/RCTTurboModule.mm +1 -1
  96. package/ReactCommon/react/nativemodule/defaults/React-defaultsnativemodule.podspec +1 -1
  97. package/ReactCommon/react/nativemodule/dom/NativeDOM.cpp +10 -4
  98. package/ReactCommon/react/nativemodule/dom/React-domnativemodule.podspec +1 -1
  99. package/ReactCommon/react/nativemodule/featureflags/React-featureflagsnativemodule.podspec +1 -1
  100. package/ReactCommon/react/nativemodule/idlecallbacks/React-idlecallbacksnativemodule.podspec +1 -1
  101. package/ReactCommon/react/nativemodule/intersectionobserver/React-intersectionobservernativemodule.podspec +1 -1
  102. package/ReactCommon/react/nativemodule/microtasks/React-microtasksnativemodule.podspec +1 -1
  103. package/ReactCommon/react/nativemodule/mutationobserver/React-mutationobservernativemodule.podspec +1 -1
  104. package/ReactCommon/react/nativemodule/samples/ReactCommon-Samples.podspec +1 -1
  105. package/ReactCommon/react/nativemodule/viewtransition/React-viewtransitionnativemodule.podspec +1 -1
  106. package/ReactCommon/react/nativemodule/webperformance/React-webperformancenativemodule.podspec +1 -1
  107. package/ReactCommon/react/networking/React-networking.podspec +1 -1
  108. package/ReactCommon/react/performance/cdpmetrics/React-performancecdpmetrics.podspec +1 -1
  109. package/ReactCommon/react/performance/timeline/React-performancetimeline.podspec +1 -1
  110. package/ReactCommon/react/renderer/animated/internal/primitives.h +1 -1
  111. package/ReactCommon/react/renderer/consistency/React-rendererconsistency.podspec +1 -1
  112. package/ReactCommon/react/renderer/core/EventEmitter.cpp +20 -4
  113. package/ReactCommon/react/renderer/core/ShadowNode.cpp +27 -19
  114. package/ReactCommon/react/renderer/core/ShadowNodeFamily.h +2 -0
  115. package/ReactCommon/react/renderer/css/React-renderercss.podspec +1 -1
  116. package/ReactCommon/react/renderer/debug/React-rendererdebug.podspec +1 -1
  117. package/ReactCommon/react/renderer/graphics/React-graphics.podspec +1 -1
  118. package/ReactCommon/react/renderer/imagemanager/platform/ios/React-ImageManager.podspec +1 -1
  119. package/ReactCommon/react/renderer/mounting/internal/CullingContext.cpp +1 -1
  120. package/ReactCommon/react/renderer/runtimescheduler/React-runtimescheduler.podspec +1 -1
  121. package/ReactCommon/react/renderer/textlayoutmanager/platform/ios/react/renderer/textlayoutmanager/RCTFontUtils.mm +1 -1
  122. package/ReactCommon/react/renderer/uimanager/UIManager.cpp +58 -53
  123. package/ReactCommon/react/renderer/uimanager/tests/FabricUIManagerTest.cpp +144 -3
  124. package/ReactCommon/react/runtime/React-RuntimeCore.podspec +1 -1
  125. package/ReactCommon/react/runtime/React-RuntimeHermes.podspec +1 -1
  126. package/ReactCommon/react/runtime/platform/ios/React-RuntimeApple.podspec +1 -1
  127. package/ReactCommon/react/timing/React-timing.podspec +1 -1
  128. package/ReactCommon/react/utils/React-utils.podspec +1 -1
  129. package/ReactCommon/reactperflogger/React-perflogger.podspec +1 -1
  130. package/ReactCommon/runtimeexecutor/React-runtimeexecutor.podspec +1 -1
  131. package/ReactCommon/yoga/Yoga.podspec +2 -2
  132. package/ReactCommon/yoga/yoga/algorithm/AbsoluteLayout.cpp +2 -1
  133. package/ReactCommon/yoga/yoga/algorithm/CalculateLayout.cpp +11 -7
  134. package/ReactCommon/yoga/yoga/algorithm/CalculateLayout.h +1 -1
  135. package/package.json +11 -11
  136. package/scripts/cocoapods/spm.rb +1 -1
  137. package/scripts/cocoapods/utils.rb +2 -2
  138. package/scripts/codegen/templates/ReactAppDependencyProvider.podspec.template +1 -1
  139. package/scripts/codegen/templates/ReactCodegen.podspec.template +1 -1
  140. package/scripts/ios-configure-glog.sh +1 -1
  141. package/sdks/.hermesv1version +1 -1
  142. package/sdks/hermes-engine/hermes-engine.podspec +7 -2
  143. package/sdks/hermes-engine/version.properties +1 -1
  144. package/src/private/types/HostInstance.js +1 -1
  145. package/src/types/globals.d.ts +2 -2
  146. package/third-party-podspecs/RCT-Folly.podspec +1 -1
  147. package/third-party-podspecs/ReactNativeDependencies.podspec +1 -1
  148. package/third-party-podspecs/glog.podspec +1 -1
  149. package/types/public/ReactNativeTVTypes.d.ts +12 -1
  150. package/types/public/ReactNativeTypes.d.ts +2 -2
  151. package/types_generated/Libraries/ActionSheetIOS/ActionSheetIOS.d.ts +101 -0
  152. package/types_generated/Libraries/Alert/Alert.d.ts +55 -0
  153. package/types_generated/Libraries/Animated/Animated.d.ts +14 -0
  154. package/types_generated/Libraries/Animated/AnimatedEvent.d.ts +30 -0
  155. package/types_generated/Libraries/Animated/AnimatedExports.d.ts +191 -0
  156. package/types_generated/Libraries/Animated/AnimatedImplementation.d.ts +128 -0
  157. package/types_generated/Libraries/Animated/AnimatedPlatformConfig.d.ts +13 -0
  158. package/types_generated/Libraries/Animated/Easing.d.ts +171 -0
  159. package/types_generated/Libraries/Animated/animations/Animation.d.ts +35 -0
  160. package/types_generated/Libraries/Animated/animations/DecayAnimation.d.ts +42 -0
  161. package/types_generated/Libraries/Animated/animations/SpringAnimation.d.ts +130 -0
  162. package/types_generated/Libraries/Animated/animations/TimingAnimation.d.ts +54 -0
  163. package/types_generated/Libraries/Animated/components/AnimatedFlatList.d.ts +22 -0
  164. package/types_generated/Libraries/Animated/components/AnimatedImage.d.ts +18 -0
  165. package/types_generated/Libraries/Animated/components/AnimatedScrollView.d.ts +23 -0
  166. package/types_generated/Libraries/Animated/components/AnimatedSectionList.d.ts +22 -0
  167. package/types_generated/Libraries/Animated/components/AnimatedText.d.ts +18 -0
  168. package/types_generated/Libraries/Animated/components/AnimatedView.d.ts +19 -0
  169. package/types_generated/Libraries/Animated/createAnimatedComponent.d.ts +44 -0
  170. package/types_generated/Libraries/Animated/nodes/AnimatedAddition.d.ts +22 -0
  171. package/types_generated/Libraries/Animated/nodes/AnimatedColor.d.ts +80 -0
  172. package/types_generated/Libraries/Animated/nodes/AnimatedDiffClamp.d.ts +22 -0
  173. package/types_generated/Libraries/Animated/nodes/AnimatedDivision.d.ts +22 -0
  174. package/types_generated/Libraries/Animated/nodes/AnimatedInterpolation.d.ts +38 -0
  175. package/types_generated/Libraries/Animated/nodes/AnimatedModulo.d.ts +22 -0
  176. package/types_generated/Libraries/Animated/nodes/AnimatedMultiplication.d.ts +22 -0
  177. package/types_generated/Libraries/Animated/nodes/AnimatedNode.d.ts +47 -0
  178. package/types_generated/Libraries/Animated/nodes/AnimatedProps.d.ts +30 -0
  179. package/types_generated/Libraries/Animated/nodes/AnimatedStyle.d.ts +32 -0
  180. package/types_generated/Libraries/Animated/nodes/AnimatedSubtraction.d.ts +22 -0
  181. package/types_generated/Libraries/Animated/nodes/AnimatedTracking.d.ts +21 -0
  182. package/types_generated/Libraries/Animated/nodes/AnimatedValue.d.ts +126 -0
  183. package/types_generated/Libraries/Animated/nodes/AnimatedValueXY.d.ts +135 -0
  184. package/types_generated/Libraries/Animated/nodes/AnimatedWithChildren.d.ts +15 -0
  185. package/types_generated/Libraries/Animated/useAnimatedColor.d.ts +16 -0
  186. package/types_generated/Libraries/Animated/useAnimatedValue.d.ts +15 -0
  187. package/types_generated/Libraries/Animated/useAnimatedValueXY.d.ts +18 -0
  188. package/types_generated/Libraries/AppState/AppState.d.ts +63 -0
  189. package/types_generated/Libraries/BatchedBridge/BatchedBridge.d.ts +17 -0
  190. package/types_generated/Libraries/BatchedBridge/MessageQueue.d.ts +39 -0
  191. package/types_generated/Libraries/BatchedBridge/NativeModules.d.ts +20 -0
  192. package/types_generated/Libraries/Blob/Blob.d.ts +80 -0
  193. package/types_generated/Libraries/Blob/BlobTypes.d.ts +27 -0
  194. package/types_generated/Libraries/Components/AccessibilityInfo/AccessibilityInfo.d.ts +232 -0
  195. package/types_generated/Libraries/Components/AccessibilityInfo/legacySendAccessibilityEvent.d.ts +20 -0
  196. package/types_generated/Libraries/Components/ActivityIndicator/ActivityIndicator.d.ts +84 -0
  197. package/types_generated/Libraries/Components/Button.d.ts +247 -0
  198. package/types_generated/Libraries/Components/Clipboard/Clipboard.d.ts +38 -0
  199. package/types_generated/Libraries/Components/DrawerAndroid/DrawerLayoutAndroid.d.ts +17 -0
  200. package/types_generated/Libraries/Components/DrawerAndroid/DrawerLayoutAndroidFallback.d.ts +27 -0
  201. package/types_generated/Libraries/Components/DrawerAndroid/DrawerLayoutAndroidTypes.d.ts +176 -0
  202. package/types_generated/Libraries/Components/Keyboard/Keyboard.d.ts +146 -0
  203. package/types_generated/Libraries/Components/Keyboard/KeyboardAvoidingView.d.ts +73 -0
  204. package/types_generated/Libraries/Components/LayoutConformance/LayoutConformance.d.ts +23 -0
  205. package/types_generated/Libraries/Components/Pressable/Pressable.d.ts +146 -0
  206. package/types_generated/Libraries/Components/Pressable/useAndroidRippleForView.d.ts +48 -0
  207. package/types_generated/Libraries/Components/ProgressBarAndroid/ProgressBarAndroid.d.ts +32 -0
  208. package/types_generated/Libraries/Components/ProgressBarAndroid/ProgressBarAndroidNativeComponent.d.ts +14 -0
  209. package/types_generated/Libraries/Components/ProgressBarAndroid/ProgressBarAndroidTypes.d.ts +50 -0
  210. package/types_generated/Libraries/Components/RefreshControl/RefreshControl.d.ts +113 -0
  211. package/types_generated/Libraries/Components/SafeAreaView/SafeAreaView.d.ts +33 -0
  212. package/types_generated/Libraries/Components/ScrollView/ScrollView.d.ts +581 -0
  213. package/types_generated/Libraries/Components/ScrollView/ScrollViewContext.d.ts +24 -0
  214. package/types_generated/Libraries/Components/ScrollView/ScrollViewNativeComponent.d.ts +21 -0
  215. package/types_generated/Libraries/Components/ScrollView/ScrollViewNativeComponentType.d.ts +140 -0
  216. package/types_generated/Libraries/Components/ScrollView/ScrollViewStickyHeader.d.ts +36 -0
  217. package/types_generated/Libraries/Components/StatusBar/StatusBar.d.ts +222 -0
  218. package/types_generated/Libraries/Components/Switch/AndroidSwitchNativeComponent.d.ts +14 -0
  219. package/types_generated/Libraries/Components/Switch/Switch.d.ts +138 -0
  220. package/types_generated/Libraries/Components/Switch/SwitchNativeComponent.d.ts +14 -0
  221. package/types_generated/Libraries/Components/TV/TVEventControl.d.ts +23 -0
  222. package/types_generated/Libraries/Components/TV/TVEventHandler.d.ts +21 -0
  223. package/types_generated/Libraries/Components/TV/TVFocusGuideView.d.ts +96 -0
  224. package/types_generated/Libraries/Components/TV/TVTextScrollView.d.ts +97 -0
  225. package/types_generated/Libraries/Components/TV/TVViewPropTypes.d.ts +123 -0
  226. package/types_generated/Libraries/Components/TV/tagForComponentOrHandle.d.ts +24 -0
  227. package/types_generated/Libraries/Components/TV/useTVEventHandler.d.ts +20 -0
  228. package/types_generated/Libraries/Components/TextInput/InputAccessoryView.d.ts +86 -0
  229. package/types_generated/Libraries/Components/TextInput/TextInput.d.ts +47 -0
  230. package/types_generated/Libraries/Components/TextInput/TextInput.flow.d.ts +1005 -0
  231. package/types_generated/Libraries/Components/TextInput/TextInputState.d.ts +54 -0
  232. package/types_generated/Libraries/Components/ToastAndroid/ToastAndroid.d.ts +99 -0
  233. package/types_generated/Libraries/Components/Touchable/Touchable.d.ts +257 -0
  234. package/types_generated/Libraries/Components/Touchable/TouchableHighlight.d.ts +51 -0
  235. package/types_generated/Libraries/Components/Touchable/TouchableNativeFeedback.d.ts +192 -0
  236. package/types_generated/Libraries/Components/Touchable/TouchableOpacity.d.ts +35 -0
  237. package/types_generated/Libraries/Components/Touchable/TouchableWithoutFeedback.d.ts +121 -0
  238. package/types_generated/Libraries/Components/View/View.d.ts +30 -0
  239. package/types_generated/Libraries/Components/View/ViewAccessibility.d.ts +415 -0
  240. package/types_generated/Libraries/Components/View/ViewNativeComponent.d.ts +39 -0
  241. package/types_generated/Libraries/Components/View/ViewPropTypes.d.ts +367 -0
  242. package/types_generated/Libraries/Core/Devtools/symbolicateStackTrace.d.ts +27 -0
  243. package/types_generated/Libraries/Core/ExceptionsManager.d.ts +43 -0
  244. package/types_generated/Libraries/Core/ExtendedError.d.ts +26 -0
  245. package/types_generated/Libraries/Core/NativeExceptionsManager.d.ts +17 -0
  246. package/types_generated/Libraries/Core/RawEventEmitter.d.ts +26 -0
  247. package/types_generated/Libraries/Core/ReactFiberErrorDialog.d.ts +27 -0
  248. package/types_generated/Libraries/Core/ReactNativeVersion.d.ts +48 -0
  249. package/types_generated/Libraries/Core/registerCallableModule.d.ts +18 -0
  250. package/types_generated/Libraries/EventEmitter/NativeEventEmitter.d.ts +42 -0
  251. package/types_generated/Libraries/EventEmitter/RCTDeviceEventEmitter.d.ts +19 -0
  252. package/types_generated/Libraries/EventEmitter/RCTEventEmitter.d.ts +18 -0
  253. package/types_generated/Libraries/EventEmitter/RCTNativeAppEventEmitter.d.ts +21 -0
  254. package/types_generated/Libraries/Image/AssetSourceResolver.d.ts +71 -0
  255. package/types_generated/Libraries/Image/Image.d.ts +18 -0
  256. package/types_generated/Libraries/Image/ImageBackground.d.ts +44 -0
  257. package/types_generated/Libraries/Image/ImageProps.d.ts +512 -0
  258. package/types_generated/Libraries/Image/ImageResizeMode.d.ts +17 -0
  259. package/types_generated/Libraries/Image/ImageSource.d.ts +94 -0
  260. package/types_generated/Libraries/Image/ImageTypes.flow.d.ts +61 -0
  261. package/types_generated/Libraries/Interaction/InteractionManager.d.ts +117 -0
  262. package/types_generated/Libraries/Interaction/PanResponder.d.ts +228 -0
  263. package/types_generated/Libraries/LayoutAnimation/LayoutAnimation.d.ts +76 -0
  264. package/types_generated/Libraries/Linking/Linking.d.ts +68 -0
  265. package/types_generated/Libraries/Lists/FlatList.d.ts +317 -0
  266. package/types_generated/Libraries/Lists/SectionList.d.ts +172 -0
  267. package/types_generated/Libraries/Lists/VirtualizedList.d.ts +19 -0
  268. package/types_generated/Libraries/Lists/VirtualizedSectionList.d.ts +19 -0
  269. package/types_generated/Libraries/LogBox/Data/LogBoxData.d.ts +78 -0
  270. package/types_generated/Libraries/LogBox/Data/LogBoxLog.d.ts +71 -0
  271. package/types_generated/Libraries/LogBox/Data/LogBoxSymbolication.d.ts +17 -0
  272. package/types_generated/Libraries/LogBox/Data/parseLogBoxLog.d.ts +49 -0
  273. package/types_generated/Libraries/LogBox/LogBox.d.ts +29 -0
  274. package/types_generated/Libraries/Modal/Modal.d.ts +110 -0
  275. package/types_generated/Libraries/NativeComponent/NativeComponentRegistry.d.ts +50 -0
  276. package/types_generated/Libraries/NativeModules/specs/NativeDialogManagerAndroid.d.ts +17 -0
  277. package/types_generated/Libraries/Network/FormData.d.ts +56 -0
  278. package/types_generated/Libraries/Network/RCTNetworking.d.ts +25 -0
  279. package/types_generated/Libraries/Network/RCTNetworkingEventDefinitions.flow.d.ts +22 -0
  280. package/types_generated/Libraries/Network/XMLHttpRequest.d.ts +114 -0
  281. package/types_generated/Libraries/Network/convertRequestBody.d.ts +21 -0
  282. package/types_generated/Libraries/Performance/Systrace.d.ts +61 -0
  283. package/types_generated/Libraries/PermissionsAndroid/PermissionsAndroid.d.ts +129 -0
  284. package/types_generated/Libraries/Pressability/Pressability.d.ts +241 -0
  285. package/types_generated/Libraries/Pressability/usePressability.d.ts +27 -0
  286. package/types_generated/Libraries/PushNotificationIOS/PushNotificationIOS.d.ts +323 -0
  287. package/types_generated/Libraries/ReactNative/AppRegistry.d.ts +14 -0
  288. package/types_generated/Libraries/ReactNative/AppRegistry.flow.d.ts +43 -0
  289. package/types_generated/Libraries/ReactNative/AppRegistryImpl.d.ts +73 -0
  290. package/types_generated/Libraries/ReactNative/DisplayMode.d.ts +24 -0
  291. package/types_generated/Libraries/ReactNative/I18nManager.d.ts +23 -0
  292. package/types_generated/Libraries/ReactNative/IPerformanceLogger.flow.d.ts +57 -0
  293. package/types_generated/Libraries/ReactNative/NativeI18nManager.d.ts +17 -0
  294. package/types_generated/Libraries/ReactNative/NativeUIManager.d.ts +17 -0
  295. package/types_generated/Libraries/ReactNative/ReactFabricPublicInstance/ReactFabricPublicInstance.d.ts +31 -0
  296. package/types_generated/Libraries/ReactNative/ReactFabricPublicInstance/ReactNativeAttributePayload.d.ts +15 -0
  297. package/types_generated/Libraries/ReactNative/RendererImplementation.d.ts +36 -0
  298. package/types_generated/Libraries/ReactNative/RendererProxy.d.ts +13 -0
  299. package/types_generated/Libraries/ReactNative/RootTag.d.ts +22 -0
  300. package/types_generated/Libraries/ReactNative/UIManager.d.ts +17 -0
  301. package/types_generated/Libraries/ReactNative/requireNativeComponent.d.ts +25 -0
  302. package/types_generated/Libraries/ReactPrivate/ReactNativePrivateInterface.d.ts +33 -0
  303. package/types_generated/Libraries/Renderer/shims/ReactFabric.d.ts +17 -0
  304. package/types_generated/Libraries/Renderer/shims/ReactNativeTypes.d.ts +155 -0
  305. package/types_generated/Libraries/Renderer/shims/ReactNativeViewConfigRegistry.d.ts +41 -0
  306. package/types_generated/Libraries/Settings/Settings.d.ts +21 -0
  307. package/types_generated/Libraries/Share/Share.d.ts +85 -0
  308. package/types_generated/Libraries/StyleSheet/EdgeInsetsPropType.d.ts +15 -0
  309. package/types_generated/Libraries/StyleSheet/PlatformColorValueTypes.d.ts +17 -0
  310. package/types_generated/Libraries/StyleSheet/PlatformColorValueTypesIOS.d.ts +27 -0
  311. package/types_generated/Libraries/StyleSheet/PointPropType.d.ts +16 -0
  312. package/types_generated/Libraries/StyleSheet/Rect.d.ts +22 -0
  313. package/types_generated/Libraries/StyleSheet/StyleSheet.d.ts +153 -0
  314. package/types_generated/Libraries/StyleSheet/StyleSheetExports.d.ts +94 -0
  315. package/types_generated/Libraries/StyleSheet/StyleSheetTypes.d.ts +851 -0
  316. package/types_generated/Libraries/StyleSheet/flattenStyle.d.ts +19 -0
  317. package/types_generated/Libraries/StyleSheet/private/_StyleSheetTypesOverrides.d.ts +17 -0
  318. package/types_generated/Libraries/StyleSheet/private/_TransformStyle.d.ts +76 -0
  319. package/types_generated/Libraries/StyleSheet/processColor.d.ts +18 -0
  320. package/types_generated/Libraries/Text/Text.d.ts +30 -0
  321. package/types_generated/Libraries/Text/TextAncestorContext.d.ts +20 -0
  322. package/types_generated/Libraries/Text/TextNativeComponent.d.ts +41 -0
  323. package/types_generated/Libraries/Text/TextProps.d.ts +220 -0
  324. package/types_generated/Libraries/TurboModule/RCTExport.d.ts +35 -0
  325. package/types_generated/Libraries/TurboModule/TurboModuleRegistry.d.ts +15 -0
  326. package/types_generated/Libraries/Types/CodegenTypes.d.ts +24 -0
  327. package/types_generated/Libraries/Types/CodegenTypesNamespace.d.ts +14 -0
  328. package/types_generated/Libraries/Types/CoreEventTypes.d.ts +355 -0
  329. package/types_generated/Libraries/Types/RootTagTypes.d.ts +13 -0
  330. package/types_generated/Libraries/Types/UIManagerJSInterface.d.ts +17 -0
  331. package/types_generated/Libraries/UTFSequence.d.ts +39 -0
  332. package/types_generated/Libraries/Utilities/Appearance.d.ts +31 -0
  333. package/types_generated/Libraries/Utilities/BackHandler.d.ts +27 -0
  334. package/types_generated/Libraries/Utilities/DevSettings.d.ts +34 -0
  335. package/types_generated/Libraries/Utilities/DeviceInfo.d.ts +17 -0
  336. package/types_generated/Libraries/Utilities/Dimensions.d.ts +54 -0
  337. package/types_generated/Libraries/Utilities/NativeAppearance.d.ts +17 -0
  338. package/types_generated/Libraries/Utilities/NativeDeviceInfo.d.ts +14 -0
  339. package/types_generated/Libraries/Utilities/PixelRatio.d.ts +110 -0
  340. package/types_generated/Libraries/Utilities/Platform.d.ts +16 -0
  341. package/types_generated/Libraries/Utilities/PlatformTypes.d.ts +134 -0
  342. package/types_generated/Libraries/Utilities/codegenNativeCommands.d.ts +19 -0
  343. package/types_generated/Libraries/Utilities/codegenNativeComponent.d.ts +24 -0
  344. package/types_generated/Libraries/Utilities/deepFreezeAndThrowOnMutationInDev.d.ts +33 -0
  345. package/types_generated/Libraries/Utilities/differ/deepDiffer.d.ts +19 -0
  346. package/types_generated/Libraries/Utilities/useColorScheme.d.ts +15 -0
  347. package/types_generated/Libraries/Utilities/useWindowDimensions.d.ts +15 -0
  348. package/types_generated/Libraries/Vibration/Vibration.d.ts +29 -0
  349. package/types_generated/Libraries/vendor/core/ErrorUtils.d.ts +39 -0
  350. package/types_generated/Libraries/vendor/emitter/EventEmitter.d.ts +67 -0
  351. package/types_generated/index.d.ts +184 -0
  352. package/types_generated/src/private/components/virtualcollection/FlingConstants.d.ts +20 -0
  353. package/types_generated/src/private/components/virtualcollection/Virtual.d.ts +46 -0
  354. package/types_generated/src/private/components/virtualcollection/VirtualCollectionView.d.ts +81 -0
  355. package/types_generated/src/private/components/virtualcollection/column/VirtualColumn.d.ts +23 -0
  356. package/types_generated/src/private/components/virtualcollection/column/VirtualColumnGenerator.d.ts +17 -0
  357. package/types_generated/src/private/components/virtualcollection/dom/getScrollParent.d.ts +21 -0
  358. package/types_generated/src/private/components/virtualcollection/row/VirtualRow.d.ts +23 -0
  359. package/types_generated/src/private/components/virtualview/VirtualView.d.ts +75 -0
  360. package/types_generated/src/private/components/virtualview/VirtualViewExperimentalNativeComponent.d.ts +107 -0
  361. package/types_generated/src/private/components/virtualview/VirtualViewNativeComponent.d.ts +107 -0
  362. package/types_generated/src/private/devsupport/devmenu/DevMenu.d.ts +28 -0
  363. package/types_generated/src/private/specs_DEPRECATED/components/AndroidSwitchNativeComponent.d.ts +53 -0
  364. package/types_generated/src/private/specs_DEPRECATED/components/ProgressBarAndroidNativeComponent.d.ts +36 -0
  365. package/types_generated/src/private/specs_DEPRECATED/components/SwitchNativeComponent.d.ts +51 -0
  366. package/types_generated/src/private/specs_DEPRECATED/modules/NativeAppearance.d.ts +26 -0
  367. package/types_generated/src/private/specs_DEPRECATED/modules/NativeDeviceInfo.d.ts +46 -0
  368. package/types_generated/src/private/specs_DEPRECATED/modules/NativeDialogManagerAndroid.d.ts +37 -0
  369. package/types_generated/src/private/specs_DEPRECATED/modules/NativeExceptionsManager.d.ts +45 -0
  370. package/types_generated/src/private/specs_DEPRECATED/modules/NativeI18nManager.d.ts +27 -0
  371. package/types_generated/src/private/specs_DEPRECATED/modules/NativeUIManager.d.ts +109 -0
  372. package/types_generated/src/private/styles/composeStyles.d.ts +19 -0
  373. package/types_generated/src/private/types/HostComponent.d.ts +19 -0
  374. package/types_generated/src/private/types/HostInstance.d.ts +92 -0
  375. package/types_generated/src/private/webapis/dom/events/CustomEvent.d.ts +27 -0
  376. package/types_generated/src/private/webapis/dom/events/Event.d.ts +50 -0
  377. package/types_generated/src/private/webapis/dom/events/EventTarget.d.ts +36 -0
  378. package/types_generated/src/private/webapis/dom/nodes/ReactNativeDocument.d.ts +33 -0
  379. package/types_generated/src/private/webapis/dom/nodes/ReactNativeElement.d.ts +36 -0
  380. package/types_generated/src/private/webapis/dom/nodes/ReadOnlyCharacterData.d.ts +30 -0
  381. package/types_generated/src/private/webapis/dom/nodes/ReadOnlyElement.d.ts +54 -0
  382. package/types_generated/src/private/webapis/dom/nodes/ReadOnlyNode.d.ts +129 -0
  383. package/types_generated/src/private/webapis/dom/nodes/ReadOnlyText.d.ts +24 -0
  384. package/types_generated/src/private/webapis/dom/nodes/internals/NodeInternals.d.ts +36 -0
  385. package/types_generated/src/private/webapis/dom/nodes/internals/ReactNativeDocumentElementInstanceHandle.d.ts +23 -0
  386. package/types_generated/src/private/webapis/dom/nodes/internals/ReactNativeDocumentInstanceHandle.d.ts +22 -0
  387. package/types_generated/src/private/webapis/dom/nodes/specs/NativeDOM.d.ts +229 -0
  388. package/types_generated/src/private/webapis/dom/oldstylecollections/HTMLCollection.d.ts +22 -0
  389. package/types_generated/src/private/webapis/dom/oldstylecollections/NodeList.d.ts +25 -0
  390. package/types_generated/src/private/webapis/geometry/DOMRect.d.ts +46 -0
  391. package/types_generated/src/private/webapis/geometry/DOMRectReadOnly.d.ts +73 -0
  392. package/types_generated/src/private/webapis/utils/ArrayLikeUtils.d.ts +27 -0
  393. package/types_generated/tsconfig.json +3 -0
  394. package/types_generated/tsconfig.test.json +16 -0
@@ -0,0 +1,184 @@
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
+ * @generated SignedSource<<76867b6f09a4741f192b87536235e4db>>
8
+ *
9
+ * This file was translated from Flow by scripts/js-api/build-types/index.js.
10
+ * Original file: packages/react-native/index.js.flow
11
+ */
12
+
13
+ /// <reference path="../src/types/globals.d.ts" />
14
+
15
+
16
+ export type { ActivityIndicatorProps } from "./Libraries/Components/ActivityIndicator/ActivityIndicator";
17
+ export { default as ActivityIndicator } from "./Libraries/Components/ActivityIndicator/ActivityIndicator";
18
+ export type { ButtonProps } from "./Libraries/Components/Button";
19
+ export { default as Button } from "./Libraries/Components/Button";
20
+ export type { DrawerLayoutAndroidProps, DrawerSlideEvent } from "./Libraries/Components/DrawerAndroid/DrawerLayoutAndroid";
21
+ export { default as DrawerLayoutAndroid } from "./Libraries/Components/DrawerAndroid/DrawerLayoutAndroid";
22
+ export type { FlatListProps } from "./Libraries/Lists/FlatList";
23
+ export { default as FlatList } from "./Libraries/Lists/FlatList";
24
+ export type { ImageBackgroundProps, ImageErrorEvent, ImageLoadEvent, ImageProgressEventIOS, ImageProps, ImagePropsAndroid, ImagePropsBase, ImagePropsIOS, ImageResolvedAssetSource, ImageSize, ImageSourcePropType } from "./Libraries/Image/Image";
25
+ export type { ImageRequireSource, ImageSource, ImageURISource } from "./Libraries/Image/ImageSource";
26
+ export { default as Image } from "./Libraries/Image/Image";
27
+ export { default as ImageBackground } from "./Libraries/Image/ImageBackground";
28
+ export type { InputAccessoryViewProps } from "./Libraries/Components/TextInput/InputAccessoryView";
29
+ export { default as InputAccessoryView } from "./Libraries/Components/TextInput/InputAccessoryView";
30
+ export type { KeyboardAvoidingViewProps } from "./Libraries/Components/Keyboard/KeyboardAvoidingView";
31
+ export { default as KeyboardAvoidingView } from "./Libraries/Components/Keyboard/KeyboardAvoidingView";
32
+ export type { LayoutConformanceProps } from "./Libraries/Components/LayoutConformance/LayoutConformance";
33
+ export { default as experimental_LayoutConformance } from "./Libraries/Components/LayoutConformance/LayoutConformance";
34
+ export type { ModalBaseProps, ModalProps, ModalPropsAndroid, ModalPropsIOS } from "./Libraries/Modal/Modal";
35
+ export { default as Modal } from "./Libraries/Modal/Modal";
36
+ export type { PressableAndroidRippleConfig, PressableProps, PressableStateCallbackType } from "./Libraries/Components/Pressable/Pressable";
37
+ export { default as Pressable } from "./Libraries/Components/Pressable/Pressable";
38
+ export type { ProgressBarAndroidProps } from "./Libraries/Components/ProgressBarAndroid/ProgressBarAndroid";
39
+ export { default as ProgressBarAndroid } from "./Libraries/Components/ProgressBarAndroid/ProgressBarAndroid";
40
+ export type { RefreshControlProps, RefreshControlPropsAndroid, RefreshControlPropsIOS } from "./Libraries/Components/RefreshControl/RefreshControl";
41
+ export { default as RefreshControl } from "./Libraries/Components/RefreshControl/RefreshControl";
42
+ export { default as SafeAreaView } from "./Libraries/Components/SafeAreaView/SafeAreaView";
43
+ export type { ScrollViewImperativeMethods, ScrollViewScrollToOptions, ScrollResponderType, ScrollViewProps, ScrollViewPropsAndroid, ScrollViewPropsIOS } from "./Libraries/Components/ScrollView/ScrollView";
44
+ export { default as ScrollView } from "./Libraries/Components/ScrollView/ScrollView";
45
+ export type { SectionListProps, SectionListRenderItem, SectionListRenderItemInfo, SectionListData } from "./Libraries/Lists/SectionList";
46
+ export { default as SectionList } from "./Libraries/Lists/SectionList";
47
+ export type { StatusBarAnimation, StatusBarProps, StatusBarStyle } from "./Libraries/Components/StatusBar/StatusBar";
48
+ export { default as StatusBar } from "./Libraries/Components/StatusBar/StatusBar";
49
+ export type { SwitchChangeEvent, SwitchProps } from "./Libraries/Components/Switch/Switch";
50
+ export { default as Switch } from "./Libraries/Components/Switch/Switch";
51
+ export type { TextProps } from "./Libraries/Text/Text";
52
+ export { default as Text } from "./Libraries/Text/Text";
53
+ export type { NativeTextProps as unstable_NativeTextProps } from "./Libraries/Text/TextNativeComponent";
54
+ export { NativeText as unstable_NativeText } from "./Libraries/Text/TextNativeComponent";
55
+ export { default as unstable_TextAncestorContext } from "./Libraries/Text/TextAncestorContext";
56
+ export type { AutoCapitalize, EnterKeyHintTypeOptions, KeyboardTypeOptions, InputModeOptions, TextContentType, TextInputAndroidProps, TextInputIOSProps, TextInputProps, TextInputChangeEvent, TextInputContentSizeChangeEvent, TextInputEndEditingEvent, TextInputFocusEvent, TextInputKeyPressEvent, TextInputSelectionChangeEvent, TextInputSubmitEditingEvent, ReturnKeyTypeOptions, SubmitBehavior } from "./Libraries/Components/TextInput/TextInput";
57
+ export { default as TextInput } from "./Libraries/Components/TextInput/TextInput";
58
+ export { default as Touchable } from "./Libraries/Components/Touchable/Touchable";
59
+ export type { TouchableHighlightProps } from "./Libraries/Components/Touchable/TouchableHighlight";
60
+ export { default as TouchableHighlight } from "./Libraries/Components/Touchable/TouchableHighlight";
61
+ export type { TouchableNativeFeedbackProps } from "./Libraries/Components/Touchable/TouchableNativeFeedback";
62
+ export { default as TouchableNativeFeedback } from "./Libraries/Components/Touchable/TouchableNativeFeedback";
63
+ export type { TouchableOpacityProps } from "./Libraries/Components/Touchable/TouchableOpacity";
64
+ export { default as TouchableOpacity } from "./Libraries/Components/Touchable/TouchableOpacity";
65
+ export type { TouchableWithoutFeedbackProps } from "./Libraries/Components/Touchable/TouchableWithoutFeedback";
66
+ export { default as TouchableWithoutFeedback } from "./Libraries/Components/Touchable/TouchableWithoutFeedback";
67
+ export type { AccessibilityActionEvent, AccessibilityProps, AccessibilityRole, AccessibilityState, AccessibilityValue, Role } from "./Libraries/Components/View/ViewAccessibility";
68
+ export type { GestureResponderHandlers, TVViewPropsIOS, ViewProps, ViewPropsAndroid, ViewPropsIOS } from "./Libraries/Components/View/ViewPropTypes";
69
+ export { default as View } from "./Libraries/Components/View/View";
70
+ export { default as unstable_NativeView } from "./Libraries/Components/View/ViewNativeComponent";
71
+ export type { ListRenderItemInfo, ListRenderItem, ListViewToken, Separators, VirtualizedListProps } from "./Libraries/Lists/VirtualizedList";
72
+ export { default as VirtualizedList } from "./Libraries/Lists/VirtualizedList";
73
+ export type { ScrollToLocationParamsType, SectionBase, VirtualizedSectionListProps } from "./Libraries/Lists/VirtualizedSectionList";
74
+ export { default as VirtualizedSectionList } from "./Libraries/Lists/VirtualizedSectionList";
75
+ export { default as AccessibilityInfo } from "./Libraries/Components/AccessibilityInfo/AccessibilityInfo";
76
+ export type { ActionSheetIOSOptions, ShareActionSheetIOSOptions, ShareActionSheetError } from "./Libraries/ActionSheetIOS/ActionSheetIOS";
77
+ export { default as ActionSheetIOS } from "./Libraries/ActionSheetIOS/ActionSheetIOS";
78
+ export type { AlertType, AlertButtonStyle, AlertButton, AlertOptions } from "./Libraries/Alert/Alert";
79
+ export { default as Alert } from "./Libraries/Alert/Alert";
80
+ export { default as Animated } from "./Libraries/Animated/Animated";
81
+ export * as Appearance from "./Libraries/Utilities/Appearance";
82
+ export type { TaskProvider, ComponentProvider, ComponentProviderInstrumentationHook, AppConfig, Runnable, Runnables, Registry, WrapperComponentProvider, RootViewStyleProvider } from "./Libraries/ReactNative/AppRegistry";
83
+ export { AppRegistry } from "./Libraries/ReactNative/AppRegistry";
84
+ export type { AppStateStatus, AppStateEvent } from "./Libraries/AppState/AppState";
85
+ export { default as AppState } from "./Libraries/AppState/AppState";
86
+ export type { BackPressEventName } from "./Libraries/Utilities/BackHandler";
87
+ export { default as BackHandler } from "./Libraries/Utilities/BackHandler";
88
+ export { default as Clipboard } from "./Libraries/Components/Clipboard/Clipboard";
89
+ export { default as codegenNativeComponent } from "./Libraries/Utilities/codegenNativeComponent";
90
+ export { default as codegenNativeCommands } from "./Libraries/Utilities/codegenNativeCommands";
91
+ export { default as DeviceEventEmitter } from "./Libraries/EventEmitter/RCTDeviceEventEmitter";
92
+ export type { DeviceInfoConstants } from "./Libraries/Utilities/DeviceInfo";
93
+ export { default as DeviceInfo } from "./Libraries/Utilities/DeviceInfo";
94
+ export { default as DevMenu } from "./src/private/devsupport/devmenu/DevMenu";
95
+ export { default as DevSettings } from "./Libraries/Utilities/DevSettings";
96
+ export type { DimensionsPayload, DisplayMetrics, DisplayMetricsAndroid, ScaledSize } from "./Libraries/Utilities/Dimensions";
97
+ export { default as Dimensions } from "./Libraries/Utilities/Dimensions";
98
+ export type { DynamicColorIOSTuple } from "./Libraries/StyleSheet/PlatformColorValueTypesIOS";
99
+ export { DynamicColorIOS } from "./Libraries/StyleSheet/PlatformColorValueTypesIOS";
100
+ export type { EasingFunction } from "./Libraries/Animated/Easing";
101
+ export { default as Easing } from "./Libraries/Animated/Easing";
102
+ export { findNodeHandle } from "./Libraries/ReactNative/RendererProxy";
103
+ export { default as I18nManager } from "./Libraries/ReactNative/I18nManager";
104
+ export type { Handle, PromiseTask, SimpleTask } from "./Libraries/Interaction/InteractionManager";
105
+ export { default as InteractionManager } from "./Libraries/Interaction/InteractionManager";
106
+ export type { AndroidKeyboardEvent, IOSKeyboardEvent, KeyboardEvent, KeyboardEventEasing, KeyboardEventName, KeyboardMetrics } from "./Libraries/Components/Keyboard/Keyboard";
107
+ export { default as Keyboard } from "./Libraries/Components/Keyboard/Keyboard";
108
+ export type { LayoutAnimationAnim, LayoutAnimationConfig, LayoutAnimationProperties, LayoutAnimationProperty, LayoutAnimationType, LayoutAnimationTypes } from "./Libraries/LayoutAnimation/LayoutAnimation";
109
+ export { default as LayoutAnimation } from "./Libraries/LayoutAnimation/LayoutAnimation";
110
+ export { default as Linking } from "./Libraries/Linking/Linking";
111
+ export type { ExtendedExceptionData, IgnorePattern, LogData } from "./Libraries/LogBox/LogBox";
112
+ export { default as LogBox } from "./Libraries/LogBox/LogBox";
113
+ export { default as NativeAppEventEmitter } from "./Libraries/EventEmitter/RCTNativeAppEventEmitter";
114
+ export * as NativeComponentRegistry from "./Libraries/NativeComponent/NativeComponentRegistry";
115
+ export { default as NativeDialogManagerAndroid } from "./Libraries/NativeModules/specs/NativeDialogManagerAndroid";
116
+ export type { EmitterSubscription, NativeEventSubscription } from "./Libraries/EventEmitter/NativeEventEmitter";
117
+ export { default as NativeEventEmitter } from "./Libraries/EventEmitter/NativeEventEmitter";
118
+ export { default as NativeModules } from "./Libraries/BatchedBridge/NativeModules";
119
+ export { default as Networking } from "./Libraries/Network/RCTNetworking";
120
+ export type { PanResponderCallbacks, PanResponderGestureState, PanResponderInstance } from "./Libraries/Interaction/PanResponder";
121
+ export { default as PanResponder } from "./Libraries/Interaction/PanResponder";
122
+ export type { Permission, PermissionStatus, Rationale } from "./Libraries/PermissionsAndroid/PermissionsAndroid";
123
+ export { default as PermissionsAndroid } from "./Libraries/PermissionsAndroid/PermissionsAndroid";
124
+ export { default as PixelRatio } from "./Libraries/Utilities/PixelRatio";
125
+ export type { PlatformOSType, PlatformSelectSpec } from "./Libraries/Utilities/PlatformTypes";
126
+ export { default as Platform } from "./Libraries/Utilities/Platform";
127
+ export { PlatformColor } from "./Libraries/StyleSheet/PlatformColorValueTypes";
128
+ export type { PushNotificationEventName, PushNotificationPermissions } from "./Libraries/PushNotificationIOS/PushNotificationIOS";
129
+ export { default as PushNotificationIOS } from "./Libraries/PushNotificationIOS/PushNotificationIOS";
130
+ export type { ProcessedColorValue } from "./Libraries/StyleSheet/processColor";
131
+ export { default as processColor } from "./Libraries/StyleSheet/processColor";
132
+ export { default as registerCallableModule } from "./Libraries/Core/registerCallableModule";
133
+ export { default as requireNativeComponent } from "./Libraries/ReactNative/requireNativeComponent";
134
+ export { default as ReactNativeVersion } from "./Libraries/Core/ReactNativeVersion";
135
+ export type { RootTag } from "./Libraries/ReactNative/RootTag";
136
+ export { RootTagContext } from "./Libraries/ReactNative/RootTag";
137
+ export { default as Settings } from "./Libraries/Settings/Settings";
138
+ export type { ShareAction, ShareContent, ShareOptions } from "./Libraries/Share/Share";
139
+ export { default as Share } from "./Libraries/Share/Share";
140
+ export type { ColorValue, ImageStyle, FilterFunction, FontVariant, NativeColorValue, OpaqueColorValue, StyleProp, TextStyle, TransformsStyle, ViewStyle } from "./Libraries/StyleSheet/StyleSheet";
141
+ export type { BoxShadowValue, CursorValue, DimensionValue, DropShadowValue, EdgeInsetsValue, PointValue } from "./Libraries/StyleSheet/StyleSheetTypes";
142
+ export type { Insets } from "./Libraries/StyleSheet/Rect";
143
+ export { default as StyleSheet } from "./Libraries/StyleSheet/StyleSheet";
144
+ export * as Systrace from "./Libraries/Performance/Systrace";
145
+ export { default as ToastAndroid } from "./Libraries/Components/ToastAndroid/ToastAndroid";
146
+ export * as TurboModuleRegistry from "./Libraries/TurboModule/TurboModuleRegistry";
147
+ export { default as UIManager } from "./Libraries/ReactNative/UIManager";
148
+ export declare function unstable_batchedUpdates<T>(fn: (bookkeeping: T) => void, bookkeeping: T): void;
149
+ export { default as useAnimatedValue } from "./Libraries/Animated/useAnimatedValue";
150
+ export { default as useAnimatedValueXY } from "./Libraries/Animated/useAnimatedValueXY";
151
+ export { default as useAnimatedColor } from "./Libraries/Animated/useAnimatedColor";
152
+ export type { PressabilityConfig, EventHandlers as PressabilityEventHandlers } from "./Libraries/Pressability/Pressability";
153
+ export { default as usePressability } from "./Libraries/Pressability/usePressability";
154
+ export { default as useColorScheme } from "./Libraries/Utilities/useColorScheme";
155
+ export { default as useWindowDimensions } from "./Libraries/Utilities/useWindowDimensions";
156
+ export { default as UTFSequence } from "./Libraries/UTFSequence";
157
+ export { default as Vibration } from "./Libraries/Vibration/Vibration";
158
+ export type { BlurEvent, FocusEvent, GestureResponderEvent, KeyDownEvent, KeyEvent, KeyUpEvent, LayoutChangeEvent, LayoutRectangle, MouseEvent, PointerEvent, NativeMouseEvent, NativePointerEvent, NativeScrollEvent, NativeSyntheticEvent, NativeTouchEvent, NativeUIEvent, ResponderSyntheticEvent, ScrollEvent, TargetedEvent, TextLayoutEvent } from "./Libraries/Types/CoreEventTypes";
159
+ export type { TurboModule } from "./Libraries/TurboModule/RCTExport";
160
+ export type * from "./Libraries/Types/CodegenTypesNamespace";
161
+ export type { HostInstance, NativeMethods, NativeMethodsMixin, MeasureInWindowOnSuccessCallback, MeasureLayoutOnSuccessCallback, MeasureOnSuccessCallback } from "./src/private/types/HostInstance";
162
+ export type { HostComponent } from "./src/private/types/HostComponent";
163
+ export type { ColorSchemeName } from "./src/private/specs_DEPRECATED/modules/NativeAppearance";
164
+ export type { ErrorUtils } from "./Libraries/vendor/core/ErrorUtils";
165
+ export type { PublicRootInstance, PublicTextInstance } from "./Libraries/ReactPrivate/ReactNativePrivateInterface";
166
+ export type { EventSubscription, IEventEmitter } from "./Libraries/vendor/emitter/EventEmitter";
167
+ export { default as EventEmitter } from "./Libraries/vendor/emitter/EventEmitter";
168
+ export { default as unstable_VirtualView, VirtualViewMode } from "./src/private/components/virtualview/VirtualView";
169
+ export type { ModeChangeEvent } from "./src/private/components/virtualview/VirtualView";
170
+ export { VirtualArray as unstable_VirtualArray } from "./src/private/components/virtualcollection/Virtual";
171
+ export type { Item as unstable_VirtualItem, VirtualCollection as unstable_VirtualCollection } from "./src/private/components/virtualcollection/Virtual";
172
+ export { createVirtualCollectionView as unstable_createVirtualCollectionView } from "./src/private/components/virtualcollection/VirtualCollectionView";
173
+ export type { VirtualCollectionGenerator as unstable_VirtualCollectionGenerator, VirtualCollectionLayoutComponent as unstable_VirtualCollectionLayoutComponent, VirtualCollectionViewComponent as unstable_VirtualCollectionViewComponent } from "./src/private/components/virtualcollection/VirtualCollectionView";
174
+ export { default as unstable_VirtualColumn } from "./src/private/components/virtualcollection/column/VirtualColumn";
175
+ export { default as unstable_VirtualColumnGenerator } from "./src/private/components/virtualcollection/column/VirtualColumnGenerator";
176
+ export { default as unstable_VirtualRow } from "./src/private/components/virtualcollection/row/VirtualRow";
177
+ export { default as unstable_getScrollParent } from "./src/private/components/virtualcollection/dom/getScrollParent";
178
+ export { DEFAULT_INITIAL_NUM_TO_RENDER as unstable_DEFAULT_INITIAL_NUM_TO_RENDER } from "./src/private/components/virtualcollection/FlingConstants";
179
+ export { default as TVEventHandler } from "./Libraries/Components/TV/TVEventHandler";
180
+ export { default as TVEventControl } from "./Libraries/Components/TV/TVEventControl";
181
+ export { default as TVFocusGuideView } from "./Libraries/Components/TV/TVFocusGuideView";
182
+ export type { TVRemoteEvent } from "./Libraries/Types/CoreEventTypes";
183
+ export { default as TVTextScrollView } from "./Libraries/Components/TV/TVTextScrollView";
184
+ export { default as useTVEventHandler } from "./Libraries/Components/TV/useTVEventHandler";
@@ -0,0 +1,20 @@
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
+ * @generated SignedSource<<d9f5a1e6ae9f47ac5df71566ff62e792>>
8
+ *
9
+ * This file was translated from Flow by scripts/js-api/build-types/index.js.
10
+ * Original file: packages/react-native/src/private/components/virtualcollection/FlingConstants.js
11
+ */
12
+
13
+ export declare const DEFAULT_INITIAL_NUM_TO_RENDER: 7;
14
+ export declare type DEFAULT_INITIAL_NUM_TO_RENDER = typeof DEFAULT_INITIAL_NUM_TO_RENDER;
15
+ export declare const INITIAL_NUM_TO_RENDER: number;
16
+ export declare type INITIAL_NUM_TO_RENDER = typeof INITIAL_NUM_TO_RENDER;
17
+ export declare const FALLBACK_ESTIMATED_HEIGHT: number;
18
+ export declare type FALLBACK_ESTIMATED_HEIGHT = typeof FALLBACK_ESTIMATED_HEIGHT;
19
+ export declare const FALLBACK_ESTIMATED_WIDTH: number;
20
+ export declare type FALLBACK_ESTIMATED_WIDTH = typeof FALLBACK_ESTIMATED_WIDTH;
@@ -0,0 +1,46 @@
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
+ * @generated SignedSource<<33833b02d28cd252c38e5b9a22f0cbc5>>
8
+ *
9
+ * This file was translated from Flow by scripts/js-api/build-types/index.js.
10
+ * Original file: packages/react-native/src/private/components/virtualcollection/Virtual.js
11
+ */
12
+
13
+ /**
14
+ * An item to virtualize must be an item. It can optionally have a string `id`
15
+ * parameter, but that is not currently represented because it makes the Flow
16
+ * types more complicated.
17
+ */
18
+ export interface Item {}
19
+ /**
20
+ * An interface for a collection of items, without requiring that each item be
21
+ * eagerly (or lazily) allocated.
22
+ */
23
+ export interface VirtualCollection<T extends Item> {
24
+ /**
25
+ * The number of items in the collection. This can either be a numeric scalar
26
+ * or a getter function that is computed on access. However, it should remain
27
+ * constant for the lifetime of this object.
28
+ */
29
+ readonly size: number;
30
+ /**
31
+ * If an item exists at the supplied index, this should return a consistent
32
+ * item for the lifetime of this object. If an item does not exist at the
33
+ * supplied index, this should throw an error.
34
+ */
35
+ at(index: number): T;
36
+ }
37
+ /**
38
+ * An implementation of `VirtualCollection` that wraps an array. Although easy to
39
+ * use, this is not recommended for larger arrays because each element of an
40
+ * array is eagerly allocated.
41
+ */
42
+ export declare class VirtualArray<T extends Item> implements VirtualCollection<T> {
43
+ readonly size: number;
44
+ readonly at: (index: number) => T;
45
+ constructor(input: Readonly<ArrayLike<T>>);
46
+ }
@@ -0,0 +1,81 @@
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
+ * @generated SignedSource<<4a453a0ec1c700558dc575e89b209b7a>>
8
+ *
9
+ * This file was translated from Flow by scripts/js-api/build-types/index.js.
10
+ * Original file: packages/react-native/src/private/components/virtualcollection/VirtualCollectionView.js
11
+ */
12
+
13
+ import type { ViewStyleProp } from "../../../../Libraries/StyleSheet/StyleSheet";
14
+ import type { ModeChangeEvent } from "../virtualview/VirtualView";
15
+ import type { Item, VirtualCollection } from "./Virtual";
16
+ import * as React from "react";
17
+ export type VirtualCollectionLayoutComponent<TLayoutProps extends {}> = (props: Omit<TLayoutProps, keyof {
18
+ children: ReadonlyArray<React.ReactNode>;
19
+ spacer: React.ReactNode;
20
+ }> & {
21
+ children: ReadonlyArray<React.ReactNode>;
22
+ spacer: React.ReactNode;
23
+ }) => React.ReactNode;
24
+ export type VirtualCollectionGenerator = Readonly<{
25
+ initial: Readonly<{
26
+ itemCount: number;
27
+ spacerStyle: (itemCount: number) => ViewStyleProp;
28
+ }>;
29
+ next: (event: ModeChangeEvent) => {
30
+ itemCount: number;
31
+ spacerStyle: (itemCount: number) => ViewStyleProp;
32
+ };
33
+ }>;
34
+ export type VirtualCollectionViewComponent<TLayoutProps extends {}> = <TItem extends Item>(props: Omit<TLayoutProps, keyof {
35
+ children: (item: TItem, key: string) => React.ReactNode;
36
+ items: VirtualCollection<TItem>;
37
+ itemToKey?: ($$PARAM_0$$: TItem) => string;
38
+ removeClippedSubviews?: boolean;
39
+ testID?: null | undefined | string;
40
+ }> & {
41
+ children: (item: TItem, key: string) => React.ReactNode;
42
+ items: VirtualCollection<TItem>;
43
+ itemToKey?: ($$PARAM_0$$: TItem) => string;
44
+ removeClippedSubviews?: boolean;
45
+ testID?: null | undefined | string;
46
+ }) => React.ReactNode;
47
+ /**
48
+ * Creates a component that virtually renders a collection of items and manages
49
+ * lazy rendering, memoization, and pagination. The resulting component accepts
50
+ * the following base props:
51
+ *
52
+ * - `children`: A function maps an item to a React node.
53
+ * - `items`: A collection of items to render.
54
+ * - `itemToKey`: A function maps an item to a unique key.
55
+ *
56
+ * The first argument is a layout component that defines layout of the item and
57
+ * spacer. It always receives the following props:
58
+ *
59
+ * - `children`: An array of React nodes (for items rendered so far).
60
+ * - `spacer`: A React node (estimates layout for items not yet rendered).
61
+ *
62
+ * The layout component must render `children` and `spacer`. It can also define
63
+ * additional props that will be passed through from the resulting component.
64
+ *
65
+ * The second argument is a generator that defines the initial rendering and
66
+ * pagination behavior. The initial rendering behavior is defined by the
67
+ * `initial` property with the following properties:
68
+ *
69
+ * - `itemCount`: Number of items to render initially.
70
+ * - `spacerStyle`: A function that estimates the layout of the spacer. It
71
+ * receives the number of items being rendered as an argument.
72
+ *
73
+ * The pagination behavior is defined by the `next` function that receives a
74
+ * `ModeChangeEvent` and then returns an object with the following properties:
75
+ *
76
+ * - `itemCount`: Number of additional items needed to fill `thresholdRect`.
77
+ * - `spacerStyle`: A function that estimates the layout of the spacer. It
78
+ * receives the number of items being rendered as an argument.
79
+ *
80
+ */
81
+ export declare function createVirtualCollectionView<TLayoutProps extends {}>(VirtualLayout: VirtualCollectionLayoutComponent<TLayoutProps>, $$PARAM_1$$: VirtualCollectionGenerator): VirtualCollectionViewComponent<TLayoutProps>;
@@ -0,0 +1,23 @@
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
+ * @generated SignedSource<<502bc5e7d28680ebf63c67cec2aebbe9>>
8
+ *
9
+ * This file was translated from Flow by scripts/js-api/build-types/index.js.
10
+ * Original file: packages/react-native/src/private/components/virtualcollection/column/VirtualColumn.js
11
+ */
12
+
13
+ import type { Item, VirtualCollection } from "../Virtual";
14
+ import * as React from "react";
15
+ declare const $$VirtualColumn: <TItem extends Item>(props: {
16
+ children: (item: TItem, key: string) => React.ReactNode;
17
+ items: VirtualCollection<TItem>;
18
+ itemToKey?: ($$PARAM_0$$: TItem) => string;
19
+ removeClippedSubviews?: boolean;
20
+ testID?: null | undefined | string;
21
+ }) => React.ReactNode;
22
+ declare type $$VirtualColumn = typeof $$VirtualColumn;
23
+ export default $$VirtualColumn;
@@ -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
+ * @generated SignedSource<<ddeeb05108a9557270d78c71abb0dfa8>>
8
+ *
9
+ * This file was translated from Flow by scripts/js-api/build-types/index.js.
10
+ * Original file: packages/react-native/src/private/components/virtualcollection/column/VirtualColumnGenerator.js
11
+ */
12
+
13
+ import type { VirtualCollectionGenerator } from "../VirtualCollectionView";
14
+ declare const VirtualColumnGenerator: VirtualCollectionGenerator;
15
+ declare const $$VirtualColumnGenerator: typeof VirtualColumnGenerator;
16
+ declare type $$VirtualColumnGenerator = typeof $$VirtualColumnGenerator;
17
+ export default $$VirtualColumnGenerator;
@@ -0,0 +1,21 @@
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
+ * @generated SignedSource<<da143cc6f517eda55481fb0bcc6158ba>>
8
+ *
9
+ * This file was translated from Flow by scripts/js-api/build-types/index.js.
10
+ * Original file: packages/react-native/src/private/components/virtualcollection/dom/getScrollParent.js
11
+ */
12
+
13
+ import ReactNativeElement from "../../../webapis/dom/nodes/ReactNativeElement";
14
+ /**
15
+ * Finds the nearest ancestor of the supplied node that is a scrollable node.
16
+ *
17
+ * Unlike the web-equivalent function, the return type is nullable because the
18
+ * root is not an implicitly scrollable node.
19
+ */
20
+ declare function getScrollParent(node: ReactNativeElement): ReactNativeElement | null;
21
+ export default getScrollParent;
@@ -0,0 +1,23 @@
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
+ * @generated SignedSource<<a6335eb8723e537d5864fde5a5e4d6c1>>
8
+ *
9
+ * This file was translated from Flow by scripts/js-api/build-types/index.js.
10
+ * Original file: packages/react-native/src/private/components/virtualcollection/row/VirtualRow.js
11
+ */
12
+
13
+ import type { Item, VirtualCollection } from "../Virtual";
14
+ import * as React from "react";
15
+ declare const $$VirtualRow: <TItem extends Item>(props: {
16
+ children: (item: TItem, key: string) => React.ReactNode;
17
+ items: VirtualCollection<TItem>;
18
+ itemToKey?: ($$PARAM_0$$: TItem) => string;
19
+ removeClippedSubviews?: boolean;
20
+ testID?: null | undefined | string;
21
+ }) => React.ReactNode;
22
+ declare type $$VirtualRow = typeof $$VirtualRow;
23
+ export default $$VirtualRow;
@@ -0,0 +1,75 @@
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
+ * @generated SignedSource<<cc049014d5724513d007883df85ec23d>>
8
+ *
9
+ * This file was translated from Flow by scripts/js-api/build-types/index.js.
10
+ * Original file: packages/react-native/src/private/components/virtualview/VirtualView.js
11
+ */
12
+
13
+ import type { ViewStyleProp } from "../../../../Libraries/StyleSheet/StyleSheet";
14
+ import type { HostInstance } from "../../types/HostInstance";
15
+ import type { NativeModeChangeEvent } from "./VirtualViewNativeComponent";
16
+ import VirtualViewExperimentalNativeComponent from "./VirtualViewExperimentalNativeComponent";
17
+ import * as React from "react";
18
+ export declare enum VirtualViewMode {
19
+ Visible = 0,
20
+ Prerender = 1,
21
+ Hidden = 2,
22
+ }
23
+ export declare namespace VirtualViewMode {
24
+ export function cast(value: number | null | undefined): VirtualViewMode;
25
+ export function isValid(value: number | null | undefined): value is VirtualViewMode;
26
+ export function members(): IterableIterator<VirtualViewMode>;
27
+ export function getName(value: VirtualViewMode): string;
28
+ }
29
+ export declare enum VirtualViewRenderState {
30
+ Unknown = 0,
31
+ Rendered = 1,
32
+ None = 2,
33
+ }
34
+ export declare namespace VirtualViewRenderState {
35
+ export function cast(value: number | null | undefined): VirtualViewRenderState;
36
+ export function isValid(value: number | null | undefined): value is VirtualViewRenderState;
37
+ export function members(): IterableIterator<VirtualViewRenderState>;
38
+ export function getName(value: VirtualViewRenderState): string;
39
+ }
40
+ export type Rect = Readonly<{
41
+ x: number;
42
+ y: number;
43
+ width: number;
44
+ height: number;
45
+ }>;
46
+ export type ModeChangeEvent = Readonly<Omit<Omit<NativeModeChangeEvent, "mode">, keyof {
47
+ renderState: VirtualViewRenderState;
48
+ mode: VirtualViewMode;
49
+ target: HostInstance;
50
+ }> & {
51
+ renderState: VirtualViewRenderState;
52
+ mode: VirtualViewMode;
53
+ target: HostInstance;
54
+ }>;
55
+ declare const VirtualViewNativeComponent: typeof VirtualViewExperimentalNativeComponent;
56
+ type VirtualViewComponent = (props: {
57
+ children?: React.ReactNode;
58
+ hiddenStyle?: (targetRect: Rect) => ViewStyleProp;
59
+ nativeID?: string;
60
+ ref?: null | undefined | React.Ref<React.ComponentRef<typeof VirtualViewNativeComponent>>;
61
+ style?: null | undefined | ViewStyleProp;
62
+ onModeChange?: (event: ModeChangeEvent) => void;
63
+ removeClippedSubviews?: boolean;
64
+ }) => React.ReactNode;
65
+ declare const NotHidden: null;
66
+ type HiddenStyle = Exclude<ViewStyleProp, typeof NotHidden>;
67
+ type State = HiddenStyle | typeof NotHidden;
68
+ declare const $$VirtualView: VirtualViewComponent;
69
+ declare type $$VirtualView = typeof $$VirtualView;
70
+ export default $$VirtualView;
71
+ export declare function createHiddenVirtualView(style: ViewStyleProp): VirtualViewComponent;
72
+ export declare const _logs: {
73
+ states?: Array<State>;
74
+ };
75
+ export declare type _logs = typeof _logs;
@@ -0,0 +1,107 @@
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
+ * @generated SignedSource<<18da986cc6068d895686ba73620299af>>
8
+ *
9
+ * This file was translated from Flow by scripts/js-api/build-types/index.js.
10
+ * Original file: packages/react-native/src/private/components/virtualview/VirtualViewExperimentalNativeComponent.js
11
+ */
12
+
13
+ import type { ViewProps } from "../../../../Libraries/Components/View/ViewPropTypes";
14
+ import type { DirectEventHandler, Double, Int32 } from "../../../../Libraries/Types/CodegenTypes";
15
+ import type { HostComponent } from "../../types/HostComponent";
16
+ export type NativeModeChangeEvent = Readonly<{
17
+ /**
18
+ * Virtualization mode of the target view.
19
+ *
20
+ * - `0`: Target view is visible.
21
+ * - `1`: Target view is hidden, but can be prerendered.
22
+ * - `2`: Target view is hidden.
23
+ *
24
+ * WORKAROUND: As of this writing, codegen doesn't support enums, so we need
25
+ * to convert `number` into an enum in `VirtualView`.
26
+ */
27
+ mode: Int32;
28
+ /**
29
+ * Rect of the target view, relative to the nearest ancestor scroll container.
30
+ */
31
+ targetRect: Readonly<{
32
+ x: Double;
33
+ y: Double;
34
+ width: Double;
35
+ height: Double;
36
+ }>;
37
+ /**
38
+ * Rect of the threshold that determines the mode of the target view, relative
39
+ * to the nearest ancestor scroll container.
40
+ *
41
+ * - `Visible`: Rect in which the target view is visible.
42
+ * - `Prerender`: Rect in which the target view is prerendered.
43
+ * - `Hidden`: Unused, without any guarantees.
44
+ *
45
+ * This can be used to determine whether and how much new content to render.
46
+ */
47
+ thresholdRect: Readonly<{
48
+ x: Double;
49
+ y: Double;
50
+ width: Double;
51
+ height: Double;
52
+ }>;
53
+ }>;
54
+ type VirtualViewExperimentalNativeProps = Readonly<Omit<ViewProps, keyof {
55
+ /**
56
+ * Whether the initial mode should be `Hidden`.
57
+ */
58
+ initialHidden?: boolean;
59
+ /**
60
+ * This was needed to get VirtualViewManagerDelegate to set this property.
61
+ * TODO: Investigate why spread ViewProps doesn't call setter
62
+ */
63
+ removeClippedSubviews?: boolean;
64
+ /**
65
+ * Render state of children.
66
+ *
67
+ * - `0`: Reserved to represent unknown future values.
68
+ * - `1`: Children are rendered.
69
+ * - `2`: Children are not rendered.
70
+ *
71
+ * WORKAROUND: As of this writing, codegen doesn't support enums, so we need
72
+ * to convert `number` into an enum in `VirtualView`.
73
+ */
74
+ renderState: Int32;
75
+ /**
76
+ * See `NativeModeChangeEvent`.
77
+ */
78
+ onModeChange?: DirectEventHandler<NativeModeChangeEvent> | undefined;
79
+ }> & {
80
+ /**
81
+ * Whether the initial mode should be `Hidden`.
82
+ */
83
+ initialHidden?: boolean;
84
+ /**
85
+ * This was needed to get VirtualViewManagerDelegate to set this property.
86
+ * TODO: Investigate why spread ViewProps doesn't call setter
87
+ */
88
+ removeClippedSubviews?: boolean;
89
+ /**
90
+ * Render state of children.
91
+ *
92
+ * - `0`: Reserved to represent unknown future values.
93
+ * - `1`: Children are rendered.
94
+ * - `2`: Children are not rendered.
95
+ *
96
+ * WORKAROUND: As of this writing, codegen doesn't support enums, so we need
97
+ * to convert `number` into an enum in `VirtualView`.
98
+ */
99
+ renderState: Int32;
100
+ /**
101
+ * See `NativeModeChangeEvent`.
102
+ */
103
+ onModeChange?: DirectEventHandler<NativeModeChangeEvent> | undefined;
104
+ }>;
105
+ declare const $$VirtualViewExperimentalNativeComponent: HostComponent<VirtualViewExperimentalNativeProps>;
106
+ declare type $$VirtualViewExperimentalNativeComponent = typeof $$VirtualViewExperimentalNativeComponent;
107
+ export default $$VirtualViewExperimentalNativeComponent;