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
@@ -433,9 +433,7 @@ static BOOL RCTLayerTransformCollapsesAxis(CALayer *layer)
433
433
  float magnification = _tvParallaxProperties.magnification;
434
434
 
435
435
  if (magnification != 1.0) {
436
- [UIView animateWithDuration:0.2 animations:^{
437
436
  self.transform = CGAffineTransformScale(self.transform, magnification, magnification);
438
- }];
439
437
  }
440
438
 
441
439
  _motionEffectsAdded = YES;
@@ -447,13 +445,11 @@ static BOOL RCTLayerTransformCollapsesAxis(CALayer *layer)
447
445
  return;
448
446
  }
449
447
 
450
- [UIView animateWithDuration:0.2 animations:^{
451
- float magnification = self->_tvParallaxProperties.magnification;
452
- BOOL enabled = self->_tvParallaxProperties.enabled;
453
- if (enabled && magnification != 0.0 && magnification != 1.0) {
454
- self.transform = CGAffineTransformScale(self.transform, 1.0/magnification, 1.0/magnification);
455
- }
456
- }];
448
+ float magnification = self->_tvParallaxProperties.magnification;
449
+ BOOL enabled = self->_tvParallaxProperties.enabled;
450
+ if (enabled && magnification != 0.0 && magnification != 1.0) {
451
+ self.transform = CGAffineTransformScale(self.transform, 1.0/magnification, 1.0/magnification);
452
+ }
457
453
 
458
454
  for (UIMotionEffect *effect in [self.motionEffects copy]){
459
455
  [self removeMotionEffect:effect];
@@ -496,6 +492,34 @@ static BOOL RCTLayerTransformCollapsesAxis(CALayer *layer)
496
492
  return _props->isTVSelectable;
497
493
  }
498
494
 
495
+ // Directional focus destinations are looked up in the containing root view when
496
+ // `updateProps` runs. A destination set while this view is not attached yet --
497
+ // e.g. a nextFocus* value delivered together with the view's creation -- resolves
498
+ // to nil there, and `updateProps` never retries because the prop value does not
499
+ // change. Re-resolve pending destinations lazily: `enableDirectionalFocusGuides`
500
+ // only does work while the view is focused, at which point the hierarchy is
501
+ // guaranteed to be attached.
502
+ - (void)resolvePendingNextFocusTargets
503
+ {
504
+ UIView *rootView = [self containingRootView];
505
+
506
+ if (rootView == nil) {
507
+ return;
508
+ }
509
+ if (_nextFocusUp == nil && _props->nextFocusUp.has_value()) {
510
+ _nextFocusUp = [rootView viewWithTag:_props->nextFocusUp.value()];
511
+ }
512
+ if (_nextFocusDown == nil && _props->nextFocusDown.has_value()) {
513
+ _nextFocusDown = [rootView viewWithTag:_props->nextFocusDown.value()];
514
+ }
515
+ if (_nextFocusLeft == nil && _props->nextFocusLeft.has_value()) {
516
+ _nextFocusLeft = [rootView viewWithTag:_props->nextFocusLeft.value()];
517
+ }
518
+ if (_nextFocusRight == nil && _props->nextFocusRight.has_value()) {
519
+ _nextFocusRight = [rootView viewWithTag:_props->nextFocusRight.value()];
520
+ }
521
+ }
522
+
499
523
  // In tvOS, to support directional focus APIs, we add a UIFocusGuide for each
500
524
  // side of the view where a nextFocus has been set. Set layout constraints to
501
525
  // make the guide 1 px thick, and set the destination to the nextFocus object.
@@ -507,6 +531,8 @@ static BOOL RCTLayerTransformCollapsesAxis(CALayer *layer)
507
531
  if (!self.isFocused) {
508
532
  return;
509
533
  }
