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:
Pieter De Baets
2024-11-08 04:31:46 -08:00
committed by Facebook GitHub Bot
parent fd72537202
commit 3c32da5bfe
2 changed files with 25 additions and 24 deletions
@@ -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();
}
@@ -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()
}
}
}