mirror of
https://github.com/status-im/react-native.git
synced 2025-01-12 18:44:25 +00:00
Fixing typo in AppContainer
Summary: Fixed a typo. Adding an optional wrapper component to AppContainer. Reviewed By: fkgozali Differential Revision: D5330056 fbshipit-source-id: 8e33fcbfb21168c641abbd54b79d272a7c361889
This commit is contained in:
parent
afa47924d6
commit
937568b472
@ -24,11 +24,11 @@ const View = require('View');
|
||||
type Context = {
|
||||
rootTag: number,
|
||||
};
|
||||
type Props = {
|
||||
type Props = {|
|
||||
children?: React.Children,
|
||||
rootTag: number,
|
||||
WrapperComponent?: ?ReactClass<*>,
|
||||
};
|
||||
|};
|
||||
type State = {
|
||||
inspector: ?React.Element<*>,
|
||||
mainKey: number,
|
||||
|
@ -31,7 +31,7 @@ function renderApplication<Props: Object>(
|
||||
invariant(rootTag, 'Expect to have a valid rootTag, instead got ', rootTag);
|
||||
|
||||
ReactNative.render(
|
||||
<AppContainer rootTag={rootTag} wrapperComponent={WrapperComponent}>
|
||||
<AppContainer rootTag={rootTag} WrapperComponent={WrapperComponent}>
|
||||
<RootComponent {...initialProps} rootTag={rootTag} />
|
||||
</AppContainer>,
|
||||
rootTag,
|
||||
|
Loading…
x
Reference in New Issue
Block a user