Просмотр исходного кода

#11 Menu button isn't working on iPad in portrait mode, since menu is already visible

Alex Trofimov 6 лет назад
Родитель
Сommit
7b154c5843
1 измененных файлов с 7 добавлено и 5 удалено
  1. 7 5
      App.js

+ 7 - 5
App.js

@@ -515,11 +515,13 @@ function UnaFooter(o) {
     const styles = useDynamicStyleSheet(dynamicStyles)
     return (
         <Footer style={styles.footer}>
-            <FooterTab style={styles.footerTab}>
-                <Button vertical onPress={o.onMainMenu}>
-                    <Icon style={styles.footerIcon} name="bars" type="FontAwesome5" />
-                </Button>
-            </FooterTab>
+            {!('decorous' == TEMPLATE && Platform.isPad) &&
+                (<FooterTab style={styles.footerTab}>
+                    <Button vertical onPress={o.onMainMenu}>
+                        <Icon style={styles.footerIcon} name="bars" type="FontAwesome5" />
+                    </Button>
+                </FooterTab>)
+            }
             <FooterTab style={styles.footerTab}>
                 <Button vertical onPress={o.onNotificationsMenu} badge={o.bubbles['notifications-notifications'] > 0 ? true : false}>
                     {o.bubbles['notifications-notifications'] > 0 &&