akveo / react-native-ui-kitten

:boom: React Native UI Library based on Eva Design System :new_moon_with_face::sparkles:Dark Mode
https://akveo.github.io/react-native-ui-kitten/
MIT License
10.19k stars 952 forks source link

Failed prop type: Invalid props.style key `style` supplied to `Text` #1200

Closed luutruong closed 3 years ago

luutruong commented 3 years ago

🐛 Bug Report

This warning occurred when install RN 0.63.2

Component effected:

To Reproduce

Use a Text for accessoryLeft in ListItem.

Example:


<ListItem
   title="test a bug"
   accessoryRight={(props) => (
      <Text {...props}>Bug</Text>
   )} />

UI Kitten and Eva version

Package Version
@eva-design/eva 5.0.0
@ui-kitten/components 5.0.0
artyorsh commented 3 years ago

Please see the API. It is expected from this property to return an image. Which means it is called with props accessible by the Image component and not by text. If you want to render a Text please use the passed props argument accurately