mirror of
https://github.com/zhigang1992/react-navigation.git
synced 2026-04-29 04:45:19 +08:00
@@ -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 (
|
||||
|
||||
Reference in New Issue
Block a user