Ahmad Abdulkadir
Ahmad Abdulkadir

Reputation: 11

My expo app not running after upgrading to expo sdk 46

I recently received a warning from google play asking me to update my app as the privacy policy link i provided was broken. After correcting the broken link, i tried to re-upload my app to google play but it was rejected due to an issue with advertising id and analytics which one had to know i was not using ads in my app, after searching around i discovered it was an issue which was fixed in sdk 46 so i upgraded to sdk 46 but my app wont run, i even reverted my code to sdk 44 and upgraded to 45 but i faced a different issue. new apps initiated with sdk 46 worked normally but after copying my app's code, i still encountered the same error. Attached is a screenshot of my package.json dependencies. I have searched everywhere and tried everything i know and found online but to no avail. please help

ERROR TypeError: undefined is not an object (evaluating '_reactNative.Text.propTypes.style') ERROR Invariant Violation: "main" has not been registered. This can happen if:

enter image description here

for the first issue, i tried TypeError: undefined is not an object (evaluating '_reactNative.Animated.Text.propTypes.style') Invariant Violation: ViewPropTypes has been removed from React Native. Migrate to ViewPropTypes exported from 'deprecated-react-native-prop-types' and various other solutions but to no avail

for the second issue, i tried ejecting in addition to other several fixes i saw online, i also used registerRootComponentb directly in my App.js and index.js for expo and bare respectively.

Upvotes: 0

Views: 1510

Answers (1)

Sayan Dey
Sayan Dey

Reputation: 472

Use this — expo doctor --fix-dependencies

Upvotes: 0

Related Questions