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

323
Visualizações
React native, Component not showing anything on device, but works fine on browser

So I was building my application on browser and it works completely fine, but when I tried to run it on my phone nothing were showing. This is how it looks like on my browser

on browser

but on my phone I got nothing

enter image description here

here're my dependencies

"dependencies": {
    "axios": "^0.24.0",
    "bootstrap": "^5.1.3",
    "expo": "~44.0.0",
    "expo-status-bar": "~1.2.0",
    "formik": "^2.2.9",
    "react": "17.0.1",
    "react-bootstrap": "^2.0.4",
    "react-dom": "17.0.1",
    "react-native": "0.64.3",
    "react-native-paper": "^4.11.1",
    "react-native-svg": "^12.1.1",
    "react-native-vector-icons": "^9.0.0",
    "react-native-web": "0.17.1", <-- I didn't even use this I always use "react-native"
    "react-router-dom": "^6.2.1",
    "react-router-native": "^6.2.1"
  }

I also checked the logs on browser and nothing were showing.

the code

import { View, Text } from 'react-native';
import React, { Component } from 'react';

class HomePage extends Component {
  render(){
    return (
      <View>
        <View>
          <Text style={{fontSize: 100}}>Tested application</Text>
        </View>
      </View>
    );
  }
}

export default Homepage;
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