native-base#Tabs JavaScript Examples

The following examples show how to use native-base#Tabs. 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: DrawerScreen2.js    From inventory-management-rn with MIT License 6 votes vote down vote up
DrawerScreen2 = ({ navigation }) => {
  return (
    <Container>
      <HeaderView navigation={navigation} />

      <Tabs>
        <Tab activeTabStyle={{ backgroundColor: '#4796BD' }} tabStyle={{ backgroundColor: '#4796BD' }} heading="Buy">
          <Buy navigation={navigation} />
        </Tab>
        <Tab activeTabStyle={{ backgroundColor: '#4796BD' }} tabStyle={{ backgroundColor: '#4796BD' }} heading="Sell">
          <Sell />
        </Tab>
      </Tabs>

    </Container>
  );

}
Example #2
Source File: InventoryScreen.js    From inventory-management-rn with MIT License 6 votes vote down vote up
TransactionsScreen = ({navigation}) => {
  return (
    <Container>
      <HeaderView navigation={navigation} title={'Inventory'} />

      <Tabs>
        <Tab
          
          activeTabStyle={{backgroundColor: '#4796BD'}}
          tabStyle={{backgroundColor: '#4796BD'}}
          textStyle={{color: '#fff'}}
          activeTextStyle={{color: '#fff', fontWeight: 'bold'}}
          heading="Inventory">
          <InventoryListScreen />
        </Tab>
        <Tab
          activeTabStyle={{backgroundColor: '#4796BD'}}
          tabStyle={{backgroundColor: '#4796BD'}}
          textStyle={{color: '#fff'}}
          activeTextStyle={{color: '#fff', fontWeight: 'bold'}}
          heading="Near expiry">
          <ExpiryScreen />
        </Tab>

      </Tabs>
    </Container>
  );
}
Example #3
Source File: TransactionsScreen.js    From inventory-management-rn with MIT License 6 votes vote down vote up
TransactionsScreen = ({navigation}) => {
  
  return (
    <Container>
      <HeaderView navigation={navigation} title={'Transactions'} />

      <Tabs>
        <Tab
          activeTabStyle={{backgroundColor: '#4796BD'}}
          tabStyle={{backgroundColor: '#4796BD'}}
          heading="Buy">
          <Buy  />
        </Tab>
        <Tab
          activeTabStyle={{backgroundColor: '#4796BD'}}
          tabStyle={{backgroundColor: '#4796BD'}}
          heading="Sell">
          <Sell  />
        </Tab>
        <Tab
          activeTabStyle={{backgroundColor: '#4796BD'}}
          tabStyle={{backgroundColor: '#4796BD'}}
          heading="History">
          <History />
        </Tab>
      </Tabs>
    </Container>
  );
}
Example #4
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>
)