diff --git a/Libraries/Utilities/Platform.android.js b/Libraries/Utilities/Platform.android.js index 9dd53d84791..29234be81a7 100644 --- a/Libraries/Utilities/Platform.android.js +++ b/Libraries/Utilities/Platform.android.js @@ -10,10 +10,10 @@ import NativePlatformConstantsAndroid from './NativePlatformConstantsAndroid'; -export type PlatformSelectSpec = { - android?: A, - native?: N, - default?: D, +export type PlatformSelectSpec = { + android?: T, + native?: T, + default?: T, ... }; @@ -65,7 +65,7 @@ const Platform = { // $FlowFixMe[object-this-reference] return this.constants.uiMode === 'tv'; }, - select: (spec: PlatformSelectSpec): A | N | D => + select: (spec: PlatformSelectSpec): T => 'android' in spec ? // $FlowFixMe[incompatible-return] spec.android