react-native-version-number
react-native-version-number copied to clipboard
Gets the version number and build number of your app.
added compileSdkVersion, buildToolsVersion, targetSdkVersion variables
This is similar to #27 but use a cleaner way to achieve the same result. As of 0.56, we RN proj start declaring a few constants that libraries can query...
updated build gradle for less android warning in build time now minimum buildToolsVersion is 27.0.3 and compile must be replaced with implementation
`buildVersion` is typed as `?string` in the JS code. https://github.com/APSL/react-native-version-number/blob/master/index.js#L7 ```ts type VersionObject = { appVersion: ?string, buildVersion: ?string, bundleIdentifier: ?string }; ``` However, in the Android code, `versionCode` from...
app/build.gradle ` defaultConfig { applicationId "com.app.demo" minSdkVersion rootProject.ext.minSdkVersion targetSdkVersion rootProject.ext.targetSdkVersion versionCode 1 versionName "0.1" multiDexEnabled true missingDimensionStrategy 'react-native-camera', 'general' missingDimensionStrategy 'store', 'play' }` **instead of 0.1 they are showing 2097153**...
Currently the type is wrong for index.d.ts as index.js doesn't export `const`'s but rather one `default` export with the VersionNumber