mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Register LogBox by default in dev
Summary: This diff stubs out registering LogBox as a renderable component. In later diffs, we'll render this component on the native side. Changelog: [Internal] Reviewed By: motiz88 Differential Revision: D18750005 fbshipit-source-id: 4db082ca2104731641d2d10de1ba83a318ab44fb
This commit is contained in:
@@ -125,6 +125,7 @@ const AppRegistry = {
|
||||
appParameters.fabric,
|
||||
showArchitectureIndicator,
|
||||
scopedPerformanceLogger,
|
||||
appKey === 'LogBox',
|
||||
);
|
||||
},
|
||||
};
|
||||
@@ -292,4 +293,8 @@ const AppRegistry = {
|
||||
|
||||
BatchedBridge.registerCallableModule('AppRegistry', AppRegistry);
|
||||
|
||||
if (__DEV__) {
|
||||
AppRegistry.registerComponent('LogBox', () => () => null);
|
||||
}
|
||||
|
||||
module.exports = AppRegistry;
|
||||
|
||||
@@ -29,6 +29,7 @@ function renderApplication<Props: Object>(
|
||||
fabric?: boolean,
|
||||
showArchitectureIndicator?: boolean,
|
||||
scopedPerformanceLogger?: IPerformanceLogger,
|
||||
isLogBox?: boolean,
|
||||
) {
|
||||
invariant(rootTag, 'Expect to have a valid rootTag, instead got ', rootTag);
|
||||
|
||||
@@ -39,7 +40,8 @@ function renderApplication<Props: Object>(
|
||||
rootTag={rootTag}
|
||||
fabric={fabric}
|
||||
showArchitectureIndicator={showArchitectureIndicator}
|
||||
WrapperComponent={WrapperComponent}>
|
||||
WrapperComponent={WrapperComponent}
|
||||
internal_excludeLogBox={isLogBox}>
|
||||
<RootComponent {...initialProps} rootTag={rootTag} />
|
||||
</AppContainer>
|
||||
</PerformanceLoggerContext.Provider>
|
||||
|
||||
Reference in New Issue
Block a user