Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
593 views
in Technique[技术] by (71.8m points)

React native footer background color in ios (with Native base components)

enter image description here

I want to change this footer color that appears in iPhone 11 pro max (both black and white parts)

I've seen the answers with fragment and safearea, but I've wrapped my screens with header and content components from native base and I'm looking for an answer that would adapt with them.

This is my current layout :

  import React from 'react';
  import { Container, Content, Header } from 'native-base';

  <Container>
    <Header
      androidStatusBarColor="#F4F6FF"
      iosBarStyle="dark-content"
      style={{
        backgroundColor: '#F4F6FF',
        height: 45,
        borderBottomWidth: 0,
      }}
    />

    <Content contentContainerStyle={{ flexGrow: 1 }}>
       {children}
    </Content>
  </Container>
question from:https://stackoverflow.com/questions/65933755/react-native-footer-background-color-in-ios-with-native-base-components

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...