react-native 0.83.0-nightly-20250929-2f40224fa → 0.83.0-nightly-20250930-a07308081

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 (53) hide show
  1. package/Libraries/Components/TextInput/TextInput.js +0 -6
  2. package/Libraries/Components/View/ViewNativeComponent.js +2 -2
  3. package/Libraries/Core/ReactNativeVersion.js +1 -1
  4. package/React/Base/RCTVersion.m +1 -1
  5. package/ReactAndroid/api/ReactAndroid.api +6 -0
  6. package/ReactAndroid/gradle.properties +1 -1
  7. package/ReactAndroid/src/main/java/com/facebook/react/modules/systeminfo/ReactNativeVersion.kt +1 -1
  8. package/ReactAndroid/src/main/java/com/facebook/react/uimanager/ReactRoot.kt +66 -0
  9. package/ReactAndroid/src/main/java/com/facebook/react/uimanager/UIManagerHelper.kt +2 -1
  10. package/ReactAndroid/src/main/jni/react/jni/TransformHelper.cpp +3 -1
  11. package/ReactCommon/cxxreact/ModuleRegistry.cpp +1 -1
  12. package/ReactCommon/cxxreact/RAMBundleRegistry.cpp +2 -2
  13. package/ReactCommon/cxxreact/ReactNativeVersion.h +1 -1
  14. package/ReactCommon/jserrorhandler/tests/StackTraceParserTest.cpp +599 -233
  15. package/ReactCommon/jsinspector-modern/NetworkIOAgent.cpp +4 -2
  16. package/ReactCommon/jsinspector-modern/network/BoundedRequestBuffer.cpp +2 -2
  17. package/ReactCommon/jsinspector-modern/tracing/tests/ProfileTreeNodeTest.cpp +12 -4
  18. package/ReactCommon/react/nativemodule/fantomtestspecificmethods/internal/FantomForcedCloneCommitHook.cpp +4 -3
  19. package/ReactCommon/react/performance/cdpmetrics/CdpInteractionTypes.cpp +1 -1
  20. package/ReactCommon/react/performance/cdpmetrics/CdpInteractionTypes.h +1 -1
  21. package/ReactCommon/react/renderer/animations/LayoutAnimationKeyFrameManager.cpp +34 -31
  22. package/ReactCommon/react/renderer/animations/conversions.h +16 -13
  23. package/ReactCommon/react/renderer/animations/tests/LayoutAnimationTest.cpp +46 -32
  24. package/ReactCommon/react/renderer/componentregistry/ComponentDescriptorRegistry.cpp +3 -3
  25. package/ReactCommon/react/renderer/components/legacyviewmanagerinterop/LegacyViewManagerInteropComponentDescriptor.mm +1 -1
  26. package/ReactCommon/react/renderer/components/view/BaseViewProps.cpp +0 -3
  27. package/ReactCommon/react/renderer/components/view/tests/ResolveTransformTest.cpp +377 -0
  28. package/ReactCommon/react/renderer/core/propsConversions.h +24 -0
  29. package/ReactCommon/react/renderer/css/CSSRatio.h +4 -2
  30. package/ReactCommon/react/renderer/css/CSSTransform.h +1 -1
  31. package/ReactCommon/react/renderer/css/tests/CSSFilterTest.cpp +5 -5
  32. package/ReactCommon/react/renderer/css/tests/CSSShadowTest.cpp +6 -6
  33. package/ReactCommon/react/renderer/dom/DOM.cpp +3 -1
  34. package/ReactCommon/react/renderer/element/ComponentBuilder.cpp +9 -7
  35. package/ReactCommon/react/renderer/element/testUtils.h +3 -1
  36. package/ReactCommon/react/renderer/graphics/Color.cpp +6 -3
  37. package/ReactCommon/react/renderer/graphics/Rect.h +12 -9
  38. package/ReactCommon/react/renderer/graphics/RectangleEdges.h +10 -6
  39. package/ReactCommon/react/renderer/graphics/Transform.cpp +77 -57
  40. package/ReactCommon/react/renderer/graphics/platform/cxx/react/renderer/graphics/HostPlatformColor.h +4 -4
  41. package/ReactCommon/react/renderer/imagemanager/primitives.h +1 -1
  42. package/ReactCommon/react/renderer/mounting/ShadowTree.cpp +22 -13
  43. package/ReactCommon/react/renderer/mounting/ShadowView.cpp +11 -8
  44. package/ReactCommon/react/renderer/mounting/stubs/stubs.cpp +4 -4
  45. package/ReactCommon/react/renderer/mounting/tests/OrderIndexTest.cpp +2 -1
  46. package/ReactCommon/react/renderer/mounting/tests/ShadowTreeLifeCycleTest.cpp +32 -16
  47. package/package.json +8 -8
  48. package/sdks/hermesc/osx-bin/hermes +0 -0
  49. package/sdks/hermesc/osx-bin/hermesc +0 -0
  50. package/sdks/hermesc/win64-bin/hermesc.exe +0 -0
  51. package/src/private/webapis/dom/nodes/ReactNativeElement.js +2 -12
  52. package/types_generated/Libraries/Components/View/ViewNativeComponent.d.ts +3 -3
  53. package/ReactAndroid/src/main/java/com/facebook/react/uimanager/ReactRoot.java +0 -76
