mirror of
https://github.com/zhigang1992/react-navigation.git
synced 2026-04-29 12:55:21 +08:00
Add iPhone X SafeAreaView (#2833)
* Add SafeAreaView - JS only version * Add SafeAreaView * Looking pretty good * Small refactor * Remove console.log * Fix merge conflict with Header flow types. * Fix conflict with itemsContainerStyle. * Fix merge conflict. * Fix merge conflict, yarn and package.json from fixflow * Fix merge conflict, navigation playground yarn.lock and package.json with fixflow * Now it can work on lower versions of RN * Snapshots merge conflict. * Update DrawerNavigator snapshot. * Fix conflict with iconContainerStyle * Add support for correct status bar height on iPad. * Update jest snapshots. * Update StackNavigator snapshot. * Use modulo instead of while * Fix landscape tab bar width on < iOS 11
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
*/
|
||||
|
||||
import React from 'react';
|
||||
import { Button, Platform, ScrollView, StyleSheet } from 'react-native';
|
||||
import { Button, Platform, ScrollView } from 'react-native';
|
||||
import { TabNavigator, DrawerNavigator } from 'react-navigation';
|
||||
import MaterialIcons from 'react-native-vector-icons/MaterialIcons';
|
||||
import SimpleTabs from './SimpleTabs';
|
||||
@@ -42,10 +42,4 @@ const TabsInDrawer = DrawerNavigator({
|
||||
},
|
||||
});
|
||||
|
||||
const styles = StyleSheet.create({
|
||||
container: {
|
||||
marginTop: Platform.OS === 'ios' ? 20 : 0,
|
||||
},
|
||||
});
|
||||
|
||||
export default TabsInDrawer;
|
||||
|
||||
Reference in New Issue
Block a user