Skip to content

Commit

Permalink
Fix Platform.Version documentation
Browse files Browse the repository at this point in the history
Summary:Version exposes the sdk level (which TBH is more useful anyways), not a version string.
Closes facebook#6068

Differential Revision: D2971198

fb-gh-sync-id: 0ba1e10e48b2ca51c7b0cebcc1ec13d0b69df783
shipit-source-id: 0ba1e10e48b2ca51c7b0cebcc1ec13d0b69df783
  • Loading branch information
dantman authored and pglotov committed Mar 15, 2016
1 parent 3722180 commit 393f4c2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/PlatformSpecificInformation.md
Original file line number Diff line number Diff line change
Expand Up @@ -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!');
}
```
```

0 comments on commit 393f4c2

Please sign in to comment.