mirror of
https://github.com/zhigang1992/react-native-web.git
synced 2026-06-15 02:19:42 +08:00
The style resolver is reorganized to remove React Native style registration, and contain all the stateful resolver logic (previously partially found in NativeMethodsMixin). Style registration is done in 'StyleSheet.create', and will subsequently be decoupled from eager style resolution. The stateful resolver is fully contained in the ReactNativeStyleResolver. The options are removed from the resolver as they aren't needed to implement the correct i18n-ified styles. This functionality is also covered by unit tests now.