File tree 2 files changed +5
-2
lines changed
packages/rn-tester/js/examples/TurboModule
2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -482,6 +482,9 @@ module.exports = {
482
482
get unstable_RootTagContext(): RootTagContext {
483
483
return require ( './Libraries/ReactNative/RootTag' ) . RootTagContext ;
484
484
} ,
485
+ get RootTagContext(): RootTagContext {
486
+ return require ( './Libraries/ReactNative/RootTag' ) . RootTagContext ;
487
+ } ,
485
488
get unstable_enableLogBox(): () => void {
486
489
return ( ) = >
487
490
console . warn (
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ import {
17
17
FlatList ,
18
18
Platform ,
19
19
TouchableOpacity ,
20
- unstable_RootTagContext ,
20
+ RootTagContext ,
21
21
} from 'react-native' ;
22
22
import * as React from 'react' ;
23
23
@@ -33,7 +33,7 @@ type State = {|
33
33
| } ;
34
34
35
35
class SampleTurboModuleExample extends React . Component < { || } , State > {
36
- static contextType : React$Context < RootTag > = unstable_RootTagContext ;
36
+ static contextType : React$Context < RootTag > = RootTagContext ;
37
37
38
38
state : State = {
39
39
testResults : { } ,
You can’t perform that action at this time.
0 commit comments