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!
Noticed a potential issue where the recommended pattern of exporting within a
StyleSheet.createwasn'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.createthe 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!