Navigation between screens not working in Android APK
rafinharfc93 opened this issue · comments
Which package manager are you using? (Yarn is recommended)
yarn
Summary
Hello friends.
While running the application in Expo GO, all navigation between screens works perfectly using the router.push
function, but whenever I generate an apk to test the application, this navigation does not work, I notice that there is a click because where I click gives the effect of opacity, but nothing happens.
I have a branch prior to an npx expo prebuild
where this error does not occur, but if I run npx expo prebuild
again so that expo reads the app.json file again, this error occurs again.
Minimal reproducible example
<TouchableHighlight
className="mr-5"
key={index}
onPress={() => {
router.push(`/${screenRoute}?ID=${item.ID}`);
}}
>
<ExpoFastImage
uri={item.poster}
style={{ width: 150, height: 200 }}
cacheKey={item.ID}
/>
</TouchableHighlight>
Can you please provide a full minimal reproducible example.