Skip to content

Potential issue with configuration workflow on web #9

@leggomuhgreggo

Description

@leggomuhgreggo

Noticed a potential issue where the recommended pattern of exporting within a StyleSheet.create wasn't working on web.

When I export just the raw style object the styles apply as expected.

But when I export the config within StyleSheet.create the same style class doesn't apply. Seems like reference ID isn't computing back to the actual styles for some reason.

Might be a quirk of the RNW implementation or something but wanted to share in case it was relevant here.

You can see at the bottom of the theme file in this demo, I have the StyleSheet version of the export commented out:
Codesandbox Demo

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions