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.

Design issue on android when the navigation bar is hidden

See original GitHub issue

Hello there,

I choosed to hide automatically the navigation bar on my phone, as you can see on the screenshot below the space allocated to the navigation bar are still there. (Android 7.1, Samsung Galaxy S8 Plus)

I tried to make a custom renderItem method and set “paddingBottom” to 0 but it didn’t work…

    _renderItem = (props) => {

        const style = {
            backgroundColor: props.backgroundColor,
            paddingTop: props.topSpacer,
            paddingBottom: 0
        }

        return (
            <View style={[styles.mainContent, style]}>
                <Text style={styles.title}>{props.title}</Text>
                <Image source={props.image} style={props.imageStyle} />
                <Text style={styles.text}>{props.text}</Text>
            </View>
        )
    }

Any ideas ?

screenshot_20180108-233345

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:6
  • Comments:23 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
giacomocerquonecommented, Feb 17, 2019

Same issue, Samsung Galaxy A8

@Jacse Solved removing the height property on the default slide. As of now I patched the defaultslide overriding in renderItem, could this be a solution? Or removing the height like this will cause some troubles in the future?

If this might be a solution, the only thing to do, is to remove it from DefaultSlide.js

1reaction
damienixcommented, Apr 10, 2019

I’m facing a similar problem. It looks like on Android when StatusBar is used with translucent style, the app slider deducts top bar height from its height. This created empty background space at the bottom but other elements are positioned properly…

Read more comments on GitHub >

github_iconTop Results From Across the Web

Hide the navigation bar - Android Developers
This lesson describes how to hide the navigation bar, which was introduced in Android 4.0 (API level 14). Even though this lesson focuses...
Read more >
How to hide navigation bar permanently in android activity?
The SYSTEM_UI_FLAG_HIDE_NAVIGATION is a new flag that requests the navigation bar hide completely. Be aware that this works only for the ...
Read more >
Bottom navigation - Material Design
Bottom navigation bars allow movement between primary destinations in an app.
Read more >
Customizing Your App's Navigation Bar - Apple Developer
Create custom titles, prompts, and buttons in your app's navigation bar. ... You can also design a distinctive navigation bar that matches your...
Read more >
I want to view applications in full screen mode. Can I hide the ...
Using the Show and hide button at the left side of the navigation bar, you can set the navigation bar to be hidden...
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