Remove StyleSheet.resolve method on web
brodybits opened this issue · comments
- introduces troublesome dependency on react-native-web internals as mentioned by @necolas in 0367d98#r33234880
- not supported by
react-native
on any platforms, as mentioned by the same note and confirmed by checking the following source: https://github.com/facebook/react-native/blob/master/Libraries/StyleSheet/StyleSheet.js
I would be happy to contribute this kind of an update in the near future, think this would need another new 0.x version according to semver etiquette.
Maybe encouraging use of StyleSheet.flatten
would make more sense, as that is a more standardised API.
StyleSheet.resolve()
appears to be an undocumented method, so should be fine to deprecate it with a warning until the next 0.x
version (assuming the wrapping to add the console log can't cause crashes).