react-native-optimizer icon indicating copy to clipboard operation
react-native-optimizer copied to clipboard

Results 3 react-native-optimizer issues
Sort by recently updated
recently updated
newest added

I believe [you're using](https://github.com/marklawlor/react-native-optimizer/blob/main/src/babel/text.ts#L68) the path `react-native/Libraries/Components/Text/TextNativeComponent` but the actual path is a bit different in the [react-native repo](https://github.com/facebook/react-native/blob/main/packages/react-native/Libraries/Text/TextNativeComponent.js): `react-native/Libraries/Text/TextNativeComponent`

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...

The `numberOfLines` prop will cause the `Text` -> `NativeText` optimization to bail out. We should map `numberOfLines={numberOfLines}` to `numberOfLines={Math.ceil(0, numberOfLines)}` and remove `numberOfLines` from the `Text` -> `NativeText` bail out...