Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Segment-Component weird rendering #1592

Closed
fmoessle opened this issue Feb 15, 2018 · 1 comment
Closed

Segment-Component weird rendering #1592

fmoessle opened this issue Feb 15, 2018 · 1 comment

Comments

@fmoessle
Copy link

fmoessle commented Feb 15, 2018

react-native, react and native-base version

react-native: 0.52.2
react: 16.2.0
native-base: 2.3.7

Expected behaviour

correct rendering of segment component

Actual behaviour

segment component not rendered correctly when it has first-prop

Steps to reproduce (code snippet or screenshot)

      <Segment>
        <Button
          first
          onPress={() => this.setState({ activeSection: 0 })}
          active={this.state.activeSection === 0}>
          <Text>Events</Text>
        </Button>
        <Button
          onPress={() => this.setState({ activeSection: 1 })}
          active={this.state.activeSection === 1}>
          <Text>Email</Text>
        </Button>
        <Button
          last
          onPress={() => this.setState({ activeSection: 2 })}
          active={this.state.activeSection === 2}>
          <Text>SMS</Text>
        </Button>
      </Segment>
    </Header>

Screenshot of emulator/device

screenshot 2018-02-15 20 44 47

Is the bug present in both ios and android or in any one of them?

only on a real ios device

@fmoessle fmoessle changed the title Sections-Component weird rendering Segment-Component weird rendering Feb 15, 2018
@SupriyaKalghatgi
Copy link
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants