Closed deklanw closed 5 years ago
Hi @deklanw !
Maybe subscription to build
event can help?
EStyleSheet.subscribe('build', () => {
// do something
});
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
I need to supply an object like this as a prop to React Navigation:
Because I can't guarantee
build
has been run at this point, I have to do a bunch of tedious wrapping withcreate
andvalue
.I can't, however, figure out how to properly do
drawerWidth
,activeTintColor
, andinactiveTintColor
, as they aren't objects. Clearly I could just use regular variables instead, but that would defeat the purpose of having all my variables defined inbuild
(not to mention wouldn't work withrem
plus media-queries). As this is currently, I get unresolved variable errors for those three properties.In addition to getting those three properties working, is there a cleaner way to do this overall? Like, a way to guarantee
build
is called first so I don't need to do all this wrapping? Something else?