react-native-optimizer
react-native-optimizer copied to clipboard
Prevent `<Text />` `selectionColor` optimization bailout
The selectionColor prop will cause the Text -> NativeText optimization to bail out. Before the Text -> NativeText checks are made, we should attempt to remap selectColor={color} to import processColor from 'react-native/Libraries/StyleSheet/processColor';selectColor={processColor(color)}, and tag the attribute that it can be skipped in the Text -> NativeText optimization.
https://github.com/facebook/react-native/blob/441822923c9509dbb28bceacf6fc590c157e15bb/packages/react-native/Libraries/Text/Text.js#L185-L188