[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

@@ -22,7 +22,9 @@ var {
var MAX_VALUE = 200;
function getStyleFromScore(score: number): {color: string} {
import type { StyleObj } from 'StyleSheetTypes';
function getStyleFromScore(score: number): StyleObj {
if (score < 0) {
return styles.noScore;
}