File tree Expand file tree Collapse file tree 3 files changed +21
-0
lines changed
packages/react-native/ReactAndroid
src/main/java/com/facebook/react Expand file tree Collapse file tree 3 files changed +21
-0
lines changed Original file line number Diff line number Diff line change @@ -140,6 +140,8 @@ public class com/facebook/react/ReactActivityDelegate {
140
140
public fun onUserLeaveHint ()V
141
141
public fun onWindowFocusChanged (Z)V
142
142
public fun requestPermissions ([Ljava/lang/String;ILcom/facebook/react/modules/core/PermissionListener;)V
143
+ public fun setReactRootView (Lcom/facebook/react/ReactRootView;)V
144
+ public fun setReactSurface (Lcom/facebook/react/interfaces/fabric/ReactSurface;)V
143
145
}
144
146
145
147
public abstract interface class com/facebook/react/ReactApplication {
@@ -171,6 +173,8 @@ public class com/facebook/react/ReactDelegate {
171
173
public fun onUserLeaveHint ()V
172
174
public fun onWindowFocusChanged (Z)V
173
175
public fun reload ()V
176
+ public fun setReactRootView (Lcom/facebook/react/ReactRootView;)V
177
+ public fun setReactSurface (Lcom/facebook/react/interfaces/fabric/ReactSurface;)V
174
178
public fun shouldShowDevMenuOrReload (ILandroid/view/KeyEvent;)Z
175
179
public fun unloadApp ()V
176
180
}
Original file line number Diff line number Diff line change 20
20
import com .facebook .react .bridge .Callback ;
21
21
import com .facebook .react .bridge .ReactContext ;
22
22
import com .facebook .react .common .annotations .DeprecatedInNewArchitecture ;
23
+ import com .facebook .react .interfaces .fabric .ReactSurface ;
23
24
import com .facebook .react .internal .featureflags .ReactNativeFeatureFlags ;
24
25
import com .facebook .react .modules .core .PermissionListener ;
25
26
import com .facebook .systrace .Systrace ;
@@ -156,6 +157,14 @@ protected void loadApp(String appKey) {
156
157
getPlainActivity ().setContentView (mReactDelegate .getReactRootView ());
157
158
}
158
159
160
+ public void setReactSurface (ReactSurface reactSurface ) {
161
+ mReactDelegate .setReactSurface (reactSurface );
162
+ }
163
+
164
+ public void setReactRootView (ReactRootView reactRootView ) {
165
+ mReactDelegate .setReactRootView (reactRootView );
166
+ }
167
+
159
168
public void onUserLeaveHint () {
160
169
if (mReactDelegate != null ) {
161
170
mReactDelegate .onUserLeaveHint ();
Original file line number Diff line number Diff line change @@ -318,6 +318,14 @@ public void unloadApp() {
318
318
}
319
319
}
320
320
321
+ public void setReactSurface (ReactSurface reactSurface ) {
322
+ mReactSurface = reactSurface ;
323
+ }
324
+
325
+ public void setReactRootView (ReactRootView reactRootView ) {
326
+ mReactRootView = reactRootView ;
327
+ }
328
+
321
329
@ Nullable
322
330
public ReactRootView getReactRootView () {
323
331
if (ReactNativeFeatureFlags .enableBridgelessArchitecture ()) {
You can’t perform that action at this time.
0 commit comments