Move CxxCallbackImpl to native-types (#56822)

Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/56822

Changelog: [Internal]

Reviewed By: thegreatercurve

Differential Revision: D104870951

fbshipit-source-id: 3b4bc9664ec1088eb944e68bf958e5e2b7b2d74c
This commit is contained in:
Pieter De Baets authored and meta-codesync[bot] committed 2026-05-14 05:37:24 -07:00
1 parent 0b9969f7f5
commit 67303dfb82
2 files changed
+3 -2

No files matched your search

@@ -139,6 +139,7 @@ public object Arguments {
public fun fromJavaArgs(args: Any?): WritableNativeArray = fromJavaArgs(args as Array<Any?>)
@JvmStatic
@Suppress("PLATFORM_CLASS_MAPPED_TO_KOTLIN")
public fun fromJavaArgs(args: Array<Any?>): WritableNativeArray {
val arguments = WritableNativeArray()
for (i in args.indices) {
@@ -270,7 +270,7 @@ public abstract class ReactContext extends ContextWrapper {
@ThreadConfined(UI)
public void onHostResume(@Nullable Activity activity) {
mLifecycleState = LifecycleState.RESUMED;
mCurrentActivity = new WeakReference(activity);
mCurrentActivity = new WeakReference<>(activity);
ReactMarker.logMarker(ReactMarkerConstants.ON_HOST_RESUME_START);
for (LifecycleEventListener listener : mLifecycleEventListeners) {
try {
@@ -298,7 +298,7 @@ public abstract class ReactContext extends ContextWrapper {
@ThreadConfined(UI)
public void onNewIntent(@Nullable Activity activity, Intent intent) {
UiThreadUtil.assertOnUiThread();
mCurrentActivity = new WeakReference(activity);
mCurrentActivity = new WeakReference<>(activity);
for (ActivityEventListener listener : mActivityEventListeners) {
try {
listener.onNewIntent(intent);