File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed
packages/react-native-renderer/src
scripts/rollup/shims/react-native Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -199,7 +199,13 @@ const ReactFabric: ReactFabricType = {
199
199
return getPublicRootInstance ( root ) ;
200
200
} ,
201
201
202
+ // Deprecated - this function is being renamed to stopSurface, use that instead.
203
+ // TODO (T47576999): Delete this once it's no longer called from native code.
202
204
unmountComponentAtNode ( containerTag : number ) {
205
+ this . stopSurface ( containerTag ) ;
206
+ } ,
207
+
208
+ stopSurface ( containerTag : number ) {
203
209
const root = roots . get ( containerTag ) ;
204
210
if ( root ) {
205
211
// TODO: Is it safe to reset this now or should I wait since this unmount could be deferred?
Original file line number Diff line number Diff line change @@ -23,6 +23,10 @@ if (__DEV__) {
23
23
ReactFabric = require ( '../implementations/ReactFabric-prod' ) ;
24
24
}
25
25
26
- BatchedBridge . registerCallableModule ( 'ReactFabric' , ReactFabric ) ;
26
+ if ( global . RN$Bridgeless ) {
27
+ global . RN$stopSurface = ReactFabric . stopSurface ;
28
+ } else {
29
+ BatchedBridge . registerCallableModule ( 'ReactFabric' , ReactFabric ) ;
30
+ }
27
31
28
32
module . exports = ( ReactFabric : ReactNativeType ) ;
You can’t perform that action at this time.
0 commit comments