forked from KevinHu2014/RN-IceSpeed
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtab.js
40 lines (36 loc) · 1007 Bytes
/
tab.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
34
35
36
37
38
39
40
import React, { Component } from 'react';
import {
StyleSheet,
Text,
View,
TouchableHighlight,
} from 'react-native';
var ScrollableTabView = require('react-native-scrollable-tab-view');
var Item = require('./Items');
var Pet = require('./NavPet');
var Library = require('./NavBox');
var Setting = require('./Setting');
var NavMap = require('./NavMap');
var tab = React.createClass({
render() {
return (
<ScrollableTabView tabBarPosition="bottom"
prerenderingSiblingsNumber={2}
tabBarTextStyle={{fontFamily: 'AvenirNext-Medium', fontSize: 25}}
tabBarBackgroundColor="white"
tabBarActiveTextColor="#146EFF"
tabBarUnderlineColor="#146EFF"
locked={true}
>
<NavMap tabLabel="地圖" />
<Item tabLabel="道具" />
<Pet tabLabel="寵物" />
<Library tabLabel="圖鑑" />
<Setting tabLabel="設定" />
</ScrollableTabView>
);
}
});
var styles = StyleSheet.create({
});
module.exports = tab;