mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-03-26 07:04:05 +08:00
[Flow] Clean up react-native for Flow v0.15.0
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user