mirror of
https://github.com/status-im/react-native.git
synced 2025-01-18 05:23:26 +00:00
f7cf017d29
- [ReactNative] Remove pushNotification prop from renderApplication | Eric Vicenti - [react_native] Stub VibrationIOS on Android | Andy Street - [ReactNative] Simplify and test interpolators | Christopher Chedeau - [ReactNative] Increase timeout for obj-c tests | Christopher Chedeau - [ReactNative] Updated RKText to new UIManager system | Nick Lockwood - [ReactNative] Unforked RCTShadowView, moved RKTextView into FBReactKitTextModule | Nick Lockwood - [ReactKit] Remove NativeModulesDeprecated | Spencer Ahrens - [ReactNative] Allow single callbacks in NativeModules | Spencer Ahrens - [ReactNative] s/RK/RCT in OSS | Spencer Ahrens - [ReactNative] Cleanup StyleSheet API | Christopher Chedeau - [RCTVibration] Basic Vibration API | Christopher Chedeau - [React Native] Prevent crash in redbox code with two thrown errors | Ben Alpert - [ReactNative] unbreak Android | Andrew Rasmussen
37 lines
793 B
JavaScript
37 lines
793 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 (
|
|
<RCTTabBar style={[styles.tabGroup, this.props.style]}>
|
|
{this.props.children}
|
|
</RCTTabBar>
|
|
);
|
|
}
|
|
});
|
|
|
|
var styles = StyleSheet.create({
|
|
tabGroup: {
|
|
flex: 1,
|
|
}
|
|
});
|
|
|
|
var config = {
|
|
validAttributes: ReactIOSViewAttributes.UIView,
|
|
uiViewClassName: 'RCTTabBar',
|
|
};
|
|
var RCTTabBar = createReactIOSNativeComponentClass(config);
|
|
|
|
module.exports = TabBarIOS;
|