Skip to content

[iOS][BottomNavigation][Tabs] Nested Tabs in BottomNavigation wrong layout #7562

@MartoYankov

Description

@MartoYankov

Environment

  • CLI: 6.0.1
  • Cross-platform modules: 6.0.1
  • Android Runtime: 6.0.0
  • iOS Runtime: 6.0.1

Describe the bug
On iOS when nesting Tabs inside BottomNavigation the layout is wrong. The content of the Tabs tab doesn't get to the bottom of the screen. See the light blue background in the following image:
Screenshot 2019-07-22 at 10 24 44

To Reproduce
Have the following markup:

<BottomNavigation>
      <TabStrip>
          <TabStripItem title="First"></TabStripItem>
          <TabStripItem title="Second"></TabStripItem>
      </TabStrip>
  
      <TabContentItem>
          <Tabs>
            <TabStrip backgroundColor="palevioletred">
                <TabStripItem title="First"></TabStripItem>
                <TabStripItem title="Second"></TabStripItem>
            </TabStrip>
        
            <TabContentItem>
                <GridLayout backgroundColor="skyblue">
                  <Label text="First View"/>
                </GridLayout>
            </TabContentItem>
        
            <TabContentItem>
                <GridLayout backgroundColor="gold">
                  <Label text="Second View" />
                </GridLayout>
            </TabContentItem>
          </Tabs>
      </TabContentItem>
  
      <TabContentItem>
          <GridLayout>
            <Label text="Second View" />
          </GridLayout>
      </TabContentItem>
    </BottomNavigation>

Expected behavior
The light blue layout should go to bottom and the contents (label) should layout in the safe area between the tabs.

Sample project
Visible in e2e/ui-tests-app -> tabs -> nested-bottom-navigation example


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions