update FabricUIManager to call the right JS object

Reviewed By: sebmarkbage

Differential Revision: D7037275

fbshipit-source-id: 6a1d13227910d0cdb99dde4b6c98ed7a20ef9911
This commit is contained in:
Kevin Gozali
2018-02-23 16:46:06 -08:00
committed by Facebook Github Bot
parent 25b0c374b3
commit 486ac9dc82
9 changed files with 408 additions and 35 deletions

View File

@@ -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 />;
}