Skip to content

Commit

Permalink
Fixing typo in AppContainer
Browse files Browse the repository at this point in the history
Summary: Fixed a typo. Adding an optional wrapper component to AppContainer.

Reviewed By: fkgozali

Differential Revision: D5330056

fbshipit-source-id: 8e33fcbfb21168c641abbd54b79d272a7c361889
  • Loading branch information
sumkit authored and facebook-github-bot committed Jun 28, 2017
1 parent afa4792 commit 937568b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Libraries/ReactNative/AppContainer.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion Libraries/ReactNative/renderApplication.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 937568b

Please sign in to comment.