react-native-tvos 0.83.6-0 → 0.83.10-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 (208) 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/ScrollView/ScrollView.d.ts +1 -1
  7. package/Libraries/Components/ScrollView/ScrollView.js +1 -1
  8. package/Libraries/Components/TV/TVViewPropTypes.js +9 -0
  9. package/Libraries/Components/TextInput/AndroidTextInputNativeComponent.js +1 -1
  10. package/Libraries/Components/TextInput/TextInput.flow.js +1 -1
  11. package/Libraries/Components/Touchable/Touchable.d.ts +1 -1
  12. package/Libraries/Components/View/View.js +7 -3
  13. package/Libraries/Components/View/ViewAccessibility.d.ts +1 -1
  14. package/Libraries/Components/View/ViewAccessibility.js +1 -1
  15. package/Libraries/Core/ReactNativeVersion.js +1 -1
  16. package/Libraries/Core/Timers/JSTimers.js +1 -1
  17. package/Libraries/Core/setUpNavigator.js +1 -1
  18. package/Libraries/EventEmitter/RCTNativeAppEventEmitter.d.ts +1 -1
  19. package/Libraries/FBLazyVector/FBLazyVector.podspec +1 -1
  20. package/Libraries/Image/ImageSource.d.ts +1 -1
  21. package/Libraries/Image/RCTImageLoader.mm +1 -1
  22. package/Libraries/Image/React-RCTImage.podspec +1 -1
  23. package/Libraries/Interaction/PanResponder.js +1 -1
  24. package/Libraries/LinkingIOS/React-RCTLinking.podspec +1 -1
  25. package/Libraries/NativeAnimation/React-RCTAnimation.podspec +1 -1
  26. package/Libraries/NativeComponent/TVViewConfig.js +1 -0
  27. package/Libraries/Network/React-RCTNetwork.podspec +1 -1
  28. package/Libraries/PushNotificationIOS/React-RCTPushNotification.podspec +1 -1
  29. package/Libraries/Renderer/README.md +2 -2
  30. package/Libraries/Required/RCTRequired.podspec +1 -1
  31. package/Libraries/Settings/React-RCTSettings.podspec +1 -1
  32. package/Libraries/Text/React-RCTText.podspec +1 -1
  33. package/Libraries/TypeSafety/RCTTypeSafety.podspec +1 -1
  34. package/Libraries/Utilities/PolyfillFunctions.js +1 -1
  35. package/Libraries/Vibration/React-RCTVibration.podspec +1 -1
  36. package/README-core.md +6 -6
  37. package/README.md +13 -1
  38. package/React/Base/RCTVersion.m +1 -1
  39. package/React/CoreModules/RCTJscSafeUrl+Internal.h +23 -0
  40. package/React/CoreModules/RCTJscSafeUrl.mm +38 -0
  41. package/React/CoreModules/RCTRedBox+Internal.h +42 -0
  42. package/React/CoreModules/RCTRedBox.mm +30 -471
  43. package/React/CoreModules/RCTRedBox2AnsiParser+Internal.h +22 -0
  44. package/React/CoreModules/RCTRedBox2AnsiParser.mm +55 -0
  45. package/React/CoreModules/RCTRedBox2Controller+Internal.h +34 -0
  46. package/React/CoreModules/RCTRedBox2Controller.mm +764 -0
  47. package/React/CoreModules/RCTRedBox2ErrorParser+Internal.h +46 -0
  48. package/React/CoreModules/RCTRedBox2ErrorParser.mm +57 -0
  49. package/React/CoreModules/RCTRedBoxController+Internal.h +31 -0
  50. package/React/CoreModules/RCTRedBoxController.mm +447 -0
  51. package/React/CoreModules/RCTRedBoxHMRClient+Internal.h +26 -0
  52. package/React/CoreModules/RCTRedBoxHMRClient.mm +125 -0
  53. package/React/CoreModules/React-CoreModules.podspec +2 -1
  54. package/React/FBReactNativeSpec/FBReactNativeSpecJSI.h +24 -0
  55. package/React/Fabric/Mounting/ComponentViews/ScrollView/RCTScrollViewComponentView.mm +49 -17
  56. package/React/Fabric/Mounting/ComponentViews/TextInput/RCTTextInputComponentView.mm +12 -1
  57. package/React/Fabric/Mounting/ComponentViews/View/RCTViewComponentView.mm +35 -7
  58. package/React/React-RCTFBReactNativeSpec.podspec +1 -1
  59. package/React/React-RCTFabric.podspec +1 -1
  60. package/React/Runtime/React-RCTRuntime.podspec +1 -1
  61. package/React/Tests/Mounting/RCTViewComponentViewTests.mm +145 -0
  62. package/React/Views/ScrollView/RCTScrollView.m +1 -1
  63. package/React-Core.podspec +1 -1
  64. package/React.podspec +1 -1
  65. package/ReactAndroid/build.gradle.kts +1 -1
  66. package/ReactAndroid/gradle.properties +1 -1
  67. package/ReactAndroid/hermes-engine/build.gradle.kts +6 -0
  68. package/ReactAndroid/publish.gradle +20 -46
  69. package/ReactAndroid/src/main/java/com/facebook/react/devsupport/CxxInspectorPackagerConnection.kt +99 -9
  70. package/ReactAndroid/src/main/java/com/facebook/react/devsupport/inspector/InspectorNetworkHelper.kt +1 -1
  71. package/ReactAndroid/src/main/java/com/facebook/react/fabric/mounting/SurfaceMountingManager.java +2 -2
  72. package/ReactAndroid/src/main/java/com/facebook/react/internal/featureflags/ReactNativeFeatureFlags.kt +19 -1
  73. package/ReactAndroid/src/main/java/com/facebook/react/internal/featureflags/ReactNativeFeatureFlagsCxxAccessor.kt +31 -1
  74. package/ReactAndroid/src/main/java/com/facebook/react/internal/featureflags/ReactNativeFeatureFlagsCxxInterop.kt +7 -1
  75. package/ReactAndroid/src/main/java/com/facebook/react/internal/featureflags/ReactNativeFeatureFlagsDefaults.kt +7 -1
  76. package/ReactAndroid/src/main/java/com/facebook/react/internal/featureflags/ReactNativeFeatureFlagsLocalAccessor.kt +34 -1
  77. package/ReactAndroid/src/main/java/com/facebook/react/internal/featureflags/ReactNativeFeatureFlagsProvider.kt +7 -1
  78. package/ReactAndroid/src/main/java/com/facebook/react/modules/core/JavaTimerManager.kt +1 -1
  79. package/ReactAndroid/src/main/java/com/facebook/react/modules/core/ReactAndroidHWInputDeviceHelper.java +1 -0
  80. package/ReactAndroid/src/main/java/com/facebook/react/modules/intent/IntentModule.kt +1 -1
  81. package/ReactAndroid/src/main/java/com/facebook/react/modules/network/NetworkingModule.kt +3 -3
  82. package/ReactAndroid/src/main/java/com/facebook/react/modules/systeminfo/ReactNativeVersion.kt +1 -1
  83. package/ReactAndroid/src/main/java/com/facebook/react/runtime/ReactInstance.kt +1 -1
  84. package/ReactAndroid/src/main/java/com/facebook/react/uimanager/BaseViewManager.java +1 -1
  85. package/ReactAndroid/src/main/java/com/facebook/react/views/scroll/ReactHorizontalScrollView.java +14 -4
  86. package/ReactAndroid/src/main/java/com/facebook/react/views/scroll/ReactScrollView.java +14 -4
  87. package/ReactAndroid/src/main/java/com/facebook/react/views/scroll/ReactScrollViewHelper.kt +46 -6
  88. package/ReactAndroid/src/main/java/com/facebook/react/views/scroll/ReactScrollViewManager.kt +1 -1
  89. package/ReactAndroid/src/main/java/com/facebook/react/views/text/ReactTextView.java +1 -1
  90. package/ReactAndroid/src/main/java/com/facebook/react/views/textinput/ReactEditText.kt +2 -2
  91. package/ReactAndroid/src/main/java/com/facebook/react/views/textinput/ReactTextInputManager.kt +2 -2
  92. package/ReactAndroid/src/main/java/com/facebook/react/views/textinput/ReactTextSelectionWatcher.kt +1 -1
  93. package/ReactAndroid/src/main/java/com/facebook/react/views/view/ReactViewGroup.kt +1 -0
  94. package/ReactAndroid/src/main/java/com/facebook/react/views/view/ReactViewManager.kt +5 -0
  95. package/ReactAndroid/src/main/jni/CMakeLists.txt +7 -0
  96. package/ReactAndroid/src/main/jni/react/devsupport/JCxxInspectorPackagerConnectionWebSocket.cpp +29 -2
  97. package/ReactAndroid/src/main/jni/react/featureflags/JReactNativeFeatureFlagsCxxInterop.cpp +43 -1
  98. package/ReactAndroid/src/main/jni/react/featureflags/JReactNativeFeatureFlagsCxxInterop.h +10 -1
  99. package/ReactApple/Libraries/RCTFoundation/RCTDeprecation/RCTDeprecation.podspec +1 -1
  100. package/ReactApple/RCTSwiftUI/RCTSwiftUI.podspec +1 -1
  101. package/ReactApple/RCTSwiftUIWrapper/RCTSwiftUIWrapper.podspec +1 -1
  102. package/ReactCommon/React-Fabric.podspec +7 -1
  103. package/ReactCommon/React-FabricComponents.podspec +1 -1
  104. package/ReactCommon/React-FabricImage.podspec +1 -1
  105. package/ReactCommon/React-Mapbuffer.podspec +1 -1
  106. package/ReactCommon/ReactCommon.podspec +1 -1
  107. package/ReactCommon/callinvoker/React-callinvoker.podspec +1 -1
  108. package/ReactCommon/cxxreact/React-cxxreact.podspec +1 -1
  109. package/ReactCommon/cxxreact/ReactNativeVersion.h +2 -2
  110. package/ReactCommon/hermes/React-hermes.podspec +1 -1
  111. package/ReactCommon/hermes/executor/React-jsitracing.podspec +1 -1
  112. package/ReactCommon/jserrorhandler/React-jserrorhandler.podspec +1 -1
  113. package/ReactCommon/jsi/React-jsi.podspec +1 -1
  114. package/ReactCommon/jsiexecutor/React-jsiexecutor.podspec +1 -1
  115. package/ReactCommon/jsinspector-modern/InspectorInterfaces.cpp +7 -3
  116. package/ReactCommon/jsinspector-modern/React-jsinspector.podspec +1 -1
  117. package/ReactCommon/jsinspector-modern/TracingAgent.cpp +1 -5
  118. package/ReactCommon/jsinspector-modern/cdp/React-jsinspectorcdp.podspec +1 -1
  119. package/ReactCommon/jsinspector-modern/network/React-jsinspectornetwork.podspec +1 -1
  120. package/ReactCommon/jsinspector-modern/tracing/React-jsinspectortracing.podspec +1 -1
  121. package/ReactCommon/jsitooling/React-jsitooling.podspec +1 -1
  122. package/ReactCommon/logger/React-logger.podspec +1 -1
  123. package/ReactCommon/oscompat/React-oscompat.podspec +1 -1
  124. package/ReactCommon/react/debug/CMakeLists.txt +2 -1
  125. package/ReactCommon/react/debug/React-debug.podspec +8 -2
  126. package/ReactCommon/react/debug/redbox/AnsiParser.cpp +139 -0
  127. package/ReactCommon/react/debug/redbox/AnsiParser.h +35 -0
  128. package/ReactCommon/react/debug/redbox/JscSafeUrl.cpp +179 -0
  129. package/ReactCommon/react/debug/redbox/JscSafeUrl.h +27 -0
  130. package/ReactCommon/react/debug/redbox/RedBoxErrorParser.cpp +171 -0
  131. package/ReactCommon/react/debug/redbox/RedBoxErrorParser.h +40 -0
  132. package/ReactCommon/react/debug/redbox/tests/AnsiParserTest.cpp +97 -0
  133. package/ReactCommon/react/debug/redbox/tests/JscSafeUrlTest.cpp +173 -0
  134. package/ReactCommon/react/debug/redbox/tests/RedBoxErrorParserTest.cpp +107 -0
  135. package/ReactCommon/react/featureflags/React-featureflags.podspec +1 -1
  136. package/ReactCommon/react/featureflags/ReactNativeFeatureFlags.cpp +13 -1
  137. package/ReactCommon/react/featureflags/ReactNativeFeatureFlags.h +16 -1
  138. package/ReactCommon/react/featureflags/ReactNativeFeatureFlagsAccessor.cpp +106 -52
  139. package/ReactCommon/react/featureflags/ReactNativeFeatureFlagsAccessor.h +8 -2
  140. package/ReactCommon/react/featureflags/ReactNativeFeatureFlagsDefaults.h +13 -1
  141. package/ReactCommon/react/featureflags/ReactNativeFeatureFlagsDynamicProvider.h +28 -1
  142. package/ReactCommon/react/featureflags/ReactNativeFeatureFlagsProvider.h +4 -1
  143. package/ReactCommon/react/nativemodule/core/platform/android/ReactCommon/JavaTurboModule.cpp +1 -1
  144. package/ReactCommon/react/nativemodule/core/platform/ios/React-NativeModulesApple.podspec +1 -1
  145. package/ReactCommon/react/nativemodule/core/platform/ios/ReactCommon/RCTInteropTurboModule.mm +1 -1
  146. package/ReactCommon/react/nativemodule/core/platform/ios/ReactCommon/RCTTurboModule.mm +1 -1
  147. package/ReactCommon/react/nativemodule/defaults/CMakeLists.txt +1 -0
  148. package/ReactCommon/react/nativemodule/defaults/DefaultTurboModules.cpp +7 -0
  149. package/ReactCommon/react/nativemodule/defaults/React-defaultsnativemodule.podspec +2 -1
  150. package/ReactCommon/react/nativemodule/dom/React-domnativemodule.podspec +1 -1
  151. package/ReactCommon/react/nativemodule/featureflags/NativeReactNativeFeatureFlags.cpp +16 -1
  152. package/ReactCommon/react/nativemodule/featureflags/NativeReactNativeFeatureFlags.h +7 -1
  153. package/ReactCommon/react/nativemodule/featureflags/React-featureflagsnativemodule.podspec +1 -1
  154. package/ReactCommon/react/nativemodule/idlecallbacks/React-idlecallbacksnativemodule.podspec +1 -1
  155. package/ReactCommon/react/nativemodule/intersectionobserver/React-intersectionobservernativemodule.podspec +1 -1
  156. package/ReactCommon/react/nativemodule/microtasks/React-microtasksnativemodule.podspec +1 -1
  157. package/ReactCommon/react/nativemodule/mutationobserver/NativeMutationObserver.h +4 -0
  158. package/ReactCommon/react/nativemodule/mutationobserver/React-mutationobservernativemodule.podspec +66 -0
  159. package/ReactCommon/react/nativemodule/samples/ReactCommon-Samples.podspec +1 -1
  160. package/ReactCommon/react/nativemodule/webperformance/React-webperformancenativemodule.podspec +1 -1
  161. package/ReactCommon/react/networking/React-networking.podspec +1 -1
  162. package/ReactCommon/react/performance/cdpmetrics/React-performancecdpmetrics.podspec +1 -1
  163. package/ReactCommon/react/performance/timeline/React-performancetimeline.podspec +1 -1
  164. package/ReactCommon/react/renderer/animated/internal/primitives.h +1 -1
  165. package/ReactCommon/react/renderer/components/view/BaseViewProps.cpp +7 -0
  166. package/ReactCommon/react/renderer/components/view/BaseViewProps.h +1 -0
  167. package/ReactCommon/react/renderer/components/view/platform/android/react/renderer/components/view/HostPlatformViewProps.cpp +18 -0
  168. package/ReactCommon/react/renderer/components/view/platform/android/react/renderer/components/view/HostPlatformViewProps.h +1 -0
  169. package/ReactCommon/react/renderer/consistency/React-rendererconsistency.podspec +1 -1
  170. package/ReactCommon/react/renderer/css/React-renderercss.podspec +1 -1
  171. package/ReactCommon/react/renderer/debug/React-rendererdebug.podspec +1 -1
  172. package/ReactCommon/react/renderer/graphics/React-graphics.podspec +1 -1
  173. package/ReactCommon/react/renderer/imagemanager/platform/ios/React-ImageManager.podspec +1 -1
  174. package/ReactCommon/react/renderer/mounting/internal/CullingContext.cpp +1 -1
  175. package/ReactCommon/react/renderer/runtimescheduler/React-runtimescheduler.podspec +1 -1
  176. package/ReactCommon/react/runtime/React-RuntimeCore.podspec +1 -1
  177. package/ReactCommon/react/runtime/React-RuntimeHermes.podspec +1 -1
  178. package/ReactCommon/react/runtime/platform/ios/React-RuntimeApple.podspec +1 -1
  179. package/ReactCommon/react/timing/React-timing.podspec +1 -1
  180. package/ReactCommon/react/utils/React-utils.podspec +1 -1
  181. package/ReactCommon/reactperflogger/React-perflogger.podspec +1 -1
  182. package/ReactCommon/runtimeexecutor/React-runtimeexecutor.podspec +1 -1
  183. package/ReactCommon/yoga/Yoga.podspec +2 -2
  184. package/ReactCommon/yoga/yoga/algorithm/AbsoluteLayout.cpp +2 -0
  185. package/ReactCommon/yoga/yoga/algorithm/CalculateLayout.cpp +11 -7
  186. package/ReactCommon/yoga/yoga/algorithm/CalculateLayout.h +2 -0
  187. package/ReactCommon/yoga/yoga/node/Node.cpp +6 -1
  188. package/package.json +9 -9
  189. package/scripts/cocoapods/rncore.rb +26 -8
  190. package/scripts/cocoapods/rndependencies.rb +26 -5
  191. package/scripts/cocoapods/spm.rb +1 -1
  192. package/scripts/cocoapods/utils.rb +2 -2
  193. package/scripts/codegen/templates/ReactAppDependencyProvider.podspec.template +1 -1
  194. package/scripts/codegen/templates/ReactCodegen.podspec.template +1 -1
  195. package/scripts/ios-configure-glog.sh +1 -1
  196. package/scripts/react_native_pods.rb +1 -0
  197. package/sdks/hermes-engine/hermes-engine.podspec +6 -1
  198. package/sdks/hermes-engine/hermes-utils.rb +27 -5
  199. package/src/private/featureflags/ReactNativeFeatureFlags.js +16 -1
  200. package/src/private/featureflags/specs/NativeReactNativeFeatureFlags.js +4 -1
  201. package/src/private/setup/setUpDefaultReactNativeEnvironment.js +6 -0
  202. package/src/private/types/HostInstance.js +1 -1
  203. package/src/types/globals.d.ts +2 -2
  204. package/third-party-podspecs/RCT-Folly.podspec +1 -1
  205. package/third-party-podspecs/ReactNativeDependencies.podspec +1 -1
  206. package/third-party-podspecs/glog.podspec +1 -1
  207. package/types/public/ReactNativeTVTypes.d.ts +9 -0
  208. package/types/public/ReactNativeTypes.d.ts +2 -2
