native-base#TabHeading JavaScript Examples

The following examples show how to use native-base#TabHeading. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: TabView.js    From WhatsApp-Clone with MIT License 5 votes vote down vote up
TabView = ({navigation}) => (
  <Container>
    <Tabs
      initialPage={0}
      style={{elevation: 0, marginTop: -25}}
      tabContainerStyle={{
        elevation: 0,
        height: '8%',
      }}
      tabBarUnderlineStyle={{
        height: 2,
        backgroundColor: WHITE,
      }}>
      {/* <Tab
        heading={
          <TabHeading style={styles.tabStyle}>
            <Icon style={styles.tabTextStyle} name="camera" />
          </TabHeading>
        }> 
        <CameraComponent />
      </Tab> */}
      <Tab
        heading={
          <TabHeading style={styles.tabStyle}>
            <Text uppercase style={styles.tabTextStyle}>
              Chats
            </Text>
          </TabHeading>
        }>
        <ChatListView navigation={navigation} />
      </Tab>
      <Tab
        heading={
          <TabHeading style={styles.tabStyle}>
            <Text uppercase style={styles.tabTextStyle}>
              Status
            </Text>
          </TabHeading>
        }>
        <StatusView navigation={navigation} />
      </Tab>

      {/* <Tab
        heading={
          <TabHeading style={styles.tabStyle}>
            <Text uppercase style={styles.tabTextStyle}>
              Calls
            </Text>
          </TabHeading>
        }>
        <CallsView />
      </Tab> */}
    </Tabs>
  </Container>
)