Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

356
Visualizações
The button is not working in React Native

I'm new in react native, i follow tutorial form youtube to create a button, but why my button is not working that cannot click, nothing happen. Any one please help me, here is my code:

import React from 'react';
import { View, Text, StyleSheet, Button, Linking, } from 'react-native';

const App = () => {
  return (
    <View style={styles.body}>
      <Text>Center</Text>
      <Button title='Text Me' onPress={()=>{Linking.openURL('https://www.youtube.com')}}></Button>
    </View>
  )
};

const styles = StyleSheet.create({
  body: {
    padding: 16,
    alignItems: 'center',
    flex: 1,
    justifyContent: 'center',
  }
});

export default App;

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda