How to Check Android API Version in React Native

Last Updated on January 1, 2019.

If you are developing an Android app using React Native then you may need to know the Android version of your Android app for various version specific purposes.

For example, if you need to prompt running permissions in Android API versions above Android Lollipop. For this, you should know if the Android API level of user’s device.

You can do this by simply using Platform API of react native.

import {Platform} from 'react-native';

if (Platform.Version === 23) {
  console.log('Running on Marshmallow!');

1 thought on “How to Check Android API Version in React Native”

Leave a Reply

%d bloggers like this: