mirror of
https://github.com/status-im/react-native.git
synced 2025-01-14 03:26:07 +00:00
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
This commit is contained in:
parent
b8850df31b
commit
3603479471
@ -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!');
|
||||
}
|
||||
```
|
||||
```
|
||||
|
Loading…
x
Reference in New Issue
Block a user