react-native-navbar
Version:
Simple customizable navbar component for react-native
54 lines (52 loc) • 1 kB
JavaScript
const NAV_BAR_HEIGHT = 44;
const STATUS_BAR_HEIGHT = 20;
module.exports = {
navBarContainer: {
backgroundColor: 'white',
},
statusBar: {
height: STATUS_BAR_HEIGHT,
},
navBar: {
height: NAV_BAR_HEIGHT,
flexDirection: 'row',
justifyContent: 'space-between',
alignItems: 'stretch',
},
customTitle: {
position: 'absolute',
left: 0,
right: 0,
bottom: 7,
alignItems: 'center',
},
navBarButtonContainer: {
flexDirection: 'row',
justifyContent: 'center',
alignItems: 'stretch',
},
navBarButton: {
flexDirection: 'row',
justifyContent: 'center',
alignItems: 'center',
},
navBarButtonText: {
fontSize: 17,
letterSpacing: 0.5,
},
navBarTitleContainer: {
position: 'absolute',
left: 0,
right: 0,
top: 0,
bottom: 0,
justifyContent: 'center',
alignItems: 'center',
},
navBarTitleText: {
fontSize: 17,
letterSpacing: 0.5,
color: '#333',
fontWeight: '500',
},
};