| Start |
|---|
| Find the OS Type/Version The first step is to import Platform from the 'react-native' package like so: After you've done that, you can go ahead and access the OS type through If you want to detect the Android version, you can use For iOS, Platform.Version is returning a String, for complex condition don't forget to parse it. If the platform specific logic is complex, one can render two different files based on platform. Ex:
and require it using |
Read Article
https://develop.horje.com/learn/1434/reference