Unforked renderApplication()

Summary: This allows toggling fabric renderer via the same renderApplication()

Reviewed By: mdvacca

Differential Revision: D7682524

fbshipit-source-id: 59be1d2bea15f5e13e64e2d72304d79f9cb7d084
This commit is contained in:
Kevin Gozali
2018-04-19 11:03:50 -07:00
committed by Facebook Github Bot
parent dc836780cb
commit 60b05133ba
4 changed files with 10 additions and 80 deletions

View File

@@ -27,7 +27,6 @@ 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<*>,
|};
@@ -91,8 +90,7 @@ class AppContainer extends React.Component<Props, State> {
render(): React.Node {
let yellowBox = null;
if (__DEV__) {
if (!global.__RCTProfileIsProfiling && !this.props.fabric) {
// TODO: Fabric doesn't support YellowBox.
if (!global.__RCTProfileIsProfiling) {
const YellowBox = require('YellowBox');
yellowBox = <YellowBox />;
}