From 36034794717c8a881f329e328bad277d04536ac1 Mon Sep 17 00:00:00 2001 From: Daniel Friesen Date: Wed, 24 Feb 2016 06:20:37 -0800 Subject: [PATCH] Fix Platform.Version documentation Summary:Version exposes the sdk level (which TBH is more useful anyways), not a version string. Closes https://github.com/facebook/react-native/pull/6068 Differential Revision: D2971198 fb-gh-sync-id: 0ba1e10e48b2ca51c7b0cebcc1ec13d0b69df783 shipit-source-id: 0ba1e10e48b2ca51c7b0cebcc1ec13d0b69df783 --- docs/PlatformSpecificInformation.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/PlatformSpecificInformation.md b/docs/PlatformSpecificInformation.md index 9c2f2e02f..03aa48bf1 100644 --- a/docs/PlatformSpecificInformation.md +++ b/docs/PlatformSpecificInformation.md @@ -61,7 +61,7 @@ On Android, the Platform module can be also used to detect which is the version ```javascript var {Platform} = React; -if(Platform.Version === '5.0'){ +if(Platform.Version === 21){ console.log('Running on Lollipop!'); } -``` \ No newline at end of file +```