mirror of
https://github.com/status-im/react-native.git
synced 2025-01-15 12:05:06 +00:00
61b8c61903
- [react_native] JS files for D1885531 | Martin Konicek - Ported TabBarIOS to OSS and unified implementation | Nick Lockwood - [react-packager] Add minify option as query param | Amjad Masad - [ReactNative] Fix ExpandingText prop types | Christopher Chedeau - [react-packager] Make dev a query param option | Amjad Masad
37 lines
790 B
JavaScript
37 lines
790 B
JavaScript
/**
|
|
* 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 (
|
|
<RKTabBar style={[styles.tabGroup, this.props.style]}>
|
|
{this.props.children}
|
|
</RKTabBar>
|
|
);
|
|
}
|
|
});
|
|
|
|
var styles = StyleSheet.create({
|
|
tabGroup: {
|
|
flex: 1,
|
|
}
|
|
});
|
|
|
|
var config = {
|
|
validAttributes: ReactIOSViewAttributes.UIView,
|
|
uiViewClassName: 'RCTTabBar',
|
|
};
|
|
var RKTabBar = createReactIOSNativeComponentClass(config);
|
|
|
|
module.exports = TabBarIOS;
|