I am a beginner in ReactNative. I have an app where I am defining the Version number using a Text tag. Is there any way we can get this dynamically through the bundle?
Any help would be appreciated. Thank you in advance!
I am a beginner in ReactNative. I have an app where I am defining the Version number using a Text tag. Is there any way we can get this dynamically through the bundle?
Any help would be appreciated. Thank you in advance!
When you say through bundle, do you mean from your package.json?
If so I would recommend that you use node.js to script your build process, grab the package data from there, and write it to an environment file or a js/ts file you could include in your application and reference to store your version.