Skip to content

Global classes don't work on iOS 12 #279

@james-criscuolo

Description

@james-criscuolo

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: 7.0.10
  • Cross-platform modules:
  • Android Runtime:
  • iOS Runtime: 6.5.3
  • Plugin(s):

Describe the bug
iOS 12 does not include global classes, and previous hack to fix no longer works with Nativescript 7

To Reproduce
Load a simulator with ios 12, styles that are only shown when global classes (like .ns-root) are present will not appear. This was also the case prior to Nativescript 7, but including Theme.toggleMode(false); in my main file would fix it.
Expected behavior
Global styles work as expected. Even restoring the hack would be useful.

Sample project
I can put something together if possible, but hope the issue is clear enough that this isn't needed. Was going to start with the demo for this app, but it has not been updated for {N} 7 yet, so its a big larger of endeavor that I can not tackle today.

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions