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

90
Visualizações
Menu bar is inside search bar

I am building a ecommerce App using React-Native; I was trying to add Drawer Navigation but there few errorsimage1 with drawer inside the search bar

As you can see in the image it is inside the search bar, I want it beside search bar And second error is It's open inside the search bar as shown in the image belowimage2 with drawer opened inside the search bar

Expected Behavior :

I want Menu beside search bar on blue header and I want to hide Home name displaced beside Menu icon

My Code:

import React, {Component} from 'react';
import {SafeAreaView, View, TextInput, StatusBar} from 'react-native';
import Feather from 'react-native-vector-icons/Feather';
import Menu from './Menu';

class Headers extends Component {
  render() {
    return (
      <SafeAreaView style={{backgroundColor: '#22e3dd'}}
      >
        <View
          style={{
            marginTop: 24,
            marginLeft: 50,
            margin: 10,
            padding: 5,
            backgroundColor: 'white',
            flexDirection: 'row',
            alignItems: 'center',
          }}>
            <Menu />
          <StatusBar
            barstyle="dark-content"
            backgroundColor="#22e3dd"
            hidden={false}
            translucent={false}
          />
          <Feather name="search" size={20} />
          <TextInput style={{height: 40, margin: 9}} placeholder="Search..." />
        </View>
      </SafeAreaView>
    );
  }
}

export default Headers;
about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

It's because you have your Menu component inside of your View with the white background, just take it outside and that would fix the button placement.

<SafeAreaView style={{backgroundColor: '#22e3dd',flexDirection: 'row'}}>
        <Menu />
        <View
          style={{
            marginTop: 24,
            marginLeft: 50,
            margin: 10,
            padding: 5,
            backgroundColor: 'white',
            flexDirection: 'row',
            alignItems: 'center',
          }}>
            
          <StatusBar
            barstyle="dark-content"
            backgroundColor="#22e3dd"
            hidden={false}
            translucent={false}
          />
          <Feather name="search" size={20} />
          <TextInput style={{height: 40, margin: 9}} placeholder="Search..." />
        </View>
      </SafeAreaView>
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