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

89
Views
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 answers
Answer question

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 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!