react-native-version-check
react-native-version-check copied to clipboard
Need Update method is not working for ios
code snippet:
checkVersion = async () => {
try {
updateNeeded = await VersionCheck.needUpdate();
if (updateNeeded && updateNeeded.isNeeded) {
setting state -------->
}
}
catch (error) { }
}
error :[TypeError: undefined is not an object (evaluating '_await$providers$opti.version')]
same issue on Android
I am also facing the same issue for Android. This issue we are facing with the production version of Apps.
Please fix it as soon as possible. Hope you are not providing any solution, just you will fix on code itself.
Did you also installed native packages of the package(cd ios && pod install
etc.)? Stupidly, I never thought of installing pod on ios since there was no explanation on documentation.
I think we should have to add cd ios && pod install
kinda thing on setup guides 🤣
It works fine on Android but it give warning on ios , i have installed pods
no info about this app