GeekyAnts / NativeBase

Mobile-first, accessible components for React Native & Web to build consistent UI across Android, iOS and Web.
https://nativebase.io/
MIT License
20.2k stars 2.39k forks source link

footer android look weird #1903

Closed taeyzzz closed 6 years ago

taeyzzz commented 6 years ago

Hello

i try to make footer like this

screen shot 2561-05-17 at 3 29 55 pm

this is my code

import {
  Button,
  Icon,
  Footer,
  FooterTab,
  ActionSheet
} from 'native-base';
<Footer style={this.getFooterStyle()}>
        <FooterTab style={styles.header}>
          <Button
            vertical
            onPress={() => this.props.navigation.navigate('HomeDashboardStack')}
          >
            <Icon name="home" style={this.getActiveStyle(0)} active={this.props.navigationState.index === 0} />
          </Button>
          <LinearGradient
            start={{x: 0.0, y: 0.25}} end={{x: 1.0, y: 1.0}}
            colors={['#32799f', '#49b8ac', '#53d6a7']}
            style={styles.linearGradient}
          >
            <TouchableOpacity
              onPress={() => this.selectImage()}
              style={styles.diagnoseBtn}
            >
              <Icon name="camera" style={{color: 'white'}}/>
            </TouchableOpacity>
          </LinearGradient>
          <Button
            vertical
            onPress={() => this.props.navigation.navigate('CaseProfileStack')}
          >
            <Icon name="people" style={this.getActiveStyle(1)} active={this.props.navigationState.index === 1} />
          </Button>
        </FooterTab>
      </Footer>

this is result

In IOS I think it's good for now

screen shot 2561-05-17 at 2 50 38 pm

But in Android circle camera look weird

screen shot 2561-05-17 at 2 51 00 pm

I would like to know the solution to fix this or someone can guide how to create footer like the first picture

react-native, react and native-base version

"native-base": "^2.4.4", "react": "16.2.0", "react-native": "0.55.4", "react-navigation": "^1.0.0-beta.11",

Thank you

akhil-ga commented 6 years ago

@taeyzzz see this issue https://github.com/GeekyAnts/NativeBase/issues/1260

taeyzzz commented 6 years ago

@akhil-geekyants Thank you so much