Skip to content

[Tabs][BottomNav][iOS] Crash when ProxyViewContainer first child of TabContentItem #7834

Closed

Description

@MartoYankov

Environment
Provide version numbers for the following components (information can be retrieved by running tns info in your project folder or by inspecting the package.json of the project):

  • CLI: 6.1.0
  • Cross-platform modules: 6.1.0
  • iOS Runtime: 6.1.0

Describe the bug
When having a ProxyViewContainer as first child of TabContentItem, the app crashes. This is very important for Angular. See playground.

To Reproduce
Playground example:
https://play.nativescript.org/?template=play-ng&id=Aa11Ia

  1. Run on iOS.
    Result: There is a crash
ERROR:  uncaughtError Error: onMeasure() did not set the measured dimension by calling setMeasuredDimension() ProxyViewContainer(60)

Expected behavior
Should work

Activity

  1. asciidiego commented on Jul 2, 2020

    @asciidiego

    As a workaround we simply put a StackLayout on top of our Angular Component. Since, as you said, it only happens with the first child.

  2. rigor789 commented on Sep 7, 2023

    @rigor789
    Member

    Closing because BottomNavigation and Tabs are no longer part of core since NativeScript 8.0:

    https://blog.nativescript.org/nativescript-8-announcement/#important-note-about-bottomnavigation-and-tabs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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