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

261
Visualizações
How to make my Bottom Bar fixed in React Native?

Hey

I have my bottom bar out the Scroll View component,But it still scroll with the other components. How can i make it fixed ?

"

<SafeAreaView styles={SafeViewAndroid.AndroidSafeArea}>
<View style={{ backgroundColor: "#fff", padding: 15 }}>
<HeaderTabs activeTab={activeTab} setActiveTab={setActiveTab} />
<SearchBar cityHandler={setCity} />
</View>
<ScrollView showsVerticalScrollIndicator={false}>
<Categories />
<RestaurantItems restaurantData={restaurantData} />
</ScrollView>
<Divider width={1} />
<BottomTabs />
</SafeAreaView>

"

Entire Code Screen

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

0

You can use flex proportions to separate the and components, as below

<SafeAreaView styles={SafeViewAndroid.AndroidSafeArea}>
   <View style={{ backgroundColor: "#fff", padding: 15, flex : 1 }}>
     <HeaderTabs activeTab={activeTab} setActiveTab={setActiveTab} />
     <SearchBar cityHandler={setCity} />
  </View>
  <View style= {{flex : 3 }}>
    <ScrollView showsVerticalScrollIndicator={false}>
      <Categories />
      <RestaurantItems restaurantData={restaurantData} />
    </ScrollView>
  </View>
  <View style= {{flex : 1 }}>
    <Divider width={1} />
    <BottomTabs />
  </View>
</SafeAreaView>
about 4 years ago · Juan Pablo Isaza Relatório

0

You can do it by styling your button component as -

<TouchableOpacity
    style={{
        width: 60,
        height: 60,
        backgroundColor: 'red',
        position: 'absolute',
        bottom: 50,
        justifyContent: 'center',
        alignItems: 'center',
    }}
    onPress={() => {
        console.log('Button Pressed')
    }}
>
    <Text>Hello Bottom Button</Text>
</TouchableOpacity>
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