“Navegar a otra pantalla cuando se aprovecha un botón en React Native” Código de respuesta

Navegar a otra pantalla cuando se aprovecha un botón en React Native

const myWebview = ({ navigation }) => {
SAMER SAEID

Navegar a otra pantalla cuando se aprovecha un botón en React Native

import { useNavigation } from '@react-navigation/native';

function NotificationsScreen() {
const navigation = useNavigation(); 
return(
 ...
  <TouchableOpacity
     style={styles.button}
     onPress={() => navigation.navigate('NewListingScreen')}
  >
 ...
);
}
SAMER SAEID

Respuestas similares a “Navegar a otra pantalla cuando se aprovecha un botón en React Native”

Preguntas similares a “Navegar a otra pantalla cuando se aprovecha un botón en React Native”

Explore las respuestas de código populares por idioma

Explorar otros lenguajes de código