Skip to content

Latest commit

 

History

History
132 lines (127 loc) · 3.51 KB

Tabs-Scrollable.md

File metadata and controls

132 lines (127 loc) · 3.51 KB

tabs-scrollable-headref

Scrollable Tabs

Preview ios tabs-scrollable-headref Preview android tabs-scrollable-headref

Syntax

{% codetabs name="React Native", type="js" -%} import React, { Component } from 'react'; import { Container, Header, Tab, Tabs, ScrollableTab } from 'native-base'; import Tab1 from './tabOne'; . . . import Tab5 from './tabFive'; export default class TabsScrollableExample extends Component { render() { return (

<Tabs renderTabBar={()=> }> ); } } {%- language name="Vue Native", type="vue" -%}

<script> import React from "react"; import { ScrollableTab } from "native-base"; import TabOne from "./components/tabOne"; . . . import TabFive from "./components/tabFive"; export default { components: { TabOne, TabTwo, TabThree, TabFour, TabFive }, methods: { getScollableTabComp: function() { return ; } } }; </script>

{%- endcodetabs %}


Configuration(ScrollableTab)

Property Default Option Description
style - style object Style for ScrollableTab
tabsContainerStyle - style object Style for tabs within ScrollableTab
underlineStyle - style object Style of the Scrollable Tab's underline
onScroll - Function Function to call when pages are sliding