This fails with Invalid prop 'shadowOffset.width' of type 'string' supplied to 'StyleSheet title', expected 'number'. So EStyleSheet doesn't seem to be parsing nested properties like shadowOffset.
Any ideas how to do this properly without resorting to hacks like defining const values or using EStyleSheet.value in render? It would be ideal to keep everything in the definition of styles rather than having to break it out ...
Steps to Reproduce
Have some style variables set like:
then use them in a stylesheet:
This fails with
Invalid prop 'shadowOffset.width' of type 'string' supplied to 'StyleSheet title', expected 'number'
. SoEStyleSheet
doesn't seem to be parsing nested properties likeshadowOffset
.Any ideas how to do this properly without resorting to hacks like defining const values or using
EStyleSheet.value
inrender
? It would be ideal to keep everything in the definition ofstyles
rather than having to break it out ...Try in Expo
Expected Behavior
shadowOffset
should work like any other prop.Actual Behavior
shadowOffset
cannor parse EStyleSheet variables.Show the code
Environment
Version of
react-native-extended-stylesheet
is 0.10.0.