Skip to content

Latest commit

 

History

History
92 lines (89 loc) · 2.7 KB

Tabs-Advanced.md

File metadata and controls

92 lines (89 loc) · 2.7 KB

tabs-advanced-headref

Advanced Tabs

Preview ios tabs-advanced-headref Preview android tabs-advanced-headref

Syntax

{% codetabs name="React Native", type="js" -%} import React, { Component } from 'react'; import { Container, Header, Tab, Tabs, TabHeading, Icon, Text } from 'native-base'; import Tab1 from './tabOne'; import Tab2 from './tabTwo'; import Tab3 from './tabThree'; export default class TabsAdvancedExample extends Component { render() { return (

<Tab heading={ Camera}> <Tab heading={ No Icon}> <Tab heading={ }> ); } } {%- language name="Vue Native", type="vue" -%}

<script> import React from "react"; import { TabHeading, Icon, Text } from "native-base"; import TabOne from "./components/tabOne"; import TabTwo from "./components/tabTwo"; import TabThree from "./components/tabThree"; export default { components: { TabOne, TabTwo, TabThree }, methods: { getHeadingCompForTab1: function() { return ( Camera ); }, getHeadingCompForTab2: function() { return ( No Icon ); }, getHeadingCompForTab3: function() { return ( ); } } }; </script>

{%- endcodetabs %}