react-native/Libraries/Components/TabBarIOS/TabBarIOS.ios.js

37 lines
793 B
JavaScript
Raw Normal View History

/**
* 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]}>
{this.props.children}
2015-03-17 10:08:46 +00:00
</RCTTabBar>
);
}
});
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);
module.exports = TabBarIOS;