SFDX-Data-Move-Utility icon indicating copy to clipboard operation
SFDX-Data-Move-Utility copied to clipboard

VersionCheck.needUpdate() returning undefined in ios

Open guitorioadar opened this issue 3 years ago • 4 comments

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",

guitorioadar avatar Jun 20 '21 17:06 guitorioadar

try add country code inside needUpdate will work VersionCheck.needUpdate({ country: 'eg' })

Moustafa-mahmaed avatar Jun 23 '21 08:06 Moustafa-mahmaed

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.

ShaunLWM avatar Mar 26 '22 03:03 ShaunLWM

Try to run this command npx pod-install and rebuild the project.

crosswin-ecgroup avatar Apr 10 '22 05:04 crosswin-ecgroup

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.

aureosouza avatar Apr 14 '23 09:04 aureosouza