Design issue on android when the navigation bar is hidden
See original GitHub issueHello 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 ?
Issue Analytics
- State:
- Created 6 years ago
- Reactions:6
- Comments:23 (7 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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
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…