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

Commit

Permalink
fix: avoid tab bar flash on keyboard shown
Browse files Browse the repository at this point in the history
closes #43
  • Loading branch information
satya164 committed Oct 29, 2019
1 parent e79e2ab commit 0ffc5c6
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/views/MaterialBottomTabView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,13 @@ export default class MaterialBottomTabView extends React.Component<Props> {

const isVisible = this._isVisible();
const extraStyle: ViewStyle | null =
typeof isVisible === 'boolean'
? { display: isVisible ? undefined : 'none' }
isVisible === false
? {
display: 'none',
// When keyboard is shown, `position` is set to `absolute` in the library
// This somehow breaks `display: 'none'`, so we explcitely override `position`
position: undefined,
}
: null;

return (
Expand Down

0 comments on commit 0ffc5c6

Please sign in to comment.