SFDX-Data-Move-Utility
SFDX-Data-Move-Utility copied to clipboard
VersionCheck.needUpdate() returning undefined in ios
VersionCheck .needUpdate() .then(res => { console.log('needUpdate: ', res); }
res is returning undefined in ios
"react-native-version-check": "3.4.2", "react-native": "^0.63.3",
try add country code inside needUpdate
will work
VersionCheck.needUpdate({ country: 'eg' })
Whoever chance upon this issue, please note that there is no options for the answer stated above { country: 'eg' }
https://github.com/kimxogus/react-native-version-check/blob/master/packages/react-native-version-check/src/needUpdate.js#L29
Please correct me if I'm wrong.
Try to run this command npx pod-install
and rebuild the project.
Adding the country helped VersionCheck.needUpdate({ country: 'eg' })
, but typescript complains:
Object literal may only specify known properties, and 'country' does not exist in type
In version 3.4.5.