fix: avoid tab bar flash on keyboard shown

closes #43
This commit is contained in:
satyajit.happy
2019-10-29 02:22:14 +01:00
parent 66de5db1d4
commit 2f0c14b40e

View File

@@ -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 (