@@ -4,7 +4,7 @@
4
4
  * This source code is licensed under the MIT license found in the
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
- * @generated SignedSource<<886710691ddc524f90129b6921cb2c2a>>
7
+ * @generated SignedSource<<75595b7640dd5849fcd3c40a965582fe>>
8
8
  */
9
9
 
10
10
  /**
@@ -61,6 +61,7 @@ class ReactNativeFeatureFlagsProvider {
61
61
  virtual bool enableLayoutAnimationsOnIOS() = 0;
62
62
  virtual bool enableMainQueueCoordinatorOnIOS() = 0;
63
63
  virtual bool enableModuleArgumentNSNullConversionIOS() = 0;
64
+ virtual bool enableMutationObserverByDefault() = 0;
64
65
  virtual bool enableNativeCSSParsing() = 0;
65
66
  virtual bool enableNetworkEventReporting() = 0;
66
67
  virtual bool enablePreparedTextLayout() = 0;
@@ -91,6 +92,8 @@ class ReactNativeFeatureFlagsProvider {
91
92
  virtual bool perfMonitorV2Enabled() = 0;
92
93
  virtual double preparedTextCacheSize() = 0;
93
94
  virtual bool preventShadowTreeCommitExhaustion() = 0;
95
+ virtual bool redBoxV2Android() = 0;
96
+ virtual bool redBoxV2IOS() = 0;
94
97
  virtual bool shouldPressibilityUseW3CPointerEventsForHover() = 0;
95
98
  virtual bool shouldTriggerResponderTransferOnScrollAndroid() = 0;
96
99
  virtual bool skipActivityIdentityAssertionOnHostPause() = 0;
@@ -993,7 +993,7 @@ void JavaTurboModule::configureEventEmitterCallback() {
993
993
  args[0].l = callback.release();
994
994
 
995
995
  // CallVoidMethod is replaced with CallVoidMethodA as it's unsafe on 32bit and
996
- // causes crashes https://github.com/facebook/react-native/issues/51628
996
+ // causes crashes https://github.com/react/react-native/issues/51628
997
997
  env->CallVoidMethodA(instance_.get(), cachedMethodId, args);
998
998
  FACEBOOK_JNI_THROW_PENDING_EXCEPTION();
999
999
  }
@@ -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")
@@ -477,7 +477,7 @@ void ObjCInteropTurboModule::setInvocationArg(
477
477
  // Handle the special case where there is an argument and it must be nil
478
478
  // Without this check, the JS side will receive an object.
479
479
  // See: discussion at
480
- // https://github.com/facebook/react-native/pull/49250#issuecomment-2668465893
480
+ // https://github.com/react/react-native/pull/49250#issuecomment-2668465893
481
481
  if (arg == [NSNull null]) {
482
482
  return;
483
483
  }
@@ -695,7 +695,7 @@ void ObjCTurboModule::setInvocationArg(
695
695
  SEL methodArgConversionSelector = getMethodArgConversionSelector(methodNameNSString, i);
696
696
 
697
697
  // Message dispatch logic from old infra (link:
698
- // https://github.com/facebook/react-native/commit/6783694158057662fd7b11fc123c339b2b21bfe6#diff-263fc157dfce55895cdc16495b55d190R350)
698
+ // https://github.com/react/react-native/commit/6783694158057662fd7b11fc123c339b2b21bfe6#diff-263fc157dfce55895cdc16495b55d190R350)
699
699
  RCTManagedPointer *(*convert)(id, SEL, id) = (__typeof__(convert))objc_msgSend;
700
700
  RCTManagedPointer *box = convert([RCTCxxConvert class], methodArgConversionSelector, objCArg);
701
701
 
@@ -22,6 +22,7 @@ target_link_libraries(react_nativemodule_defaults
22
22
  react_nativemodule_microtasks
23
23
  react_nativemodule_idlecallbacks
24
24
  react_nativemodule_intersectionobserver
25
+ react_nativemodule_mutationobserver
25
26
  react_nativemodule_webperformance
26
27
  )
27
28
  target_compile_reactnative_options(react_nativemodule_defaults PRIVATE)
@@ -12,6 +12,7 @@
12
12
  #include <react/nativemodule/idlecallbacks/NativeIdleCallbacks.h>
13
13
  #include <react/nativemodule/intersectionobserver/NativeIntersectionObserver.h>
14
14
  #include <react/nativemodule/microtasks/NativeMicrotasks.h>
15
+ #include <react/nativemodule/mutationobserver/NativeMutationObserver.h>
15
16
  #include <react/nativemodule/webperformance/NativePerformance.h>
16
17
 
17
18
  #ifdef REACT_NATIVE_DEBUGGER_ENABLED_DEVONLY
@@ -51,6 +52,12 @@ namespace facebook::react {
51
52
  }
52
53
  }
53
54
 
55
+ if (ReactNativeFeatureFlags::enableMutationObserverByDefault()) {
56
+ if (name == NativeMutationObserver::kModuleName) {
57
+ return std::make_shared<NativeMutationObserver>(jsInvoker);
58
+ }
59
+ }
60
+
54
61
  #ifdef REACT_NATIVE_DEBUGGER_ENABLED_DEVONLY
55
62
  if (name == DevToolsRuntimeSettingsModule::kModuleName) {
56
63
  return std::make_shared<DevToolsRuntimeSettingsModule>(jsInvoker);
@@ -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")
@@ -53,6 +53,7 @@ Pod::Spec.new do |s|
53
53
  s.dependency "React-microtasksnativemodule"
54
54
  s.dependency "React-idlecallbacksnativemodule"
55
55
  s.dependency "React-intersectionobservernativemodule"
56
+ s.dependency "React-mutationobservernativemodule"
56
57
  s.dependency "React-webperformancenativemodule"
57
58
  add_dependency(s, "React-RCTFBReactNativeSpec")
58
59
  add_dependency(s, "React-featureflags")
@@ -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")
@@ -4,7 +4,7 @@
4
4
  * This source code is licensed under the MIT license found in the
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
- * @generated SignedSource<<884b5382bd771ceb400f15ab4069bc75>>
7
+ * @generated SignedSource<<d4e9743710d91c1287986f2dab260e10>>
8
8
  */
