Skip to content

Commit

Permalink
Unify renderApplication across iOS and Android
Browse files Browse the repository at this point in the history
Reviewed By: spicyj

Differential Revision: D3385860

fbshipit-source-id: 256a2d12691dc9fddc56eaf150697f07b830da92
  • Loading branch information
frantic authored and Facebook Github Bot 4 committed Jun 13, 2016
1 parent 8c29a52 commit 23027cd
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 129 deletions.
2 changes: 1 addition & 1 deletion Libraries/ReactIOS/AppContainer.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ var AppContainer = React.createClass({
return (
<View style={styles.appContainer}>
<View
collapsable={false}
collapsable={!this.state.inspector}
key={this.state.mainKey}
style={styles.appContainer} ref="main">
{this.props.children}
Expand Down
124 changes: 0 additions & 124 deletions Libraries/ReactIOS/renderApplication.android.js

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,12 @@ var ReactNative = require('ReactNative');

var invariant = require('fbjs/lib/invariant');

function renderApplication<P>(
RootComponent: ReactClass<P>,
initialProps: P,
// require BackAndroid so it sets the default handler that exits the app if no listeners respond
require('BackAndroid');

function renderApplication<Props>(
RootComponent: ReactClass<Props>,
initialProps: Props,
rootTag: any
) {
invariant(
Expand All @@ -38,5 +41,4 @@ function renderApplication<P>(
);
}


module.exports = renderApplication;

0 comments on commit 23027cd

Please sign in to comment.