-
Notifications
You must be signed in to change notification settings - Fork 139
/
Copy pathSMXTabBarIOS.ios.js
46 lines (38 loc) · 985 Bytes
/
SMXTabBarIOS.ios.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
41
42
43
44
45
46
/**
*
* @providesModule SMXTabBarIOS
* @flow
*/
'use strict';
var React = require('react-native');
var { StyleSheet, requireNativeComponent, PropTypes, processColor } = React;
var SMXTabBarIconItemIOS = require('./SMXTabBarIconItemIOS.ios.js');
var SMXTabBarIOS = React.createClass({
propTypes: {
tintColor: PropTypes.string,
barTintColor: PropTypes.string,
translucent: PropTypes.bool,
},
statics: {
Item: SMXTabBarIconItemIOS,
},
render: function () {
var nativeProps = {
tintColor : this.props.tintColor,
barTintColor : this.props.barTintColor,
translucent : this.props.translucent
};
return (
<SMXIconTabBar style={[styles.tabGroup, this.props.style]} {...nativeProps}>
{this.props.children}
</SMXIconTabBar>
);
}
});
var styles = StyleSheet.create({
tabGroup: {
flex: 1
}
});
var SMXIconTabBar = requireNativeComponent('SMXTabBar', SMXTabBarIOS);
module.exports = SMXTabBarIOS;