Skip to content
This repository has been archived by the owner on Feb 25, 2020. It is now read-only.

fix: white block when keyboard is open #227

Merged
merged 1 commit into from
Dec 3, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/views/BottomTabBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -446,6 +446,7 @@ class TabBarBottom extends React.Component<BottomTabBarProps, State> {
<Animated.View
style={[
styles.container,
containerStyle,
keyboardHidesTabBar
? {
// When the keyboard is shown, slide down the tab bar
Expand All @@ -459,10 +460,9 @@ class TabBarBottom extends React.Component<BottomTabBarProps, State> {
],
// Absolutely position the tab bar so that the content is below it
// This is needed to avoid gap at bottom when the tab bar is hidden
position: this.state.keyboard ? 'absolute' : null,
position: this.state.keyboard ? 'absolute' : undefined,
}
: null,
containerStyle,
]}
pointerEvents={
keyboardHidesTabBar && this.state.keyboard ? 'none' : 'auto'
Expand Down