From 71133670007ed9b6f0f072b6998e66aebf27e2b9 Mon Sep 17 00:00:00 2001 From: taelimoh Date: Tue, 24 May 2016 08:01:18 -0700 Subject: [PATCH] Changed module name from 'ReactNative Summary: Platform is in React-Native not React. Closes https://github.com/facebook/react-native/pull/7718 Differential Revision: D3340334 fbshipit-source-id: 3816f8966bc5b675097182aaf3304d465fbebb95 --- docs/PlatformSpecificInformation.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/PlatformSpecificInformation.md b/docs/PlatformSpecificInformation.md index 1f43f610a..260b00b46 100644 --- a/docs/PlatformSpecificInformation.md +++ b/docs/PlatformSpecificInformation.md @@ -46,7 +46,7 @@ React Native will import the correct component for the running platform. A module is provided by React Native to detect what is the platform in which the app is running. This piece of functionality can be useful when only small parts of a component are platform specific. ```javascript -var { Platform } = React; +var { Platform } = ReactNative; var styles = StyleSheet.create({ height: (Platform.OS === 'ios') ? 200 : 100, @@ -59,7 +59,7 @@ There is also a `Platform.select` method available, that given an object contain returns the value for the platform you are currently running on. ```javascript -var { Platform } = React; +var { Platform } = ReactNative; var styles = StyleSheet.create({ container: { @@ -94,7 +94,7 @@ var Component = Platform.select({ On Android, the Platform module can be also used to detect which is the version of the Android Platform in which the app is running ```javascript -var {Platform} = React; +var {Platform} = ReactNative; if(Platform.Version === 21){ console.log('Running on Lollipop!');