mirror of
https://github.com/status-im/react-native.git
synced 2025-01-27 01:40:08 +00:00
Flowify renderApplication
This commit is contained in:
parent
f9f219efcb
commit
9a12b9c728
@ -7,6 +7,7 @@
|
||||
* of patent rights can be found in the PATENTS file in the same directory.
|
||||
*
|
||||
* @providesModule renderApplication
|
||||
* @flow
|
||||
*/
|
||||
'use strict';
|
||||
|
||||
@ -14,7 +15,11 @@ var React = require('React');
|
||||
|
||||
var invariant = require('invariant');
|
||||
|
||||
function renderApplication(RootComponent, initialProps, rootTag) {
|
||||
function renderApplication<D, P, S>(
|
||||
RootComponent: ReactClass<D, P, S>,
|
||||
initialProps: P,
|
||||
rootTag: any
|
||||
) {
|
||||
invariant(
|
||||
rootTag,
|
||||
'Expect to have a valid rootTag, instead got ', rootTag
|
||||
|
Loading…
x
Reference in New Issue
Block a user