If I understand your problem correctly, you just need to check if the user is logged in when button is pressed.
This uses a ternary operator which basically means:
if this variable is true ? Do this : otherwise do this
<TouchableOpacity
onPress={
userLoggedIn ? DoLoggedInStuff : navigation.navigate("LoginScreen")
}
>
Click me!
</TouchableOpacity>