2015-03-06 00:36:41 +00:00
|
|
|
/**
|
|
|
|
* Copyright 2004-present Facebook. All Rights Reserved.
|
|
|
|
*
|
|
|
|
* @providesModule TabBarIOS
|
|
|
|
*/
|
|
|
|
'use strict';
|
|
|
|
|
|
|
|
var React = require('React');
|
|
|
|
var ReactIOSViewAttributes = require('ReactIOSViewAttributes');
|
|
|
|
var StyleSheet = require('StyleSheet');
|
|
|
|
|
|
|
|
var createReactIOSNativeComponentClass = require('createReactIOSNativeComponentClass');
|
|
|
|
|
|
|
|
var TabBarIOS = React.createClass({
|
|
|
|
render: function() {
|
|
|
|
return (
|
2015-03-17 10:08:46 +00:00
|
|
|
<RCTTabBar style={[styles.tabGroup, this.props.style]}>
|
2015-03-06 00:36:41 +00:00
|
|
|
{this.props.children}
|
2015-03-17 10:08:46 +00:00
|
|
|
</RCTTabBar>
|
2015-03-06 00:36:41 +00:00
|
|
|
);
|
|
|
|
}
|
|
|
|
});
|
|
|
|
|
|
|
|
var styles = StyleSheet.create({
|
|
|
|
tabGroup: {
|
|
|
|
flex: 1,
|
|
|
|
}
|
|
|
|
});
|
|
|
|
|
|
|
|
var config = {
|
|
|
|
validAttributes: ReactIOSViewAttributes.UIView,
|
|
|
|
uiViewClassName: 'RCTTabBar',
|
|
|
|
};
|
2015-03-17 10:08:46 +00:00
|
|
|
var RCTTabBar = createReactIOSNativeComponentClass(config);
|
2015-03-06 00:36:41 +00:00
|
|
|
|
|
|
|
module.exports = TabBarIOS;
|