react-native: Update support for Pad and TVOS in Platform

This commit is contained in:
Alexis Mangin
2017-10-02 10:00:45 +01:00
parent a3634e4796
commit a3b1c4af47
+3 -2
View File
@@ -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<T>( 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<P> {