@@ -449,12 +449,6 @@ function InternalTextInput(props: TextInputProps): React.Node {
449
449
  before we can get to the long term breaking change.
450
450
  */
451
451
  if (instance != null) {
452
- // Register the input immediately when the ref is set so that focus()
453
- // can be called from ref callbacks
454
- // Double registering during useLayoutEffect is fine, because the underlying
455
- // state is a Set.
456
- TextInputState.registerInput(instance);
457
-
458
452
  // $FlowFixMe[prop-missing] - See the explanation above.
459
453
  // $FlowFixMe[unsafe-object-assign]
460
454
  Object.assign(instance, {
@@ -21,8 +21,8 @@ const ViewNativeComponent: HostComponent<Props> =
21
21
  }));
22
22
 
23
23
  interface NativeCommands {
24
- +focus: (viewRef: HostInstance) => void;
25
- +blur: (viewRef: HostInstance) => void;
24
+ +focus: () => void;
25
+ +blur: () => void;
26
26
  +hotspotUpdate: (viewRef: HostInstance, x: number, y: number) => void;
27
27
  +setPressed: (viewRef: HostInstance, pressed: boolean) => void;
28
28
  }
@@ -29,7 +29,7 @@ export default class ReactNativeVersion {
29
29
  static major: number = 0;
30
30
  static minor: number = 83;
31
31
  static patch: number = 0;
32
- static prerelease: string | null = 'nightly-20250929-2f40224fa';
32
+ static prerelease: string | null = 'nightly-20250930-a07308081';
33
33
 
34
34
  static getVersionString(): string {
35
35
  return `${this.major}.${this.minor}.${this.patch}${this.prerelease != null ? `-${this.prerelease}` : ''}`;
@@ -24,7 +24,7 @@ NSDictionary* RCTGetReactNativeVersion(void)
24
24
  RCTVersionMajor: @(0),
25
25
  RCTVersionMinor: @(83),
26
26
  RCTVersionPatch: @(0),
27
- RCTVersionPrerelease: @"nightly-20250929-2f40224fa",
27
+ RCTVersionPrerelease: @"nightly-20250930-a07308081",
28
28
  };
29
29
  });
30
30
  return __rnVersion;
@@ -3806,6 +3806,7 @@ public abstract interface class com/facebook/react/uimanager/ReactPointerEventsV
3806
3806
  }
3807
3807
 
