text: import _objectWithoutProperties from"@babel/runtime/helpers/objectWithoutProperties";import _extends from"@babel/runtime/helpers/extends";import _classCallCheck from"@babel/runtime/helpers/classCallCheck";import _createClass from"@babel/runtime/helpers/createClass";import _possibleConstructorReturn from"@babel/runtime/helpers/possibleConstructorReturn";import _getPrototypeOf from"@babel/runtime/helpers/getPrototypeOf";import _inherits from"@babel/runtime/helpers/inherits";var _jsxFileName="/Users/satya/Workspace/Callstack/react-navigation-tabs/src/navigators/createMaterialTopTabNavigator.tsx";import*as React from'react';import{TabView}from'react-native-tab-view';import createTabNavigator from'../utils/createTabNavigator';import MaterialTopTabBar from'../views/MaterialTopTabBar';var MaterialTabView=function(_React$PureComponent){_inherits(MaterialTabView,_React$PureComponent);function MaterialTabView(){var _getPrototypeOf2;var _this;_classCallCheck(this,MaterialTabView);for(var _len=arguments.length,args=new Array(_len),_key=0;_key<_len;_key++){args[_key]=arguments[_key];}_this=_possibleConstructorReturn(this,(_getPrototypeOf2=_getPrototypeOf(MaterialTabView)).call.apply(_getPrototypeOf2,[this].concat(args)));_this.renderTabBar=function(props){var state=_this.props.navigation.state;var route=state.routes[state.index];var descriptors=_this.props.descriptors;var descriptor=descriptors[route.key];var options=descriptor.options;var tabBarVisible=options.tabBarVisible==null?true:options.tabBarVisible;var _this$props=_this.props,navigation=_this$props.navigation,getLabelText=_this$props.getLabelText,getAccessibilityLabel=_this$props.getAccessibilityLabel,getTestID=_this$props.getTestID,renderIcon=_this$props.renderIcon,onTabPress=_this$props.onTabPress,onTabLongPress=_this$props.onTabLongPress,_this$props$tabBarCom=_this$props.tabBarComponent,TabBarComponent=_this$props$tabBarCom===void 0?MaterialTopTabBar:_this$props$tabBarCom,tabBarPosition=_this$props.tabBarPosition,tabBarOptions=_this$props.tabBarOptions,screenProps=_this$props.screenProps;if(TabBarComponent===null||!tabBarVisible){return null;}return React.createElement(TabBarComponent,_extends({},tabBarOptions,props,{tabBarPosition:tabBarPosition,screenProps:screenProps,navigation:navigation,getLabelText:getLabelText,getAccessibilityLabel:getAccessibilityLabel,getTestID:getTestID,renderIcon:renderIcon,onTabPress:onTabPress,onTabLongPress:onTabLongPress,__source:{fileName:_jsxFileName,lineNumber:77}}));};return _this;}_createClass(MaterialTabView,[{key:"render",value:function render(){var _this$props2=this.props,getLabelText=_this$props2.getLabelText,getAccessibilityLabel=_this$props2.getAccessibilityLabel,getTestID=_this$props2.getTestID,renderIcon=_this$props2.renderIcon,onTabPress=_this$props2.onTabPress,onTabLongPress=_this$props2.onTabLongPress,screenProps=_this$props2.screenProps,tabBarComponent=_this$props2.tabBarComponent,tabBarOptions=_this$props2.tabBarOptions,lazyPlaceholderComponent=_this$props2.lazyPlaceholderComponent,pagerComponent=_this$props2.pagerComponent,navigation=_this$props2.navigation,descriptors=_this$props2.descriptors,rest=_objectWithoutProperties(_this$props2,["getLabelText","getAccessibilityLabel","getTestID","renderIcon","onTabPress","onTabLongPress","screenProps","tabBarComponent","tabBarOptions","lazyPlaceholderComponent","pagerComponent","navigation","descriptors"]);var state=navigation.state;var route=state.routes[state.index];var descriptor=descriptors[route.key];var options=descriptor.options;var swipeEnabled=options.swipeEnabled==null?this.props.swipeEnabled:options.swipeEnabled;if(typeof swipeEnabled==='function'){swipeEnabled=swipeEnabled(state);}return React.createElement(TabView,_extends({},rest,{navigationState:navigation.state,swipeEnabled:swipeEnabled,renderTabBar:this.renderTabBar,renderLazyPlaceholder:lazyPlaceholderComponent!==undefined?function(props){return React.createElement(lazyPlaceholderComponent,props);}:undefined,renderPager:pagerComponent!==undefined?function(props){return React.createElement(pagerComponent,props);}:undefined,__source:{fileName:_jsxFileName,lineNumber:130}}));}}]);return MaterialTabView;}(React.PureComponent);export default createTabNavigator(MaterialTabView);
  //# sourceMappingURL=createMaterialTopTabNavigator.js.map