mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-01-30 22:48:23 +08:00
Make flow check async
This commit is contained in:
@@ -59,6 +59,13 @@ function setUpRedBoxConsoleErrorHandler() {
|
||||
}
|
||||
}
|
||||
|
||||
function setupFlowChecker() {
|
||||
if (__DEV__) {
|
||||
var checkFlowAtRuntime = require('checkFlowAtRuntime');
|
||||
checkFlowAtRuntime();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets up a set of window environment wrappers that ensure that the
|
||||
* BatchedBridge is flushed after each tick. In both the case of the
|
||||
@@ -143,3 +150,4 @@ setUpGeolocation();
|
||||
setUpWebSockets();
|
||||
setupProfile();
|
||||
setUpProcessEnv();
|
||||
setupFlowChecker();
|
||||
|
||||
Reference in New Issue
Block a user