[ReactNative] Remove pushNotification prop from renderApplication
This commit is contained in:
parent
d5d9d9b9c1
commit
2aafcd0e58
|
@ -5,7 +5,6 @@
|
||||||
*/
|
*/
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
var PushNotificationIOS = require('PushNotificationIOS');
|
|
||||||
var React = require('React');
|
var React = require('React');
|
||||||
|
|
||||||
var invariant = require('invariant');
|
var invariant = require('invariant');
|
||||||
|
@ -15,10 +14,8 @@ function renderApplication(RootComponent, initialProps, rootTag) {
|
||||||
rootTag,
|
rootTag,
|
||||||
'Expect to have a valid rootTag, instead got ', rootTag
|
'Expect to have a valid rootTag, instead got ', rootTag
|
||||||
);
|
);
|
||||||
var initialNotification = PushNotificationIOS.popInitialNotification();
|
React.render(
|
||||||
React.render(
|
|
||||||
<RootComponent
|
<RootComponent
|
||||||
pushNotification={initialNotification}
|
|
||||||
{...initialProps}
|
{...initialProps}
|
||||||
/>,
|
/>,
|
||||||
rootTag
|
rootTag
|
||||||
|
|
Loading…
Reference in New Issue