Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

156
Views
Cómo agregar un encabezado a la izquierda en Tab.Screen usando "@react-navigation/bottom-tabs"

Estoy usando el paquete @react-navigation/bottom-tabs pero no entiendo cómo agregar el encabezado a la izquierda en la etiqueta Tab.Screen.

¿Y también puedo agregar una imagen en el encabezado a la izquierda?

Aquí está mi código:

 import React from "react"; import { createBottomTabNavigator } from '@react-navigation/bottom-tabs'; import Home from "./TabScreen/Home"; import Category from "./TabScreen/Category"; import Search from "./TabScreen/Search"; import Profile from "./TabScreen/Profile"; import Colors from "../../../Style_Sheet/Colors"; const Tab = createBottomTabNavigator(); const Tabs =()=>{ return( <Tab.Navigator tabBarPosition="bottom" screenOptions={{ tabBarStyle: { backgroundColor: Colors.dark, }, }}> <Tab.Screen name="Home" component={Home} options={{headerTitle:"Explore",headerTintColor:Colors.white,headerStyle:{backgroundColor:Colors.dark}}}/> <Tab.Screen name="Category" component={Category} options={{headerTitle:"",headerTintColor:Colors.white,headerStyle:{backgroundColor:Colors.dark},headerLeft:{}}}/> <Tab.Screen name="Search" component={Search} options={{headerTitle:"Explore",headerTintColor:Colors.white,headerStyle:{backgroundColor:Colors.dark}}}/> <Tab.Screen name="Profile" component={Profile} options={{headerTitle:"Explore",headerTintColor:Colors.white,headerStyle:{backgroundColor:Colors.dark}}}/> </Tab.Navigator> ) } export default Tabs;
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Utilizar este,

Aquí está el código donde puede agregar la etiqueta headerLeft on Tabs.Screen.

 <Tabs.Screen name="Home" component={HomeScreen} options={{ headerTitle: props => <LogoTitle {...props} />, headerLeft: () => ( <Button onPress={() => alert('This is a button!')} title="Info" color="#fff" /> ), }} />

y también puede agregar una imagen o botón debajo de la etiqueta headerLeft, para obtener más detalles, siga este enlace

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!