Skip to content

Commit 9f941c5

Browse files
NickGerlemanfacebook-github-bot
authored andcommitted
Make StateWrapperImpl Internal (#50920)
Summary: Pull Request resolved: #50920 We construct this from JNI, which doesn't care about visibility, and then only want to expose `StateWrapper` as the public interface. Changelog: [Android][Removed] - Make StateWrapperImpl Internal Reviewed By: Abbondanzo Differential Revision: D73161592 fbshipit-source-id: b787e31e190dc52a02d73cadfa77b1c1defb9703
1 parent dd52b4e commit 9f941c5

File tree

2 files changed

+1
-10
lines changed

2 files changed

+1
-10
lines changed

packages/react-native/ReactAndroid/api/ReactAndroid.api

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2384,15 +2384,6 @@ public final class com/facebook/react/fabric/FabricUIManagerProviderImpl : com/f
23842384
public fun createUIManager (Lcom/facebook/react/bridge/ReactApplicationContext;)Lcom/facebook/react/bridge/UIManager;
23852385
}
23862386

2387-
public final class com/facebook/react/fabric/StateWrapperImpl : com/facebook/jni/HybridClassBase, com/facebook/react/uimanager/StateWrapper {
2388-
public fun destroyState ()V
2389-
public fun getStateData ()Lcom/facebook/react/bridge/ReadableNativeMap;
2390-
public fun getStateDataMapBuffer ()Lcom/facebook/react/common/mapbuffer/ReadableMapBuffer;
2391-
public fun toString ()Ljava/lang/String;
2392-
public fun updateState (Lcom/facebook/react/bridge/WritableMap;)V
2393-
public final fun updateStateImpl (Lcom/facebook/react/bridge/NativeMap;)V
2394-
}
2395-
23962387
public final class com/facebook/react/fabric/events/EventBeatManager : com/facebook/jni/HybridClassBase, com/facebook/react/uimanager/events/BatchEventDispatchedListener {
23972388
public fun <init> ()V
23982389
public fun onBatchEventDispatched ()V

packages/react-native/ReactAndroid/src/main/java/com/facebook/react/fabric/StateWrapperImpl.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import com.facebook.react.uimanager.StateWrapper
2323
*/
2424
@SuppressLint("MissingNativeLoadLibrary")
2525
@DoNotStripAny
26-
public class StateWrapperImpl private constructor() : HybridClassBase(), StateWrapper {
26+
internal class StateWrapperImpl private constructor() : HybridClassBase(), StateWrapper {
2727

2828
private external fun initHybrid()
2929

0 commit comments

Comments
 (0)