mirror of
https://github.com/zhigang1992/react-navigation.git
synced 2026-04-27 21:08:02 +08:00
Remove top margin from drawer view (#642)
This commit is contained in:
committed by
Adam Miskiewicz
parent
a2c9a14045
commit
f16e634d70
@@ -4,6 +4,7 @@ import React, { PropTypes } from 'react';
|
||||
import {
|
||||
View,
|
||||
Text,
|
||||
Platform,
|
||||
StyleSheet,
|
||||
} from 'react-native';
|
||||
|
||||
@@ -12,9 +13,7 @@ import TouchableItem from '../TouchableItem';
|
||||
import type {
|
||||
NavigationScreenProp,
|
||||
NavigationState,
|
||||
NavigationRoute,
|
||||
NavigationAction,
|
||||
NavigationRouter,
|
||||
Style,
|
||||
} from '../../TypeDefinition';
|
||||
import type {
|
||||
@@ -30,7 +29,6 @@ type Props = {
|
||||
getLabel: (scene: DrawerScene) => ?(React.Element<*> | string);
|
||||
renderIcon: (scene: DrawerScene) => ?React.Element<*>;
|
||||
style?: Style;
|
||||
router: NavigationRouter;
|
||||
};
|
||||
|
||||
/**
|
||||
@@ -103,7 +101,8 @@ DrawerNavigatorItems.defaultProps = {
|
||||
|
||||
const styles = StyleSheet.create({
|
||||
container: {
|
||||
marginVertical: 4,
|
||||
marginTop: Platform.OS === 'ios' ? 20 : 0,
|
||||
paddingVertical: 4,
|
||||
},
|
||||
item: {
|
||||
flexDirection: 'row',
|
||||
|
||||
@@ -94,6 +94,5 @@ const styles = StyleSheet.create({
|
||||
container: {
|
||||
flex: 1,
|
||||
backgroundColor: '#fff',
|
||||
paddingTop: Platform.OS === 'ios' ? 20 : 0,
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user