question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support for iPhone X

See original GitHub issue

I notice when using the default React Navigation TabNavigator the bottom safe area is automatically adjusted for both tab bar height and icons aligned to the top nicely but the moment I plug in tabBarComponent: NavigationComponent it does not and it will overlap with the bottom bar. Is there any support for this? Thanks!

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

4reactions
timomehcommented, Mar 22, 2018

I added support for iPhone X without SafeAreaView in #76. This issue will be closed when v1.0 will be released.

marz-22-2018 12-07-02

1reaction
ermalkalecicommented, Mar 16, 2018

@kennyljv @timomeh Easy solution:

import { TabNavigator, SafeAreaView } from 'react-navigation';
import { NavigationComponent } from 'react-native-material-bottom-navigation';

const TabBar = props => (
  <SafeAreaView
    forceInset={{ top: 'never', bottom: 'always', horizontal: 'never' }}
    style={{ backgroundColor: '#fff' }}
  >
    <NavigationComponent {...props} />
  </SafeAreaView>
);

const MainScreen = TabNavigator(
  {
    Tab1: { screen: Screen },
    Tab2: { screen: Screen },
    Tab3: { screen: Screen },
    Tab4: { screen: Screen },
  },
  {
    tabBarComponent: TabBar,
    tabBarPosition: 'bottom',
    },
);
Read more comments on GitHub >

github_iconTop Results From Across the Web

iPhone X - Apple Support
Get to know your iPhone X.
Read more >
iPhone models compatible with iOS 16 - Apple Support
Find out which iPhone models support iOS 16. ... Three iPhone models with Face ID. iPhone X · iPhone XR · iPhone XS...
Read more >
iPhone - Official Apple Support
Learn how to set up and use your iPhone. Find all the topics, resources, and contact options you need for iPhone.
Read more >
iPhone Repair & Service - Apple Support
Need to repair your iPhone? See your service options, ... Contact us. Talk to an Apple Support Advisor ... We can replace your...
Read more >
iPhone X Display Module Replacement Program for Touch ...
Service Process. Choose one of the options below to have your iPhone X serviced. Your iPhone will be examined prior to any service...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found