forked from facebook/react-native
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migrate *NativeMap classes to Kotlin (facebook#44581)
Summary: Pull Request resolved: facebook#44581 # Changelog: [Internal] - This converts the vertical of NativeArray/ReadableNativeArray/WritableNativeArray classes to Kotlin. Differential Revision: D57329244
- Loading branch information
1 parent
29fa2bc
commit 60fa05b
Showing
7 changed files
with
289 additions
and
546 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 0 additions & 28 deletions
28
packages/react-native/ReactAndroid/src/main/java/com/facebook/react/bridge/NativeMap.java
This file was deleted.
Oops, something went wrong.
23 changes: 23 additions & 0 deletions
23
packages/react-native/ReactAndroid/src/main/java/com/facebook/react/bridge/NativeMap.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
/* | ||
* 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.HybridData | ||
import com.facebook.proguard.annotations.DoNotStrip | ||
|
||
/** Base class for a Map whose keys and values are stored in native code (C++). */ | ||
@DoNotStrip | ||
public abstract class NativeMap(@field:DoNotStrip private val mHybridData: HybridData?) { | ||
external override fun toString(): String | ||
|
||
private companion object { | ||
init { | ||
ReactBridge.staticInit() | ||
} | ||
} | ||
} |
Oops, something went wrong.