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

crash when TabBar item size is one #1827

Closed
shi1hh opened this issue Sep 9, 2017 · 1 comment
Closed

crash when TabBar item size is one #1827

shi1hh opened this issue Sep 9, 2017 · 1 comment
Assignees
Labels

Comments

@shi1hh
Copy link

shi1hh commented Sep 9, 2017

   <TabBar
            unselectedTintColor="#949494"
            tintColor="#33A3F4"
            barTintColor="white"
        >
          <TabBar.Item
              title="生活"
              key="生活"
              badge={1}
              onPress={() => {
                this.setState({
                  selectedTab: 'blueTab',
                });
              }}
              data-seed="logId"
          >
            <Text>{'opop'}</Text>
          </TabBar.Item>
 </TabBar>

it crash.

  <TabBar
            unselectedTintColor="#949494"
            tintColor="#33A3F4"
            barTintColor="white"
        >
          <TabBar.Item
              title="生活"
              key="生活"
              badge={1}
              onPress={() => {
                this.setState({
                  selectedTab: 'blueTab',
                });
              }}
              data-seed="logId"
          >
            <Text>{'opop'}</Text>
          </TabBar.Item>
          <TabBar.Item
              title="生活"
              key="生活"
              badge={1}
              onPress={() => {
                this.setState({
                  selectedTab: 'blueTab',
                });
              }}
              data-seed="logId"
          >
            <Text>{'opop'}</Text>
          </TabBar.Item>
        </TabBar>

it work

@ant-design-bot
Copy link

Hello @shi1hh, your issue has been closed because it does not conform to our issue requirements. Please use the Issue Helper to create an issue, thank you!

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

No branches or pull requests

4 participants