From a3b1c4af47b56bcff4c88ca86397180302df2510 Mon Sep 17 00:00:00 2001 From: Alexis Mangin Date: Mon, 2 Oct 2017 10:00:45 +0100 Subject: [PATCH] react-native: Update support for Pad and TVOS in Platform --- types/react-native/index.d.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/types/react-native/index.d.ts b/types/react-native/index.d.ts index 9bde519670..42a1601612 100644 --- a/types/react-native/index.d.ts +++ b/types/react-native/index.d.ts @@ -5614,7 +5614,7 @@ export interface PixelRatioStatic { */ export type PlatformOSType = 'ios' | 'android' | 'windows' | 'web' -interface PlatformStatic extends PlatformIOSStatic { +interface PlatformStatic { OS: PlatformOSType Version: number @@ -5624,7 +5624,7 @@ interface PlatformStatic extends PlatformIOSStatic { select( specifics: { ios?: T, android?: T} ): T; } -interface PlatformIOSStatic { +interface PlatformIOSStatic extends PlatformStatic { isPad: boolean isTVOS: boolean } @@ -9176,6 +9176,7 @@ interface NativeModulesStatic { */ export var NativeModules: NativeModulesStatic export var Platform: PlatformStatic +export var PlatformIOS: PlatformIOSStatic export var PixelRatio: PixelRatioStatic export interface ComponentInterface

{