Hello, I have a project structured like the picture. I want to go from GetStarted.js to Instruction.js. I’m using the following code:
<View>
<TouchableOpacity style={styles.button}
onPress={() => router.push('./Instructions.js')}
>
<Text style={styles.buttonText}>
Welcome
</Text>
</TouchableOpacity>
</View>
but I get an Unmatched Route error. I’ve tried with differents folders and it works.
I don’t understand which one is the correct code to switch to a file.js in the same folder. (In this case ‘components’.
I’m pretty sure it’s a simple solution but I can’t find it.