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

334
Visualizações
Can you change Drawer Item style without making custom drawer in react-native?

I'm using Drawer Navigator in my react-native App and I am wondering if you can change the style of the item present in Drawer screen without making cusom drawer ? Something like providing custom view style to Drawer.Screen, so it's not so basic like addding an Icon before the text

My drawer

My drawer screen component

Like adding some prop to <Drawer.Screen>

about 4 years ago · Juan Pablo Isaza
2 Respostas
Responde à pergunta

0

https://reactnavigation.org/docs/drawer-navigator/

If props style and labelStyle are good for you?

about 4 years ago · Juan Pablo Isaza Relatório

0

You can pass these props to Drawer.Screen to personalize however you want.

For Example:

  <Draw.Screen
        name={screens.PROFILE}
        component={Profile}
        options={{
          headerTitleStyle: {fontFamily: 'Gugi-Regular'},
          drawerLabel: navLabels.PROFILE,
          drawerIcon: () => (
            <View style={styles.drawIconStyles}>
              <Icon name={icons.PERSON_ICON} size={25} tint={'#9E9E9E'} />
            </View>
          ),
          drawerItemStyle: {backgroundColor: 'red'},
        }}
      />

enter image description here

about 4 years ago · Juan Pablo Isaza Relatório
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