mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-05-07 23:27:05 +08:00
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:
committed by
Facebook Github Bot
parent
dc836780cb
commit
60b05133ba
@@ -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 />;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user