[Flow] Clean up react-native for Flow v0.15.0

This commit is contained in:
Gabe Levi
2015-09-04 17:00:21 -07:00
parent 936e1d4a11
commit 874f39bf7f
5 changed files with 70 additions and 54 deletions

View File

@@ -72,7 +72,9 @@ function setupDevtools() {
}
function handleMessage(evt) {
var data;
// It's hard to handle JSON in a safe manner without inspecting it at
// runtime, hence the any
var data: any;
try {
data = JSON.parse(evt.data);
} catch (e) {