mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Convert com.facebook.react.bridge.NativeArray to Kotlin (#47456)
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/47456 Changelog: [Internal] Reviewed By: tdn120 Differential Revision: D65486257 fbshipit-source-id: d18d38fd7e605918d79e370dda7df51abac2f23c
This commit is contained in:
committed by
Facebook GitHub Bot
parent
fd72537202
commit
3c32da5bfe
-24
@@ -1,24 +0,0 @@
|
||||
/*
|
||||
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/
|
||||
|
||||
package com.facebook.react.bridge;
|
||||
|
||||
import com.facebook.jni.HybridClassBase;
|
||||
import com.facebook.proguard.annotations.DoNotStrip;
|
||||
|
||||
/** Base class for an array whose members are stored in native code (C++). */
|
||||
@DoNotStrip
|
||||
public abstract class NativeArray extends HybridClassBase implements NativeArrayInterface {
|
||||
static {
|
||||
ReactBridge.staticInit();
|
||||
}
|
||||
|
||||
protected NativeArray() {}
|
||||
|
||||
@Override
|
||||
public native String toString();
|
||||
}
|
||||
+25
@@ -0,0 +1,25 @@
|
||||
/*
|
||||
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/
|
||||
|
||||
package com.facebook.react.bridge
|
||||
|
||||
import com.facebook.jni.HybridClassBase
|
||||
import com.facebook.proguard.annotations.DoNotStrip
|
||||
|
||||
/** Base class for an array whose members are stored in native code (C++). */
|
||||
@DoNotStrip
|
||||
public abstract class NativeArray protected constructor() :
|
||||
HybridClassBase(), NativeArrayInterface {
|
||||
|
||||
external override fun toString(): String
|
||||
|
||||
private companion object {
|
||||
init {
|
||||
ReactBridge.staticInit()
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user