xxxxxxxxxx
import { Platform } from 'react-native';
const OsVer = Platform.constants['Release'];
xxxxxxxxxx
// android/app/build.gradle
android {
defaultConfig {
versionCode 1
versionName "1.0"
{ }
}
{ }
}