3808
3808
  public abstract interface class com/facebook/react/uimanager/ReactRoot {
3809
+ public static final field Companion Lcom/facebook/react/uimanager/ReactRoot$Companion;
3809
3810
  public static final field STATE_STARTED I
3810
3811
  public static final field STATE_STOPPED I
3811
3812
  public abstract fun getAppProperties ()Landroid/os/Bundle;
@@ -3823,6 +3824,11 @@ public abstract interface class com/facebook/react/uimanager/ReactRoot {
3823
3824
  public abstract fun setShouldLogContentAppeared (Z)V
3824
3825
  }
3825
3826
 
3827
+ public final class com/facebook/react/uimanager/ReactRoot$Companion {
3828
+ public static final field STATE_STARTED I
3829
+ public static final field STATE_STOPPED I
3830
+ }
3831
+
3826
3832
  public abstract interface class com/facebook/react/uimanager/ReactShadowNode {
3827
3833
  public abstract fun addChildAt (Lcom/facebook/react/uimanager/ReactShadowNode;I)V
3828
3834
  public abstract fun addNativeChildAt (Lcom/facebook/react/uimanager/ReactShadowNode;I)V
@@ -1,4 +1,4 @@
1
- VERSION_NAME=0.83.0-nightly-20250929-2f40224fa
1
+ VERSION_NAME=0.83.0-nightly-20250930-a07308081
2
2
  react.internal.publishingGroup=com.facebook.react
3
3
  react.internal.hermesPublishingGroup=com.facebook.hermes
4
4
 
@@ -15,6 +15,6 @@ public object ReactNativeVersion {
15
15
  "major" to 0,
16
16
  "minor" to 83,
17
17
  "patch" to 0,
18
- "prerelease" to "nightly-20250929-2f40224fa"
18
+ "prerelease" to "nightly-20250930-a07308081"
19
19
  )
20
20
  }
@@ -0,0 +1,66 @@
1
+ /*
2
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ */
7
+
8
+ package com.facebook.react.uimanager
9
+
10
+ import android.os.Bundle
11
+ import android.view.ViewGroup
12
+ import com.facebook.react.uimanager.common.UIManagerType
13
+ import java.util.concurrent.atomic.AtomicInteger
14
+
15
+ /** Interface for the root native view of a React native application */
16
+ public interface ReactRoot {
17
+
18
+ public companion object {
19
+ /** This constant represents that ReactRoot hasn't started yet or it has been destroyed. */
20
+ public const val STATE_STOPPED: Int = 0
21
+
22
+ /** This constant represents that ReactRoot has started. */
23
+ public const val STATE_STARTED: Int = 1
24
+ }
25
+
26
+ /** Return cached launch properties for app */
27
+ public fun getAppProperties(): Bundle?
28
+
29
+ public fun getJSModuleName(): String
30
+
31
+ /** Fabric or Default UI Manager, see [UIManagerType] */
32
+ @UIManagerType public fun getUIManagerType(): Int
33
+
34
+ public fun getRootViewTag(): Int
35
+
36
+ public fun setRootViewTag(rootViewTag: Int)
37
+
38
+ /** Calls into JS to start the React application. */
39
+ public fun runApplication()
40
+
41
+ /** Handler for stages [com.facebook.react.surface.ReactStage] */
42
+ public fun onStage(@ReactStage stage: Int)
43
+
44
+ /** Return native view for root */
45
+ public fun getRootViewGroup(): ViewGroup
46
+
47
+ /** @return Cached values for widthMeasureSpec. */
48
+ public fun getWidthMeasureSpec(): Int
49
+
50
+ /** @return Cached values for and heightMeasureSpec. */
51
+ public fun getHeightMeasureSpec(): Int
52
+
53
+ /** Sets a flag that determines whether to log that content appeared on next view added. */
54
+ public fun setShouldLogContentAppeared(shouldLogContentAppeared: Boolean)
55
+
56
+ /**
57
+ * @return a [String] that represents the root js application that is being rendered with this
58
+ * [ReactRoot]
59
+ * @deprecated We recommend to not use this method as it is will be replaced in the near future.
60
+ */
61
+ @Deprecated("We recommend to not use this method as it is will be replaced in the near future.")
62
+ public fun getSurfaceID(): String?
63
+
64
+ /** @return an [AtomicInteger] that represents the state of the ReactRoot object. */
65
+ public fun getState(): AtomicInteger
66
+ }
@@ -194,7 +194,8 @@ public object UIManagerHelper {
194
194
  public fun getSurfaceId(view: View): Int {
195
195
  if (view is ReactRoot) {
196
196
  val rootView = view as ReactRoot
197
- return if (rootView.uiManagerType == UIManagerType.FABRIC) rootView.rootViewTag else -1
197
+ return if (rootView.getUIManagerType() == UIManagerType.FABRIC) rootView.getRootViewTag()
198
+ else -1
198
199
  }
199
200
 
200
201
  val reactTag = view.id
@@ -39,7 +39,9 @@ void processTransform(
39
39
  }
40
40
 
41
41
  auto result = BaseViewProps::resolveTransform(
42
- Size(viewWidth, viewHeight), transform, transformOrigin);
42
+ Size{.width = viewWidth, .height = viewHeight},
43
+ transform,
44
+ transformOrigin);
43
45
 
44
46
  // Convert from matrix of floats to double matrix
45
47
  constexpr size_t MatrixSize = std::tuple_size_v<decltype(result.matrix)>;
@@ -190,7 +190,7 @@ std::optional<ModuleConfig> ModuleRegistry::getConfig(const std::string& name) {
190
190
  // no constants or methods
191
191
  return std::nullopt;
192
192
  } else {
193
- return ModuleConfig{index, std::move(config)};
193
+ return ModuleConfig{.index = index, .config = std::move(config)};
194
194
  }
195
195
  }
196
196
 
@@ -70,8 +70,8 @@ JSModulesUnbundle::Module RAMBundleRegistry::getModule(
70
70
  }
71
71
 
72
72
  return {
73
- "seg-" + std::to_string(bundleId) + '_' + module.name,
74
- std::move(module.code),
73
+ .name = "seg-" + std::to_string(bundleId) + '_' + module.name,
74
+ .code = std::move(module.code),
75
75
  };
76
76
  }
77
77
 
@@ -22,7 +22,7 @@ constexpr struct {
22
22
  int32_t Major = 0;
23
23
  int32_t Minor = 83;
24
24
  int32_t Patch = 0;
25
- std::string_view Prerelease = "nightly-20250929-2f40224fa";
25
+ std::string_view Prerelease = "nightly-20250930-a07308081";
26
26
  } ReactNativeVersion;
27
27
 
28
28
  } // namespace facebook::react