9
9
 
10
10
  /**
@@ -224,6 +224,11 @@ bool NativeReactNativeFeatureFlags::enableModuleArgumentNSNullConversionIOS(
224
224
  return ReactNativeFeatureFlags::enableModuleArgumentNSNullConversionIOS();
225
225
  }
226
226
 
227
+ bool NativeReactNativeFeatureFlags::enableMutationObserverByDefault(
228
+ jsi::Runtime& /*runtime*/) {
229
+ return ReactNativeFeatureFlags::enableMutationObserverByDefault();
230
+ }
231
+
227
232
  bool NativeReactNativeFeatureFlags::enableNativeCSSParsing(
228
233
  jsi::Runtime& /*runtime*/) {
229
234
  return ReactNativeFeatureFlags::enableNativeCSSParsing();
@@ -374,6 +379,16 @@ bool NativeReactNativeFeatureFlags::preventShadowTreeCommitExhaustion(
374
379
  return ReactNativeFeatureFlags::preventShadowTreeCommitExhaustion();
375
380
  }
376
381
 
382
+ bool NativeReactNativeFeatureFlags::redBoxV2Android(
383
+ jsi::Runtime& /*runtime*/) {
384
+ return ReactNativeFeatureFlags::redBoxV2Android();
385
+ }
386
+
387
+ bool NativeReactNativeFeatureFlags::redBoxV2IOS(
388
+ jsi::Runtime& /*runtime*/) {
389
+ return ReactNativeFeatureFlags::redBoxV2IOS();
390
+ }
391
+
377
392
  bool NativeReactNativeFeatureFlags::shouldPressibilityUseW3CPointerEventsForHover(
378
393
  jsi::Runtime& /*runtime*/) {
379
394
  return ReactNativeFeatureFlags::shouldPressibilityUseW3CPointerEventsForHover();
@@ -4,7 +4,7 @@
4
4
  * This source code is licensed under the MIT license found in the
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
- * @generated SignedSource<<41e6644bf2ceca861bfb1e491c912c1d>>
7
+ * @generated SignedSource<<1b5ca84f5d82d6861379191ed93d8b63>>
8
8
  */
9
9
 
10
10
  /**
@@ -108,6 +108,8 @@ class NativeReactNativeFeatureFlags
108
108
 
109
109
  bool enableModuleArgumentNSNullConversionIOS(jsi::Runtime& runtime);
110
110
 
111
+ bool enableMutationObserverByDefault(jsi::Runtime& runtime);
112
+
111
113
  bool enableNativeCSSParsing(jsi::Runtime& runtime);
112
114
 
113
115
  bool enableNetworkEventReporting(jsi::Runtime& runtime);
@@ -168,6 +170,10 @@ class NativeReactNativeFeatureFlags
168
170
 
169
171
  bool preventShadowTreeCommitExhaustion(jsi::Runtime& runtime);
170
172
 
173
+ bool redBoxV2Android(jsi::Runtime& runtime);
174
+
175
+ bool redBoxV2IOS(jsi::Runtime& runtime);
176
+
171
177
  bool shouldPressibilityUseW3CPointerEventsForHover(jsi::Runtime& runtime);
172
178
 
173
179
  bool shouldTriggerResponderTransferOnScrollAndroid(jsi::Runtime& runtime);
@@ -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")
@@ -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")
@@ -7,7 +7,11 @@
7
7
 
8
8
  #pragma once
9
9
 
10
+ #if __has_include("FBReactNativeSpecJSI.h") // CocoaPod headers on Apple
11
+ #include "FBReactNativeSpecJSI.h"
12
+ #else
10
13
  #include <FBReactNativeSpec/FBReactNativeSpecJSI.h>
14
+ #endif
11
15
  #include <react/renderer/bridging/bridging.h>
12
16
  #include <react/renderer/observers/mutation/MutationObserverManager.h>
13
17
  #include <react/renderer/uimanager/UIManager.h>
@@ -0,0 +1,66 @@
1
+ # Copyright (c) Meta Platforms, Inc. and affiliates.
2
+ #
3
+ # This source code is licensed under the MIT license found in the
4
+ # LICENSE file in the root directory of this source tree.
5
+
6
+ require "json"
7
+
8
+ package = JSON.parse(File.read(File.join(__dir__, "..", "..", "..", "..", "package.json")))
9
+ version = package['version']
10
+
11
+ source = { :git => 'https://github.com/react/react-native.git' }
12
+ if version == '1000.0.0'
13
+ # This is an unpublished version, use the latest commit hash of the react-native repo, which we're presumably in.
14
+ source[:commit] = `git rev-parse HEAD`.strip if system("git rev-parse --git-dir > /dev/null 2>&1")
15
+ else
16
+ source[:tag] = "v#{version}"
17
+ end
18
+
19
+ header_search_paths = [
20
+ "\"$(PODS_ROOT)/Headers/Private/Yoga\"",
21
+ ]
22
+
23
+ if ENV['USE_FRAMEWORKS']
24
+ header_search_paths << "\"$(PODS_TARGET_SRCROOT)/../../..\"" # this is needed to allow the module access its own files
25
+ end
26
+
27
+ Pod::Spec.new do |s|
28
+ s.name = "React-mutationobservernativemodule"
29
+ s.version = version
30
+ s.summary = "React Native mutation observer native module"
31
+ s.homepage = "https://reactnative.dev/"
32
+ s.license = package["license"]
33
+ s.author = "Meta Platforms, Inc. and its affiliates"
34
+ s.platforms = min_supported_versions
35
+ s.source = source
36
+ s.source_files = podspec_sources("*.{cpp,h}", "*.h")
37
+ s.header_dir = "react/nativemodule/mutationobserver"
38
+ s.pod_target_xcconfig = { "CLANG_CXX_LANGUAGE_STANDARD" => rct_cxx_language_standard(),
39
+ "HEADER_SEARCH_PATHS" => header_search_paths.join(' '),
40
+ "OTHER_CFLAGS" => "$(inherited)",
41
+ "DEFINES_MODULE" => "YES" }
42
+
43
+ if ENV['USE_FRAMEWORKS']
44
+ s.module_name = "mutationobservernativemodule"
45
+ s.header_mappings_dir = "../.."
46
+ end
47
+
48
+ s.dependency "Yoga"
49
+ s.dependency "React-jsi"
50
+ s.dependency "React-jsiexecutor"
51
+ s.dependency "React-cxxreact"
52
+
53
+ depend_on_js_engine(s)
54
+ add_rn_third_party_dependencies(s)
55
+ add_rncore_dependency(s)
56
+
57
+ s.dependency "ReactCommon/turbomodule/core"
58
+
59
+ s.dependency "React-Fabric"
60
+ s.dependency "React-Fabric/bridging"
61
+ s.dependency "React-Fabric/observers/mutation"
62
+ s.dependency "React-featureflags"
63
+ add_dependency(s, "React-RCTFBReactNativeSpec")
64
+ add_dependency(s, "React-runtimeexecutor", :additional_framework_paths => ["platform/ios"])
65
+
66
+ end
@@ -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")
@@ -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")
@@ -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")
@@ -11,6 +11,6 @@
11
11
  namespace facebook::react::animated {
12
12
  // Indicates that the animated node identifier is not defined.
13
13
  // It is safe to use 0 because JavaScript starts assigning identifiers from 1.
14
- // https://github.com/facebook/react-native/blob/main/packages/react-native/src/private/animated/NativeAnimatedHelper.js#L35
14
+ // https://github.com/react/react-native/blob/main/packages/react-native/src/private/animated/NativeAnimatedHelper.js#L35
15
15
  constexpr static Tag undefinedAnimatedNodeIdentifier = 0;
16
16
  } // namespace facebook::react::animated
@@ -455,6 +455,12 @@ BaseViewProps::BaseViewProps(
455
455
  "scrollSnapAlign",
456
456
  sourceProps.scrollSnapAlign,
457
457
  {}))
458
+ ,scrollSnapOffset(ReactNativeFeatureFlags::enableCppPropsIteratorSetter() ? sourceProps.scrollSnapOffset : convertRawProp(
459
+ context,
460
+ rawProps,
461
+ "scrollSnapOffset",
462
+ sourceProps.scrollSnapOffset,
463
+ {}))
458
464
  #endif
459
465
  {}
460
466
 
@@ -528,6 +534,7 @@ void BaseViewProps::setProp(
528
534
  RAW_SET_PROP_SWITCH_CASE_BASIC(trapFocusLeft);
529
535
  RAW_SET_PROP_SWITCH_CASE_BASIC(trapFocusRight);
530
536
  RAW_SET_PROP_SWITCH_CASE_BASIC(scrollSnapAlign);
537
+ RAW_SET_PROP_SWITCH_CASE_BASIC(scrollSnapOffset);
531
538
  #endif
532
539
  // events field
533
540
  VIEW_EVENT_CASE(PointerEnter);
@@ -126,6 +126,7 @@ class BaseViewProps : public YogaStylableProps, public AccessibilityProps {
126
126
 
127
127
  #if TARGET_OS_TV
128
128
  std::optional<std::string> scrollSnapAlign;
129
+ std::optional<int> scrollSnapOffset;
129
130
  #endif
130
131
 
131
132
  #pragma mark - Convenience Methods
@@ -108,6 +108,15 @@ HostPlatformViewProps::HostPlatformViewProps(
108
108
  "scrollSnapAlign",
109
109
  sourceProps.scrollSnapAlign,
110
110
  {})),
111
+ scrollSnapOffset(
112
+ ReactNativeFeatureFlags::enableCppPropsIteratorSetter()
113
+ ? sourceProps.scrollSnapOffset
114
+ : convertRawProp(
115
+ context,
116
+ rawProps,
117
+ "scrollSnapOffset",
118
+ sourceProps.scrollSnapOffset,
119
+ {})),
111
120
  needsOffscreenAlphaCompositing(
112
121
  ReactNativeFeatureFlags::enableCppPropsIteratorSetter()
113
122
  ? sourceProps.needsOffscreenAlphaCompositing
@@ -211,6 +220,7 @@ void HostPlatformViewProps::setProp(
211
220
  RAW_SET_PROP_SWITCH_CASE_BASIC(focusable);
212
221
  RAW_SET_PROP_SWITCH_CASE_BASIC(hasTVPreferredFocus);
213
222
  RAW_SET_PROP_SWITCH_CASE_BASIC(scrollSnapAlign);
223
+ RAW_SET_PROP_SWITCH_CASE_BASIC(scrollSnapOffset);
214
224
  RAW_SET_PROP_SWITCH_CASE_BASIC(needsOffscreenAlphaCompositing);
215
225
  RAW_SET_PROP_SWITCH_CASE_BASIC(renderToHardwareTextureAndroid);
216
226
  RAW_SET_PROP_SWITCH_CASE_BASIC(screenReaderFocusable);
@@ -1123,6 +1133,14 @@ folly::dynamic HostPlatformViewProps::getDiffProps(
1123
1133
  }
1124
1134
  }
1125
1135
 
1136
+ if (scrollSnapOffset != oldProps->scrollSnapOffset) {
1137
+ if (scrollSnapOffset.has_value()) {
1138
+ result["scrollSnapOffset"] = scrollSnapOffset.value();
1139
+ } else {
1140
+ result["scrollSnapOffset"] = folly::dynamic(nullptr);
1141
+ }
1142
+ }
1143
+
1126
1144
  return result;
1127
1145
  }
1128
1146
 
@@ -48,6 +48,7 @@ class HostPlatformViewProps : public BaseViewProps {
48
48
  bool trapFocusLeft{false};
49
49
  bool trapFocusRight{false};
50
50
  std::optional<std::string> scrollSnapAlign{};
51
+ std::optional<int> scrollSnapOffset{};
51
52
 
52
53
  bool needsOffscreenAlphaCompositing{false};
53
54
  bool renderToHardwareTextureAndroid{false};
@@ -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")
@@ -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")
@@ -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")
@@ -52,7 +52,7 @@ CullingContext CullingContext::adjustCullingContextIfNeeded(
52
52
  // In RTL, content offset is flipped horizontally.
53
53
  // We need to flip the culling context frame to match.
54
54
  // See:
55
- // https://github.com/facebook/react-native/blob/c2f39cfdd87c32b9a59efe8a788b8a03f02b0ea0/packages/react-native/React/Fabric/Mounting/ComponentViews/ScrollView/RCTScrollViewComponentView.mm#L579
55
+ // https://github.com/react/react-native/blob/c2f39cfdd87c32b9a59efe8a788b8a03f02b0ea0/packages/react-native/React/Fabric/Mounting/ComponentViews/ScrollView/RCTScrollViewComponentView.mm#L579
56
56
  auto stateData = scrollViewShadowNode->getStateData();
57
57
  cullingContext.frame.origin.x =
58
58
  stateData.contentBoundingRect.size.width -
@@ -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")
@@ -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")
@@ -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")
@@ -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")
@@ -6,7 +6,7 @@
6
6
  package = JSON.parse(File.read(File.expand_path('../../package.json', __dir__)))
7
7
  version = package['version']
8
8
 
9
- source = { :git => ENV['INSTALL_YOGA_FROM_LOCATION'] || 'https://github.com/facebook/react-native.git' }
9
+ source = { :git => ENV['INSTALL_YOGA_FROM_LOCATION'] || 'https://github.com/react/react-native.git' }
10
10
  if version == '1000.0.0'
11
11
  # This is an unpublished version, use the latest commit hash of the react-native repo, which we’re presumably in.
12
12
  source[:commit] = `git rev-parse HEAD`.strip if system("git rev-parse --git-dir > /dev/null 2>&1")
@@ -61,6 +61,6 @@ Pod::Spec.new do |spec|
61
61
  # Fabric must be able to access private headers (which should not be included in the umbrella header)
62
62
  all_header_files = 'yoga/**/*.h'
63
63
  all_header_files = File.join('ReactCommon/yoga', all_header_files) if ENV['INSTALL_YOGA_WITHOUT_PATH_OPTION']
64
- spec.private_header_files = Dir.glob(all_header_files) - Dir.glob(public_header_files)
64
+ spec.private_header_files = Dir.glob(all_header_files).sort - Dir.glob(public_header_files).sort
65
65
  spec.preserve_paths = [all_header_files]
66
66
  end