Nawigacja do innego ekranu, gdy przycisk jest stukany w React Native
const myWebview = ({ navigation }) => {
SAMER SAEID
const myWebview = ({ navigation }) => {
import { useNavigation } from '@react-navigation/native';
function NotificationsScreen() {
const navigation = useNavigation();
return(
...
<TouchableOpacity
style={styles.button}
onPress={() => navigation.navigate('NewListingScreen')}
>
...
);
}