mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-23 20:01:01 +08:00
update FabricUIManager to call the right JS object
Reviewed By: sebmarkbage Differential Revision: D7037275 fbshipit-source-id: 6a1d13227910d0cdb99dde4b6c98ed7a20ef9911
This commit is contained in:
committed by
Facebook Github Bot
parent
25b0c374b3
commit
486ac9dc82
@@ -27,6 +27,7 @@ type Props = {|
|
||||
* suppresses an error when upgrading Flow's support for React. To see the
|
||||
* error delete this comment and run Flow. */
|
||||
children?: React.Children,
|
||||
fabric?: boolean,
|
||||
rootTag: number,
|
||||
WrapperComponent?: ?React.ComponentType<*>,
|
||||
|};
|
||||
@@ -90,7 +91,8 @@ class AppContainer extends React.Component<Props, State> {
|
||||
render(): React.Node {
|
||||
let yellowBox = null;
|
||||
if (__DEV__) {
|
||||
if (!global.__RCTProfileIsProfiling) {
|
||||
if (!global.__RCTProfileIsProfiling && !this.props.fabric) {
|
||||
// TODO: Fabric doesn't support YellowBox.
|
||||
const YellowBox = require('YellowBox');
|
||||
yellowBox = <YellowBox />;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user