Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

248
Vistas
how to create a button, pressable or a touchable opacity that redirects us to a website using react native

hey everyone I am newbie at react native and i want to know how to create a button, touchableopacity or a pressable that redirects us to a website using react native

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

Simply, there ir a module from React Native called Linking Doc where you can use the function openURL where the input argument is just your website link.

Full example:

// Import
import { Linking, Text, TouchableOpacity } from 'react-native'


// Component's code
<TouchableOpacity
 style={{
  width: 100,
  height: 60,
  backgroundColor: "red"
 }}
 onPress={() => Linking.openURL("https://stackoverflow.com")}
>
  <Text>
   Go to my website
  </Text>
</TouchableOpacity>

This function redirect to the default external browser of the device. If you want to use the native WebView check this library WebView (which few versions ago was included on react-native library)

about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda