You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Summary:
Pull Request resolved: #42115
React Native Android had a concept called JSIModules, which iOS doesn't have. The JSIModule concept was introduced in the early stages of the Fabric project to represent modules that interact with JS through JSI and they are not NativeModules.
In the new architecture this concept is not really necessary and these interfaces were only used to initialize and destroy the Fabric renderer and TurboModule Manager in react native core. Bridgeless mode doesn’t use JSIModule anymore. Also, it has an explicit list of supported JSI module types, so is not open for extension.
In order to simplify RN concepts and reduce confusion with TurboModules, which also "use JSI", deleting everything related to JSIModule. This was already deprecated in 0.74.0.
Please use ReactInstanceEventListener to subscribe for react instance events instead of getJSIModule() and we recommend using TurboModules instead of JSIModules.
Changelog:
[General][Breaking] Delete JSIModule
Reviewed By: javache, cortinico
Differential Revision: D49597702
fbshipit-source-id: bc2bc190aafaf559336b341b50ffabf413474105
Copy file name to clipboardExpand all lines: packages/react-native/ReactAndroid/api/ReactAndroid.api
-34Lines changed: 0 additions & 34 deletions
Original file line number
Diff line number
Diff line change
@@ -561,13 +561,11 @@ public final class com/facebook/react/bridge/CallbackImpl : com/facebook/react/b
561
561
562
562
public abstract interface class com/facebook/react/bridge/CatalystInstance : com/facebook/react/bridge/JSBundleLoaderDelegate, com/facebook/react/bridge/JSInstance, com/facebook/react/bridge/MemoryPressureListener {
563
563
public abstract fun addBridgeIdleDebugListener (Lcom/facebook/react/bridge/NotThreadSafeBridgeIdleDebugListener;)V
564
-
public abstract fun addJSIModules (Ljava/util/List;)V
565
564
public abstract fun callFunction (Ljava/lang/String;Ljava/lang/String;Lcom/facebook/react/bridge/NativeArray;)V
566
565
public abstract fun destroy ()V
567
566
public abstract fun extendNativeModules (Lcom/facebook/react/bridge/NativeModuleRegistry;)V
568
567
public abstract fun getFabricUIManager ()Lcom/facebook/react/bridge/UIManager;
569
568
public abstract fun getJSCallInvokerHolder ()Lcom/facebook/react/turbomodule/core/interfaces/CallInvokerHolder;
570
-
public abstract fun getJSIModule (Lcom/facebook/react/bridge/JSIModuleType;)Lcom/facebook/react/bridge/JSIModule;
571
569
public abstract fun getJSModule (Ljava/lang/Class;)Lcom/facebook/react/bridge/JavaScriptModule;
572
570
public abstract fun getJavaScriptContextHolder ()Lcom/facebook/react/bridge/JavaScriptContextHolder;
573
571
public abstract fun getNativeMethodCallInvokerHolder ()Lcom/facebook/react/turbomodule/core/interfaces/NativeMethodCallInvokerHolder;
@@ -586,21 +584,18 @@ public abstract interface class com/facebook/react/bridge/CatalystInstance : com
586
584
public abstract fun removeBridgeIdleDebugListener (Lcom/facebook/react/bridge/NotThreadSafeBridgeIdleDebugListener;)V
587
585
public abstract fun runJSBundle ()V
588
586
public abstract fun setFabricUIManager (Lcom/facebook/react/bridge/UIManager;)V
589
-
public abstract fun setTurboModuleManager (Lcom/facebook/react/bridge/JSIModule;)V
590
587
public abstract fun setTurboModuleRegistry (Lcom/facebook/react/internal/turbomodule/core/interfaces/TurboModuleRegistry;)V
591
588
}
592
589
593
590
public class com/facebook/react/bridge/CatalystInstanceImpl : com/facebook/react/bridge/CatalystInstance {
594
591
public fun addBridgeIdleDebugListener (Lcom/facebook/react/bridge/NotThreadSafeBridgeIdleDebugListener;)V
595
-
public fun addJSIModules (Ljava/util/List;)V
596
592
public fun callFunction (Lcom/facebook/react/bridge/CatalystInstanceImpl$PendingJSCall;)V
597
593
public fun callFunction (Ljava/lang/String;Ljava/lang/String;Lcom/facebook/react/bridge/NativeArray;)V
598
594
public fun destroy ()V
599
595
public fun extendNativeModules (Lcom/facebook/react/bridge/NativeModuleRegistry;)V
600
596
public fun getFabricUIManager ()Lcom/facebook/react/bridge/UIManager;
601
597
public fun getJSCallInvokerHolder ()Lcom/facebook/react/turbomodule/core/CallInvokerHolderImpl;
602
598
public synthetic fun getJSCallInvokerHolder ()Lcom/facebook/react/turbomodule/core/interfaces/CallInvokerHolder;
603
-
public fun getJSIModule (Lcom/facebook/react/bridge/JSIModuleType;)Lcom/facebook/react/bridge/JSIModule;
604
599
public fun getJSModule (Ljava/lang/Class;)Lcom/facebook/react/bridge/JavaScriptModule;
605
600
public fun getJavaScriptContextHolder ()Lcom/facebook/react/bridge/JavaScriptContextHolder;
606
601
public fun getNativeMethodCallInvokerHolder ()Lcom/facebook/react/turbomodule/core/NativeMethodCallInvokerHolderImpl;
@@ -626,7 +621,6 @@ public class com/facebook/react/bridge/CatalystInstanceImpl : com/facebook/react
626
621
public fun setFabricUIManager (Lcom/facebook/react/bridge/UIManager;)V
627
622
public fun setGlobalVariable (Ljava/lang/String;Ljava/lang/String;)V
628
623
public fun setSourceURLs (Ljava/lang/String;Ljava/lang/String;)V
629
-
public fun setTurboModuleManager (Lcom/facebook/react/bridge/JSIModule;)V
630
624
public fun setTurboModuleRegistry (Lcom/facebook/react/internal/turbomodule/core/interfaces/TurboModuleRegistry;)V
631
625
}
632
626
@@ -796,31 +790,6 @@ public abstract interface class com/facebook/react/bridge/JSExceptionHandler {
796
790
public abstract fun handleException (Ljava/lang/Exception;)V
797
791
}
798
792
799
-
public abstract interface class com/facebook/react/bridge/JSIModule {
800
-
public abstract fun initialize ()V
801
-
public abstract fun invalidate ()V
802
-
}
803
-
804
-
public abstract interface class com/facebook/react/bridge/JSIModulePackage {
805
-
public abstract fun getJSIModules (Lcom/facebook/react/bridge/ReactApplicationContext;Lcom/facebook/react/bridge/JavaScriptContextHolder;)Ljava/util/List;
806
-
}
807
-
808
-
public abstract interface class com/facebook/react/bridge/JSIModuleProvider {
809
-
public abstract fun get ()Lcom/facebook/react/bridge/JSIModule;
810
-
}
811
-
812
-
public abstract interface class com/facebook/react/bridge/JSIModuleSpec {
813
-
public abstract fun getJSIModuleProvider ()Lcom/facebook/react/bridge/JSIModuleProvider;
814
-
public abstract fun getJSIModuleType ()Lcom/facebook/react/bridge/JSIModuleType;
815
-
}
816
-
817
-
public final class com/facebook/react/bridge/JSIModuleType : java/lang/Enum {
818
-
public static final field TurboModuleManager Lcom/facebook/react/bridge/JSIModuleType;
819
-
public static final field UIManager Lcom/facebook/react/bridge/JSIModuleType;
820
-
public static fun valueOf (Ljava/lang/String;)Lcom/facebook/react/bridge/JSIModuleType;
821
-
public static fun values ()[Lcom/facebook/react/bridge/JSIModuleType;
822
-
}
823
-
824
793
public class com/facebook/react/bridge/JSONArguments {
825
794
public fun <init> ()V
826
795
public static fun fromJSONArray (Lorg/json/JSONArray;)Lcom/facebook/react/bridge/ReadableArray;
@@ -3706,13 +3675,11 @@ public abstract class com/facebook/react/runtime/BindingsInstaller {
3706
3675
public final class com/facebook/react/runtime/BridgelessCatalystInstance : com/facebook/react/bridge/CatalystInstance {
3707
3676
public fun <init> (Lcom/facebook/react/runtime/ReactHostImpl;)V
3708
3677
public fun addBridgeIdleDebugListener (Lcom/facebook/react/bridge/NotThreadSafeBridgeIdleDebugListener;)V
3709
-
public fun addJSIModules (Ljava/util/List;)V
3710
3678
public fun callFunction (Ljava/lang/String;Ljava/lang/String;Lcom/facebook/react/bridge/NativeArray;)V
3711
3679
public fun destroy ()V
3712
3680
public fun extendNativeModules (Lcom/facebook/react/bridge/NativeModuleRegistry;)V
3713
3681
public fun getFabricUIManager ()Lcom/facebook/react/bridge/UIManager;
3714
3682
public fun getJSCallInvokerHolder ()Lcom/facebook/react/turbomodule/core/interfaces/CallInvokerHolder;
3715
-
public fun getJSIModule (Lcom/facebook/react/bridge/JSIModuleType;)Lcom/facebook/react/bridge/JSIModule;
3716
3683
public fun getJSModule (Ljava/lang/Class;)Lcom/facebook/react/bridge/JavaScriptModule;
3717
3684
public fun getJavaScriptContextHolder ()Lcom/facebook/react/bridge/JavaScriptContextHolder;
3718
3685
public fun getNativeMethodCallInvokerHolder ()Lcom/facebook/react/turbomodule/core/interfaces/NativeMethodCallInvokerHolder;
@@ -3736,7 +3703,6 @@ public final class com/facebook/react/runtime/BridgelessCatalystInstance : com/f
3736
3703
public fun runJSBundle ()V
3737
3704
public fun setFabricUIManager (Lcom/facebook/react/bridge/UIManager;)V
3738
3705
public fun setSourceURLs (Ljava/lang/String;Ljava/lang/String;)V
3739
-
public fun setTurboModuleManager (Lcom/facebook/react/bridge/JSIModule;)V
3740
3706
public fun setTurboModuleRegistry (Lcom/facebook/react/internal/turbomodule/core/interfaces/TurboModuleRegistry;)V
0 commit comments