mirror of
https://github.com/facebook/react-native.git
synced 2026-11-18 20:19:07 +00:00
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:
1 parent
0b9969f7f5
commit
67303dfb82
2 files changed
+3
-2
No files matched your search
+1
@@ -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) {
|
||||
|
||||
+2
-2
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user