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 |

