-
Notifications
You must be signed in to change notification settings - Fork 33
/
App.js
34 lines (28 loc) · 787 Bytes
/
App.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/**
* @flow
*/
import React, { Component } from 'react';
import {
View,
Text
} from 'react-native'
import ScrollableTabView , { DefaultTabBar } from 'react-native-scrollable-tab-view'
import CustomTabBar from './FlexibleTabBar'
export default class App extends Component<{}> {
render() {
return (
<ScrollableTabView
renderTabBar={() => (<CustomTabBar
backgroundColor={'#f4f4f4'}
tabUnderlineDefaultWidth={20} // default containerWidth / (numberOfTabs * 4)
tabUnderlineScaleX={3} // default 3
activeColor={"#0af"}
inactiveColor={"#333"}
/>)}>
<Text tabLabel='Tab1'>Tab1</Text>
<Text tabLabel='Tab2'>Tab2</Text>
<Text tabLabel='Tab3'>Tab3</Text>
</ScrollableTabView>
)
}
}