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

451
Vistas
¿Cómo colocar el indicador tabBar en reaccionar nativo?

estoy usando

 const Tab = createMaterialTopTabNavigator();
para crear una pestaña de navegación. Todo parece funcionar, pero no puedo alinear el indicador de la barra de pestañas con el elemento de la barra de pestañas individual. Según el diseño, se supone que el ancho del indicador tabBar es 100 , ¿hay alguna forma de hacerlo?

ingrese la descripción de la imagen aquí

 const Faq = () => { return ( <SafeAreaView style={styles.container}> <View style={{ alignSelf: "flex-start", margin: 5 }}> <BackButton /> </View> <Text style={styles.title}>FAQ</Text> <Tab.Navigator screenOptions={({ route }) => ({ tabBarStyle: { height: 65, elevation: 0, marginBottom: 20, }, tabBarContentContainerStyle: {}, tabBarItemStyle: {}, tabBarIndicatorContainerStyle: { // borderWidth: 1, }, tabBarLabelStyle: styles.tabBarLabel, tabBarIndicatorStyle: styles.tabBarIndicator, tabBarActiveTintColor: "#3E3E3E", tabBarInactiveTintColor: "#A4A8AE", headerShown: false, })} > <Tab.Screen name="Shopping" component={BuyerScreen} /> <Tab.Screen name="Setting" component={BusinessScreen} /> </Tab.Navigator> </SafeAreaView> ); }; const styles = StyleSheet.create({ container: { flex: 1, backgroundColor: "white", paddingHorizontal: 20, }, title: { marginTop: 15, fontSize: 55, fontFamily: "PhotographSignature", letterSpacing: 1, textAlign: "center", color: "#3e3e3e", }, tabBarLabel: { fontSize: 16, fontFamily: "Raleway-Regular", textAlign: "center", lineHeight: 18.78, letterSpacing: 1, }, tabBarIndicatorContainerStyle: { borderColor: "black", borderWidth: 1, }, tabBarIndicator: { width: 100, height: 5, backgroundColor: "#B8D2C7", }, });
about 4 years ago · Juan Pablo Isaza
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