From e7db750c3290820844d3806d943a66f56c446aae Mon Sep 17 00:00:00 2001 From: Dalci de Jesus Bagolin Date: Thu, 6 Jul 2017 15:22:41 -0400 Subject: [PATCH] Add web as a platform With the use of the react-native-web library, it is possible to write web applications, using react-native primitives, with this type definition, for which the PlatformOS returns 'web' [https://github.com/necolas/react-native-web/blob/master/docs/apis/Platform.md](https://github.com/necolas/react-native-web/blob/master/docs/apis/Platform.md) --- types/react-native/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/react-native/index.d.ts b/types/react-native/index.d.ts index cdd58762a4..46830051b0 100644 --- a/types/react-native/index.d.ts +++ b/types/react-native/index.d.ts @@ -5332,7 +5332,7 @@ export interface PixelRatioStatic { /** * @see https://facebook.github.io/react-native/docs/platform-specific-code.html#content */ -export type PlatformOSType = 'ios' | 'android' | 'windows' +export type PlatformOSType = 'ios' | 'android' | 'windows' | 'web' interface PlatformStatic { OS: PlatformOSType