534
+
535
+ [self resolvePendingNextFocusTargets];
510
536
  if (self->_nextFocusUp != nil) {
511
537
  if (self.focusGuideUp == nil) {
512
538
  self.focusGuideUp = [UIFocusGuide new];
@@ -606,12 +632,12 @@ static BOOL RCTLayerTransformCollapsesAxis(CALayer *layer)
606
632
 
607
633
  - (void)didUpdateFocusInContext:(UIFocusUpdateContext *)context withAnimationCoordinator:(UIFocusAnimationCoordinator *)coordinator
608
634
  {
609
- if (context.previouslyFocusedView == context.nextFocusedView) {
635
+ if (context.previouslyFocusedItem == context.nextFocusedItem) {
610
636
  return;
611
637
  }
612
638
 
613
639
  if (_autoFocus && self.focusGuide != nil && context.previouslyFocusedItem != nil) {
614
- // Whenever focus leaves the container, `nextFocusedView` is the destination, the item outside the container.
640
+ // Whenever focus leaves the container, `nextFocusedItem` is the destination, the item outside the container.
615
641
  // So, `previouslyFocusedItem` is always the last focused child of `TVFocusGuide`.
616
642
  // We should update `preferredFocusEnvironments` in this case to make sure `FocusGuide` remembers
617
643
  // the last focused element and redirects the focus to it whenever focus comes back.
@@ -619,20 +645,20 @@ static BOOL RCTLayerTransformCollapsesAxis(CALayer *layer)
619
645
  [self handleFocusGuide];
620
646
  }
621
647
 
622
- if (context.nextFocusedView == self) {
648
+ if (context.nextFocusedItem == self) {
623
649
  [self becomeFirstResponder];
624
650
  [self enableDirectionalFocusGuides];
625
- [coordinator addCoordinatedAnimations:^(void){
626
- if (self->_eventEmitter) self->_eventEmitter->onFocus();
651
+ if (self->_eventEmitter) self->_eventEmitter->onFocus();
652
+ [coordinator addCoordinatedFocusingAnimations:^(id<UIFocusAnimationContext> _Nonnull animationContext) {
627
653
  [self addParallaxMotionEffects];
628
654
  } completion:^(void){}];
629
655
  // Without this check, onBlur would also trigger when `TVFocusGuideView` transfers focus to its children.
630
656
  // [self isTVFocusGuide] is false when autofocus and destinations are not used, so we cannot use that.
631
657
  // Generally speaking, it would happen for any non-collapsable `View`.
632
- } else if (context.previouslyFocusedView == self) {
633
- [coordinator addCoordinatedAnimations:^(void){
658
+ } else if (context.previouslyFocusedItem == self) {
659
+ if (self->_eventEmitter) self->_eventEmitter->onBlur();
660
+ [coordinator addCoordinatedUnfocusingAnimations:^(id<UIFocusAnimationContext> _Nonnull animationContext) {
634
661
  [self removeParallaxMotionEffects];
635
- if (self->_eventEmitter) self->_eventEmitter->onBlur();
636
662
  } completion:^(void){[self disableDirectionalFocusGuides];}];
637
663
  [self resignFirstResponder];
638
664
  }
@@ -11,7 +11,7 @@ require "json"
11
11
  package = JSON.parse(File.read(File.join(__dir__, "..", "package.json")))
12
12
  version = package['version']
13
13
 
14
- source = { :git => 'https://github.com/facebook/react-native.git' }
14
+ source = { :git => 'https://github.com/react/react-native.git' }
15
15
  if version == '1000.0.0'
16
16
  # This is an unpublished version, use the latest commit hash of the react-native repo, which we’re presumably in.
17
17
  source[:commit] = `git rev-parse HEAD`.strip if system("git rev-parse --git-dir > /dev/null 2>&1")
@@ -8,7 +8,7 @@ require "json"
8
8
  package = JSON.parse(File.read(File.join(__dir__, "..", "package.json")))
9
9
  version = package['version']
10
10
 
11
- source = { :git => 'https://github.com/facebook/react-native.git' }
11
+ source = { :git => 'https://github.com/react/react-native.git' }
12
12
  if version == '1000.0.0'
13
13
  # This is an unpublished version, use the latest commit hash of the react-native repo, which we’re presumably in.
14
14
  source[:commit] = `git rev-parse HEAD`.strip if system("git rev-parse --git-dir > /dev/null 2>&1")
@@ -8,7 +8,7 @@ require "json"
8
8
  package = JSON.parse(File.read(File.join(__dir__, "..", "..", "package.json")))
9
9
  version = package['version']
10
10
 
11
- source = { :git => 'https://github.com/facebook/react-native.git' }
11
+ source = { :git => 'https://github.com/react/react-native.git' }
12
12
  if version == '1000.0.0'
13
13
  # This is an unpublished version, use the latest commit hash of the react-native repo, which we’re presumably in.
14
14
  source[:commit] = `git rev-parse HEAD`.strip if system("git rev-parse --git-dir > /dev/null 2>&1")
@@ -366,7 +366,7 @@ static inline UIViewAnimationOptions animationOptionsWithCurve(UIViewAnimationCu
366
366
  if (@available(iOS 14.0, *)) {
367
367
  // On iOS when Prefer Cross-Fade Transitions is enabled, the keyboard position
368
368
  // & height is reported differently (0 instead of Y position value matching height of frame)
369
- // Fixes similar issue we saw with https://github.com/facebook/react-native/pull/34503
369
+ // Fixes similar issue we saw with https://github.com/react/react-native/pull/34503
370
370
  if (UIAccessibilityPrefersCrossFadeTransitions() && endFrame.size.height == 0) {
371
371
  newContentOffset.y = 0;
372
372
  newEdgeInsets.bottom = 0;
@@ -8,7 +8,7 @@ require "json"
8
8
  package = JSON.parse(File.read(File.join(__dir__, "package.json")))
9
9
  version = package['version']
10
10
 
11
- source = { :git => 'https://github.com/facebook/react-native.git' }
11
+ source = { :git => 'https://github.com/react/react-native.git' }
12
12
  if version == '1000.0.0'
13
13
  # This is an unpublished version, use the latest commit hash of the react-native repo, which we’re presumably in.
14
14
  source[:commit] = `git rev-parse HEAD`.strip if system("git rev-parse --git-dir > /dev/null 2>&1")
package/React.podspec CHANGED
@@ -8,7 +8,7 @@ require "json"
8
8
  package = JSON.parse(File.read(File.join(__dir__, "package.json")))
9
9
  version = package['version']
10
10
 
11
- source = { :git => 'https://github.com/facebook/react-native.git' }
11
+ source = { :git => 'https://github.com/react/react-native.git' }
12
12
  if version == '1000.0.0'
13
13
  # This is an unpublished version, use the latest commit hash of the react-native repo, which we’re presumably in.
14
14
  source[:commit] = `git rev-parse HEAD`.strip if system("git rev-parse --git-dir > /dev/null 2>&1")
@@ -767,7 +767,7 @@ apply(from = "./publish.gradle")
767
767
  // We need to override the artifact ID as this project is called `ReactAndroid` but
768
768
  // the maven coordinates are on `react-android`.
769
769
  // Please note that the original coordinates, `react-native`, have been voided
770
- // as they caused https://github.com/facebook/react-native/issues/35210
770
+ // as they caused https://github.com/react/react-native/issues/35210
771
771
  publishing {
772
772
  publications { getByName("release", MavenPublication::class) { artifactId = "react-android" } }
773
773
  }
@@ -1,4 +1,4 @@
1
- VERSION_NAME=0.86.0-2
1
+ VERSION_NAME=0.86.3-0
2
2
  react.internal.publishingGroup=io.github.react-native-tvos
3
3
  react.internal.hermesPublishingGroup=com.facebook.hermes
4
4
 
@@ -37,7 +37,7 @@ publishing {
37
37
  pom {
38
38
  name = "react-native"
39
39
  description = "A framework for building native apps with React"
40
- url = "https://github.com/facebook/react-native"
40
+ url = "https://github.com/react/react-native"
41
41
 
42
42
  developers {
43
43
  developer {
@@ -49,15 +49,15 @@ publishing {
49
49
  licenses {
50
50
  license {
51
51
  name = "MIT License"
52
- url = "https://github.com/facebook/react-native/blob/HEAD/LICENSE"
52
+ url = "https://github.com/react/react-native/blob/HEAD/LICENSE"
53
53
  distribution = "repo"
54
54
  }
55
55
  }
56
56
 
57
57
  scm {
58
- url = "https://github.com/facebook/react-native.git"
59
- connection = "scm:git:https://github.com/facebook/react-native.git"
60
- developerConnection = "scm:git:git@github.com:facebook/react-native.git"
58
+ url = "https://github.com/react/react-native.git"
59
+ connection = "scm:git:https://github.com/react/react-native.git"
60
+ developerConnection = "scm:git:git@github.com:react/react-native.git"
61
61
  }
62
62
  }
63
63
  }
@@ -171,6 +171,7 @@ public class ReactInstanceManager {
171
171
  // Identifies whether the instance manager destroy function is in process,
172
172
  // while true any spawned create thread should wait for proper clean up before initializing
173
173
  private volatile Boolean mHasStartedDestroying = false;
174
+ private final Object mHasStartedDestroyingLock = new Object();
174
175
  private final MemoryPressureRouter mMemoryPressureRouter;
175
176
  private final @Nullable JSExceptionHandler mJSExceptionHandler;
176
177
  private final @Nullable UIManagerProvider mUIManagerProvider;
@@ -782,8 +783,8 @@ public class ReactInstanceManager {
782
783
  ResourceDrawableIdHelper.getInstance().clear();
783
784
 
784
785
  mHasStartedDestroying = false;
785
- synchronized (mHasStartedDestroying) {
786
- mHasStartedDestroying.notifyAll();
786
+ synchronized (mHasStartedDestroyingLock) {
787
+ mHasStartedDestroyingLock.notifyAll();
787
788
  }
788
789
  synchronized (mPackages) {
789
790
  mViewManagerNames = null;
@@ -1139,10 +1140,10 @@ public class ReactInstanceManager {
1139
1140
  null,
1140
1141
  () -> {
1141
1142
  ReactMarker.logMarker(REACT_CONTEXT_THREAD_END);
1142
- synchronized (ReactInstanceManager.this.mHasStartedDestroying) {
1143
+ synchronized (ReactInstanceManager.this.mHasStartedDestroyingLock) {
1143
1144
  while (ReactInstanceManager.this.mHasStartedDestroying) {
1144
1145
  try {
1145
- ReactInstanceManager.this.mHasStartedDestroying.wait();
1146
+ ReactInstanceManager.this.mHasStartedDestroyingLock.wait();
1146
1147
  } catch (InterruptedException e) {
1147
1148
  // Interrupted while waiting for destruction to complete, just retry
1148
1149
  continue;
@@ -85,7 +85,7 @@ internal class CxxInspectorPackagerConnection(
85
85
  * A simple WebSocket wrapper that prevents having more than 16MiB of messages queued
86
86
  * simultaneously. This is done to stop OkHttp from closing the WebSocket connection.
87
87
  *
88
- * https://github.com/facebook/react-native/issues/39651.
88
+ * https://github.com/react/react-native/issues/39651.
89
89
  * https://github.com/square/okhttp/blob/4e7dbec1ea6c9cf8d80422ac9d44b9b185c749a3/okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/ws/RealWebSocket.kt#L684.
90
90
  */
91
91
  private class InspectorPackagerWebSocketImpl(
@@ -626,14 +626,15 @@ internal constructor(
626
626
 
627
627
  public fun storeSynchronousMountPropsOverride(reactTag: Int, props: ReadableMap): Unit {
628
628
  if (ReactNativeFeatureFlags.overrideBySynchronousMountPropsAtMountingAndroid()) {
629
- val propsMap = getMapFromPropsReadableMap(props)
630
- var synchronousMountProps = tagToSynchronousMountProps[reactTag]
631
- if (synchronousMountProps != null) {
632
- synchronousMountProps.putAll(propsMap)
629
+ val propsMap = getAnimatedPropsMap(props)
630
+ val synchronousMountProps = tagToSynchronousMountProps[reactTag] ?: mutableMapOf()
631
+ clearAnimatedNullPropsMapKeys(props, synchronousMountProps)
632
+ synchronousMountProps.putAll(propsMap)
633
+ if (synchronousMountProps.isEmpty()) {
634
+ tagToSynchronousMountProps.remove(reactTag)
633
635
  } else {
634
- synchronousMountProps = propsMap
636
+ tagToSynchronousMountProps[reactTag] = synchronousMountProps
635
637
  }
636
- tagToSynchronousMountProps[reactTag] = synchronousMountProps
637
638
  }
638
639
  }
639
640
 
@@ -899,7 +900,16 @@ internal constructor(
899
900
  return
900
901
  }
901
902
 
902
- val viewState = getViewState(reactTag)
903
+ val viewState = getNullableViewState(reactTag)
904
+ if (viewState == null) {
905
+ ReactSoftExceptionLogger.logSoftException(
906
+ ReactSoftExceptionLogger.Categories.SURFACE_MOUNTING_MANAGER_MISSING_VIEWSTATE,
907
+ ReactNoCrashSoftException(
908
+ "Unable to find viewState for tag $reactTag for updateOverflowInset"
909
+ ),
910
+ )
911
+ return
912
+ }
903
913
  // Do not layout Root Views
904
914
  if (viewState.isRoot) {
905
915
  return
@@ -1069,8 +1079,8 @@ internal constructor(
1069
1079
  // If the view that went offscreen is still being touched, we can't delete it yet.
1070
1080
  // We have to delay the deletion till the touch is completed.
1071
1081
  // This is causing bugs like those otherwise:
1072
- // - https://github.com/facebook/react-native/issues/44610
1073
- // - https://github.com/facebook/react-native/issues/45126
1082
+ // - https://github.com/react/react-native/issues/44610
1083
+ // - https://github.com/react/react-native/issues/45126
1074
1084
  viewsToDeleteAfterTouchFinishes.add(reactTag)
1075
1085
  } else {
1076
1086
  // To delete we simply remove the tag from the registry.
@@ -1328,7 +1338,11 @@ internal constructor(
1328
1338
  for ((propKey, propValue) in patchMap) {
1329
1339
  if (outputReadableMap.hasKey(propKey)) {
1330
1340
  if (propKey == PROP_TRANSFORM) {
1331
- assert(outputReadableMap.getType(propKey) == ReadableType.Array && propValue is List<*>)
1341
+ val outputType = outputReadableMap.getType(propKey)
1342
+ assert(
1343
+ (outputType == ReadableType.Array || outputType == ReadableType.Null) &&
1344
+ propValue is List<*>
1345
+ )
1332
1346
  val array = WritableNativeArray()
1333
1347
  for (item in propValue as List<*>) {
1334
1348
  if (item is Map<*, *>) {
@@ -1346,14 +1360,18 @@ internal constructor(
1346
1360
  }
1347
1361
  outputReadableMap.putArray(propKey, array)
1348
1362
  } else if (propKey == PROP_OPACITY) {
1349
- assert(outputReadableMap.getType(propKey) == ReadableType.Number && propValue is Number)
1363
+ val outputType = outputReadableMap.getType(propKey)
1364
+ assert(
1365
+ (outputType == ReadableType.Number || outputType == ReadableType.Null) &&
1366
+ propValue is Number
1367
+ )
1350
1368
  outputReadableMap.putDouble(propKey, (propValue as Number).toDouble())
1351
1369
  }
1352
1370
  }
1353
1371
  }
1354
1372
  }
1355
1373
 
1356
- private fun getMapFromPropsReadableMap(readableMap: ReadableMap): MutableMap<String, Any> {
1374
+ private fun getAnimatedPropsMap(readableMap: ReadableMap): MutableMap<String, Any> {
1357
1375
  val outputMap = mutableMapOf<String, Any>()
1358
1376
 
1359
1377
  if (
@@ -1383,6 +1401,25 @@ internal constructor(
1383
1401
  return outputMap
1384
1402
  }
1385
1403
 
1404
+ private fun clearAnimatedNullPropsMapKeys(
1405
+ readableMap: ReadableMap,
1406
+ outputMap: MutableMap<String, Any>,
1407
+ ) {
1408
+ // Native Animated uses synchronous null updates to restore animated-managed props.
1409
+ // Keep this scoped to props stored by this override path today.
1410
+ if (
1411
+ readableMap.hasKey(PROP_TRANSFORM) &&
1412
+ readableMap.getType(PROP_TRANSFORM) == ReadableType.Null
1413
+ ) {
1414
+ outputMap.remove(PROP_TRANSFORM)
1415
+ }
1416
+ if (
1417
+ readableMap.hasKey(PROP_OPACITY) && readableMap.getType(PROP_OPACITY) == ReadableType.Null
1418
+ ) {
1419
+ outputMap.remove(PROP_OPACITY)
1420
+ }
1421
+ }
1422
+
1386
1423
  // prevents unchecked conversion warn of the <ViewGroup> type
1387
1424
  private fun getViewGroupManager(viewState: ViewState): IViewGroupManager<View> {
1388
1425
  val viewManager =
@@ -326,8 +326,8 @@ public open class JavaTimerManager(
326
326
 
327
327
  // If the JS thread is busy for multiple frames we cancel any other pending runnable.
328
328
  // We also capture the idleCallbackRunnable to tentatively fix:
329
- // https://github.com/facebook/react-native/issues/44842
330
- // https://github.com/facebook/react-native/issues/54983
329
+ // https://github.com/react/react-native/issues/44842
330
+ // https://github.com/react/react-native/issues/54983
331
331
  currentIdleCallbackRunnable?.cancel()
332
332
  val idleCallbackRunnable = IdleCallbackRunnable(frameTimeNanos)
333
333
  currentIdleCallbackRunnable = idleCallbackRunnable
@@ -87,11 +87,15 @@ public open class IntentModule(reactContext: ReactApplicationContext) :
87
87
  override fun onHostResume() {
88
88
  reactApplicationContext.removeLifecycleEventListener(this)
89
89
  synchronized(this@IntentModule) {
90
- for (pendingPromise in pendingOpenURLPromises) {
90
+ // getInitialURL can re-enter and re-add to pendingOpenURLPromises when the activity
91
+ // is still null at resume, so drain a snapshot (after clearing the list and listener)
92
+ // to avoid mutating the list being iterated (ConcurrentModificationException).
93
+ val pendingPromises = ArrayList(pendingOpenURLPromises)
94
+ pendingOpenURLPromises.clear()
95
+ initialURLListener = null
96
+ for (pendingPromise in pendingPromises) {
91
97
  getInitialURL(pendingPromise)
92
98
  }
93
- initialURLListener = null
94
- pendingOpenURLPromises.clear()
95
99
  }
96
100
  }
97
101
 
@@ -223,7 +227,7 @@ public open class IntentModule(reactContext: ReactApplicationContext) :
223
227
  }
224
228
  ReadableType.Number -> {
225
229
  // We cannot know from JS if is an Integer or Double
226
- // See: https://github.com/facebook/react-native/issues/4141
230
+ // See: https://github.com/react/react-native/issues/4141
227
231
  // We might need to find a workaround if this is really an issue
228
232
  val number = map.getDouble(EXTRA_MAP_KEY_FOR_VALUE)
229
233
  intent.putExtra(name, number)
@@ -166,7 +166,7 @@ public class NetworkingModule(
166
166
 
167
167
  @Deprecated(
168
168
  """To be removed in a future release. See
169
- https://github.com/facebook/react-native/pull/37798#pullrequestreview-1518338914"""
169
+ https://github.com/react/react-native/pull/37798#pullrequestreview-1518338914"""
170
170
  )
171
171
  public interface CustomClientBuilder : com.facebook.react.modules.network.CustomClientBuilder
172
172
 
@@ -480,7 +480,7 @@ public class NetworkingModule(
480
480
  } else {
481
481
  // Use getBytes() to convert the body into a byte[], preventing okhttp from
482
482
  // appending the character set to the Content-Type header when otherwise unspecified
483
- // https://github.com/facebook/react-native/issues/8237
483
+ // https://github.com/react/react-native/issues/8237
484
484
  val charset =
485
485
  if (contentMediaType == null) {
486
486
  StandardCharsets.UTF_8
@@ -14,7 +14,7 @@ public object ReactNativeVersion {
14
14
  public val VERSION: Map<String, Any?> = mapOf(
15
15
  "major" to 0,
16
16
  "minor" to 86,
17
- "patch" to 0,
18
- "prerelease" to "2"
17
+ "patch" to 3,
18
+ "prerelease" to "0"
19
19
  )
20
20
  }
@@ -569,7 +569,7 @@ internal class ReactInstance(
569
569
  // We need to null check here because some Java implementation of the
570
570
  // `ViewManagerOnDemandReactPackage` interface could still return null even
571
571
  // if the method is marked as returning a non-nullable collection in Kotlin.
572
- // See https://github.com/facebook/react-native/issues/52014
572
+ // See https://github.com/react/react-native/issues/52014
573
573
  @Suppress("SENSELESS_COMPARISON")
574
574
  if (names == null) {
575
575
  RNLog.w(
@@ -626,7 +626,7 @@ public abstract class BaseViewManager<T extends View, C extends LayoutShadowNode
626
626
  // The native Android implementation removed the screen density from the
627
627
  // calculation, so squaring and a normalization value of
628
628
  // sqrt(5) produces an exact replica with iOS.
629
- // For more information, see https://github.com/facebook/react-native/pull/18302
629
+ // For more information, see https://github.com/react/react-native/pull/18302
630
630
  float normalizedCameraDistance =
631
631
  sanitizeFloatPropertyValue(
632
632
  scale * scale * cameraDistance * CAMERA_DISTANCE_NORMALIZATION_MULTIPLIER);
@@ -438,7 +438,7 @@ constructor(private val fpsListener: FpsListener? = null) :
438
438
  // be on the wrong side. Thus we are moving it to the other side, when the list
439
439
  // is inverted.
440
440
  // See also:
441
- // - https://github.com/facebook/react-native/issues/35350
441
+ // - https://github.com/react/react-native/issues/35350
442
442
  // - https://issuetracker.google.com/issues/287304310
443
443
  if (applyFix) {
444
444
  view.verticalScrollbarPosition = View.SCROLLBAR_POSITION_LEFT
@@ -442,7 +442,7 @@ constructor(private val fpsListener: FpsListener? = null) :
442
442
  // be on the wrong side. Thus we are moving it to the other side, when the list
443
443
  // is inverted.
444
444
  // See also:
445
- // - https://github.com/facebook/react-native/issues/35350
445
+ // - https://github.com/react/react-native/issues/35350
446
446
  // - https://issuetracker.google.com/issues/287304310
447
447
  if (applyFix) {
448
448
  view.verticalScrollbarPosition = View.SCROLLBAR_POSITION_LEFT
@@ -252,7 +252,7 @@ public class ReactTextView extends AppCompatTextView implements ReactCompoundVie
252
252
  try (SystraceSection s = new SystraceSection("ReactTextView.setText(ReactTextUpdate)")) {
253
253
  // Android's TextView crashes when it tries to relayout if LayoutParams are
254
254
  // null; explicitly set the LayoutParams to prevent this crash. See:
255
- // https://github.com/facebook/react-native/pull/7011
255
+ // https://github.com/react/react-native/pull/7011
256
256
  if (getLayoutParams() == null) {
257
257
  setLayoutParams(EMPTY_LAYOUT_PARAMS);
258
258
  }
@@ -772,7 +772,7 @@ public open class ReactEditText public constructor(context: Context) : AppCompat
772
772
  /**
773
773
  * Remove spans from the SpannableStringBuilder which can be represented by TextAppearance
774
774
  * attributes on the underlying EditText. This works around instability on Samsung devices with
775
- * the presence of spans https://github.com/facebook/react-native/issues/35936 (S318090)
775
+ * the presence of spans https://github.com/react/react-native/issues/35936 (S318090)
776
776
  */
777
777
  private fun stripStyleEquivalentSpans(sb: SpannableStringBuilder) {
778
778
  stripSpansOfKind(sb, ReactAbsoluteSizeSpan::class.java) { span: ReactAbsoluteSizeSpan ->
@@ -990,7 +990,7 @@ public open class ReactEditText public constructor(context: Context) : AppCompat
990
990
  val selectionEnd = selectionEnd
991
991
 
992
992
  // Used to ensure that text is selectable inside of removeClippedSubviews
993
- // See https://github.com/facebook/react-native/issues/6805 for original
993
+ // See https://github.com/react/react-native/issues/6805 for original
994
994
  // fix that was ported to here.
995
995
  super.setTextIsSelectable(true)
996
996
 
@@ -381,7 +381,7 @@ public open class ReactTextInputManager public constructor() :
381
381
  return
382
382
  }
383
383
 
384
- // Based on https://github.com/facebook/react-native/pull/31007
384
+ // Based on https://github.com/react/react-native/pull/31007
385
385
  if (Build.VERSION.SDK_INT == Build.VERSION_CODES.P) {
386
386
  return
387
387
  }
@@ -739,7 +739,7 @@ public open class ReactTextInputManager public constructor() :
739
739
  // crash happens when focusing on a email EditText, during which a prompt will be triggered
740
740
  // but
741
741
  // the system fail to locate it properly. Here is an example post discussing about this
742
- // issue: https://github.com/facebook/react-native/issues/27204
742
+ // issue: https://github.com/react/react-native/issues/27204
743
743
  if (shouldHideCursorForEmailTextInput()) {
744
744
  view.isCursorVisible = false
745
745
  }
@@ -30,7 +30,7 @@ internal class ReactTextSelectionWatcher(private val editText: ReactEditText) :
30
30
  // forward it on if we have new values
31
31
 
32
32
  // Apparently Android might call this with an end value that is less than the start value
33
- // Lets normalize them. See https://github.com/facebook/react-native/issues/18579
33
+ // Lets normalize them. See https://github.com/react/react-native/issues/18579
34
34
  val realStart = min(start.toDouble(), end.toDouble()).toInt()
35
35
  val realEnd = max(start.toDouble(), end.toDouble()).toInt()
36
36
 
@@ -458,7 +458,7 @@ public open class ReactViewGroup public constructor(context: Context?) :
458
458
 
459
459
  internal fun requestFocusFromJS() {
460
460
  if (isAttachedToWindow) {
461
- super.requestFocus(FOCUS_DOWN, null)
461
+ requestFocus(FOCUS_DOWN, null)
462
462
  } else {
463
463
  focusOnAttach = true
464
464
  }
@@ -1188,7 +1188,7 @@ public open class ReactViewGroup public constructor(context: Context?) :
1188
1188
  return super.performAccessibilityAction(host, action, args)
1189
1189
  }
1190
1190
  if (action == AccessibilityNodeInfo.ACTION_FOCUS) {
1191
- if (args?.let { host.interceptAccessibilityEvents(action, it) } == true) {
1191
+ if (host.interceptAccessibilityEvents(action, args) == true) {
1192
1192
  return true
1193
1193
  }
1194
1194
  // Handle case when focus guide cannot find any focusable child
@@ -1206,7 +1206,7 @@ public open class ReactViewGroup public constructor(context: Context?) :
1206
1206
  return super.performAccessibilityAction(host, action, args)
1207
1207
  }
1208
1208
  if (action == AccessibilityNodeInfo.ACTION_ACCESSIBILITY_FOCUS) {
1209
- if (args?.let { host.interceptAccessibilityEvents(action, it) } == true) {
1209
+ if (host.interceptAccessibilityEvents(action, args) == true) {
1210
1210
  return true
1211
1211
  }
1212
1212
  // Handle case when focus guide cannot find any focusable child
@@ -1265,7 +1265,7 @@ public open class ReactViewGroup public constructor(context: Context?) :
1265
1265
  return this.isFocusGuideTalkbackAccessibilityDelegateSet
1266
1266
  }
1267
1267
 
1268
- private fun interceptAccessibilityEvents(action: Int, args: Bundle): Boolean {
1268
+ private fun interceptAccessibilityEvents(action: Int, args: Bundle?): Boolean {
1269
1269
  if (!this.isTVFocusGuide) {
1270
1270
  return false
1271
1271
  }
@@ -518,7 +518,7 @@ public open class ReactViewManager : ReactClippingViewManager<ReactViewGroup>()
518
518
  HOTSPOT_UPDATE_KEY -> handleHotspotUpdate(root, args)
519
519
  "setPressed" -> handleSetPressed(root, args)
520
520
  "setDestinations" -> handleSetDestinations(root, args)
521
- "requestTVFocus" -> root.requestFocus()
521
+ "requestTVFocus" -> root.requestFocusFromJS()
522
522
  "focus" -> handleFocus(root)
523
523
  "blur" -> handleBlur(root)
524
524
  else -> {}
@@ -14,7 +14,7 @@ Pod::Spec.new do |s|
14
14
  s.author = "Meta Platforms, Inc. and its affiliates"
15
15
  s.license = package["license"]
16
16
  s.homepage = "https://reactnative.dev/"
17
- s.source = { :git => 'https://github.com/facebook/react-native.git', :tag => 'v#{version}' }
17
+ s.source = { :git => 'https://github.com/react/react-native.git', :tag => 'v#{version}' }
18
18
  s.summary = "Macros for marking APIs as deprecated"
19
19
  s.source_files = podspec_sources(["Exported/*.h", "RCTDeprecation.m"], "Exported/*.h")
20
20
  s.pod_target_xcconfig = {
@@ -8,7 +8,7 @@ require "json"
8
8
  package = JSON.parse(File.read(File.join(__dir__, "..", "..", "package.json")))
9
9
  version = package['version']
10
10
 
11
- source = { :git => 'https://github.com/facebook/react-native.git' }
11
+ source = { :git => 'https://github.com/react/react-native.git' }
12
12
  if version == '1000.0.0'
13
13
  # This is an unpublished version, use the latest commit hash of the react-native repo, which we're presumably in.
14
14
  source[:commit] = `git rev-parse HEAD`.strip if system("git rev-parse --git-dir > /dev/null 2>&1")
@@ -8,7 +8,7 @@ require "json"
8
8
  package = JSON.parse(File.read(File.join(__dir__, "..", "..", "package.json")))
9
9
  version = package['version']
10
10
 
11
- source = { :git => 'https://github.com/facebook/react-native.git' }
11
+ source = { :git => 'https://github.com/react/react-native.git' }
12
12
  if version == '1000.0.0'
13
13
  # This is an unpublished version, use the latest commit hash of the react-native repo, which we're presumably in.
14
14
  source[:commit] = `git rev-parse HEAD`.strip if system("git rev-parse --git-dir > /dev/null 2>&1")