mirror of
https://github.com/status-im/react-native.git
synced 2025-01-09 17:15:54 +00:00
642c13e3e3
- Fixed sticky section headers in ListView | Nick Lockwood - [ReactNative] AppState cleanup, remove Subscribable, add in OSS examples | Eric Vicenti - [react-packager] package.json cleanup (seperate packager into it's own package) | Amjad Masad - [ReactNative] Move PushNotificationIOS to oss | Tadeu Zagallo - [ReactNative] Fix shake gesture after RedBox is dismissed | Alex Kotliarskyi - [catlyst|madman] fix prop type warning | Jiajie Zhu - [ReactNative] Remove Subscribable from TextInput | Eric Vicenti - Unforked ExceptionsManager, AlertManager and AppState | Nick Lockwood - [ReactNative|MAdMan] Notification Subscribable | Eric Vicenti - [ReactNative] OSS AsyncStorage with example | Spencer Ahrens
31 lines
755 B
JavaScript
31 lines
755 B
JavaScript
/**
|
|
* Copyright 2004-present Facebook. All Rights Reserved.
|
|
*
|
|
* @providesModule renderApplication
|
|
*/
|
|
'use strict';
|
|
|
|
var PushNotificationIOS = require('PushNotificationIOS');
|
|
var React = require('React');
|
|
|
|
var invariant = require('invariant');
|
|
|
|
function renderApplication(RootComponent, initialProps, rootTag) {
|
|
invariant(
|
|
rootTag,
|
|
'Expect to have a valid rootTag, instead got ', rootTag
|
|
);
|
|
var pushNotification = initialProps.launchOptions &&
|
|
initialProps.launchOptions.remoteNotification &&
|
|
new PushNotificationIOS(initialProps.launchOptions.remoteNotification);
|
|
React.render(
|
|
<RootComponent
|
|
pushNotification={pushNotification}
|
|
{...initialProps}
|
|
/>,
|
|
rootTag
|
|
);
|
|
}
|
|
|
|
module.exports = renderApplication;
|