Skip to content

Commit f659829

Browse files
author
aksonov
committed
remove navbar border for navTransparent option
1 parent 05578ee commit f659829

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

dist/navigationStore.js

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,8 @@ res.header=null;
218218
}
219219

220220
if(navTransparent){
221-
res.headerStyle={position:'absolute',backgroundColor:'transparent',zIndex:100,top:0,left:0,right:0};
221+
res.headerStyle={position:'absolute',backgroundColor:'transparent',zIndex:100,top:0,left:0,right:0,
222+
borderBottomWidth:0,elevation:1};
222223
}
223224
return res;
224225
};
@@ -273,15 +274,15 @@ store.deleteRef(originalRouteName(navigation.state.routeName));
273274
}},{key:'render',value:function render()
274275
{var _this2=this;
275276
var navigation=this.props.navigation;
276-
return _react2.default.createElement(Component,_extends({ref:function ref(_ref5){return _this2.ref=_ref5;}},this.props,extendProps(navigation.state.params,store),{name:navigation.state.routeName,__source:{fileName:_jsxFileName,lineNumber:276}}));
277+
return _react2.default.createElement(Component,_extends({ref:function ref(_ref5){return _this2.ref=_ref5;}},this.props,extendProps(navigation.state.params,store),{name:navigation.state.routeName,__source:{fileName:_jsxFileName,lineNumber:277}}));
277278
}}]);return Wrapped;}(_react2.default.Component),_class.propTypes={navigation:_propTypes2.default.object},_temp);
278279

279280
return wrapper(Wrapped);
280281
}
281282

282283

283284
function StatelessWrapped(_ref6){var navigation=_ref6.navigation,props=_objectWithoutProperties(_ref6,['navigation']);
284-
return _react2.default.createElement(Component,_extends({},props,{navigation:navigation},extendProps(navigation.state.params,store),{name:navigation.state.routeName,__source:{fileName:_jsxFileName,lineNumber:284}}));
285+
return _react2.default.createElement(Component,_extends({},props,{navigation:navigation},extendProps(navigation.state.params,store),{name:navigation.state.routeName,__source:{fileName:_jsxFileName,lineNumber:285}}));
285286
}
286287
StatelessWrapped.propTypes={
287288
navigation:_propTypes2.default.object};
@@ -475,8 +476,8 @@ if(lightbox){
475476
return(0,_LightboxNavigator2.default)(res,_extends({mode:mode,initialRouteParams:initialRouteParams,initialRouteName:initialRouteName},commonProps,{navigationOptions:createNavigationOptions(commonProps)}));
476477
}else if(tabs){
477478
if(!tabBarComponent){
478-
tabBarComponent=tabBarPosition==='top'?function(props){return _react2.default.createElement(_reactNavigation.TabBarTop,_extends({},props,commonProps,{__source:{fileName:_jsxFileName,lineNumber:478}}));}:
479-
function(props){return _react2.default.createElement(_reactNavigation.TabBarBottom,_extends({},props,commonProps,{__source:{fileName:_jsxFileName,lineNumber:479}}));};
479+
tabBarComponent=tabBarPosition==='top'?function(props){return _react2.default.createElement(_reactNavigation.TabBarTop,_extends({},props,commonProps,{__source:{fileName:_jsxFileName,lineNumber:479}}));}:
480+
function(props){return _react2.default.createElement(_reactNavigation.TabBarBottom,_extends({},props,commonProps,{__source:{fileName:_jsxFileName,lineNumber:480}}));};
480481
}
481482
if(!tabBarPosition){
482483
tabBarPosition=_reactNative.Platform.OS==='android'?'top':'bottom';

src/navigationStore.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,8 @@ function createNavigationOptions(params) {
218218
}
219219

220220
if (navTransparent) {
221-
res.headerStyle = { position: 'absolute', backgroundColor: 'transparent', zIndex: 100, top: 0, left: 0, right: 0 };
221+
res.headerStyle = { position: 'absolute', backgroundColor: 'transparent', zIndex: 100, top: 0, left: 0, right: 0,
222+
borderBottomWidth: 0, elevation: 1 };
222223
}
223224
return res;
224225
};

0 commit comments

Comments
 (0)