Skip to content

Commit 9d48935

Browse files
Nadiia Dfacebook-github-bot
Nadiia D
authored andcommitted
Stabilize RootTagContext
Summary: Changelog: [General][Added] - Stabilize RootTagContext. And temporarily export both `unstable_RootTagContext` and `RootTagContext` Reviewed By: TheSavior Differential Revision: D27951427 fbshipit-source-id: dff8d4ca07c89edeeb517a42a3922e4e23899d8e
1 parent 8719a2e commit 9d48935

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

index.js

+3
Original file line numberDiff line numberDiff line change
@@ -482,6 +482,9 @@ module.exports = {
482482
get unstable_RootTagContext(): RootTagContext {
483483
return require('./Libraries/ReactNative/RootTag').RootTagContext;
484484
},
485+
get RootTagContext(): RootTagContext {
486+
return require('./Libraries/ReactNative/RootTag').RootTagContext;
487+
},
485488
get unstable_enableLogBox(): () => void {
486489
return () =>
487490
console.warn(

packages/rn-tester/js/examples/TurboModule/SampleTurboModuleExample.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import {
1717
FlatList,
1818
Platform,
1919
TouchableOpacity,
20-
unstable_RootTagContext,
20+
RootTagContext,
2121
} from 'react-native';
2222
import * as React from 'react';
2323

@@ -33,7 +33,7 @@ type State = {|
3333
|};
3434

3535
class SampleTurboModuleExample extends React.Component<{||}, State> {
36-
static contextType: React$Context<RootTag> = unstable_RootTagContext;
36+
static contextType: React$Context<RootTag> = RootTagContext;
3737

3838
state: State = {
3939
testResults: {},

0 commit comments

Comments
 (0)