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

123
Vistas
Do we need to wrap all the screens with NativeBaseProvider in Native Base - React Native?

I have 3 screens here for example:

  1. AuthScreen
  2. HomeScreen
  3. LoginScreen

AuthScreen.js, HomeScreen.js, LoginScreen.js and have their respective content inside. And they are called by <Stack.Navigator> as shown in the link here

<NativeBaseProvider>
.
.
.
</NativeBaseProvider>

Is there a way I can just write the NativeBaseProvider once than have to do it on every screens?

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

0

NativeBaseProvider is a component that makes the theme available throughout your app. It uses React's Context API. Add NativeBaseProvider to the root of your app and update App.js as follows:

import { NavigationContainer } from '@react-navigation/native';
import { createNativeStackNavigator } from '@react-navigation/native-stack';
import { NativeBaseProvider } from 'native-base';

const Stack = createNativeStackNavigator();

export default function App() {
  return (
   <NativeBaseProvider>
     <NavigationContainer>
       <Stack.Navigator>{/* ... */}</Stack.Navigator>
     </NavigationContainer>
    </NativeBaseProvider>
  );
}
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