mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-07-01 07:40:10 +00:00
react-native: Add support for Pad and TVOS in Platform
This commit is contained in:
7
types/react-native/index.d.ts
vendored
7
types/react-native/index.d.ts
vendored
@@ -5614,7 +5614,7 @@ export interface PixelRatioStatic {
|
||||
*/
|
||||
export type PlatformOSType = 'ios' | 'android' | 'windows' | 'web'
|
||||
|
||||
interface PlatformStatic {
|
||||
interface PlatformStatic extends PlatformIOSStatic {
|
||||
OS: PlatformOSType
|
||||
Version: number
|
||||
|
||||
@@ -5624,6 +5624,11 @@ interface PlatformStatic {
|
||||
select<T>( specifics: { ios?: T, android?: T} ): T;
|
||||
}
|
||||
|
||||
interface PlatformIOSStatic {
|
||||
isPad: boolean
|
||||
isTVOS: boolean
|
||||
}
|
||||
|
||||
/**
|
||||
* Deprecated - subclass NativeEventEmitter to create granular event modules instead of
|
||||
* adding all event listeners directly to RCTDeviceEventEmitter.
|
||||
|
||||
Reference in New Issue
Block a user