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

181
Vistas
El logotipo no se muestra en la aplicación web React Native

Tengo este problema en mi aplicación nativa de reacción. Aquí está el código a continuación. Quiero que el logotipo se muestre en el lado izquierdo de mi encabezado en el medio verticalmente. (Lo uso para una aplicación web) En este momento, con este código, ni siquiera se muestra el logotipo.

Y no puedo entender cómo usar flex para colocar el logotipo. Alguien puede ayudarme ?

 var logo = require ('../img/logo-pb-alpha.png'); function Header() { return ( <View style={styles.header}> <Image source={logo} style={{ flex: 1, resizeMode: 'contain' }}/> <View style={styles.nav}> <Pressable style={styles.button_primary} onPress={LogIn}><Text>Se connecter</Text></Pressable> <Pressable style={styles.button_secondary} onPress={SignUp}><Text>S'inscrire</Text></Pressable> </View> </View> ) } const screen = Dimensions.get("screen"); const styles = StyleSheet.create({ header: { height: screen.height * 0.1, width: screen.width, backgroundColor: "#fff", opacity: 0.7, alignItems: "flex-start", flexWrap: "nowrap", }, button_primary: { backgroundColor: "#ec5e61", alignItems: "center", justifyContent: "center", borderRadius: 12, elevation: 3, paddingVertical: 8, paddingHorizontal: 8, fontSize: 16, lineHeight: 21, fontWeight: "bold", letterSpacing: 0.25, borderWidth: 1, marginRight: 30, }, button_secondary: { backgroundColor: "#fff", alignItems: "center", justifyContent: "center", borderRadius: 12, elevation: 3, paddingVertical: 8, paddingHorizontal: 8, borderWidth: 2, borderColor: "#ec5e61", marginRight: 10, }, nav: { width: screen.width * 0.93, flexDirection: "row", justifyContent: "flex-end", marginBottom: 17, }, }); export default Header
about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

Problema resuelto con el siguiente código:

 <View style={styles.header}> <Image source={logo} style={{ width: '14%', height: '100%', }}/> //CSS header: { height: screen.height * 0.1, width: screen.width, backgroundColor: "#fff", alignItems: "flex-start", flexWrap: "wrap", },
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