React-native-elements: Rendering a `ListItem` with `rightTitle` set to an empty string throws an error on Android.

Created on 27 Aug 2018  路  1Comment  路  Source: react-native-elements/react-native-elements

Explain what you did
Tried to render a ListItem on Android with rightTitle set to an empty string.

Expected behaviour
No right title renders.

Describe the bug
It throws:

"Cannot add a child that doesn't have a YogaNode to a parent without a measure function! (Trying to add a 'RCTRawText[text: ]' to a 'RCTView')"

This works just fine on iOS however, the bug only occurs on Android.

To Reproduce
Render this:

  <ListItem
    title="Something"
    subtitle="Another thing"
    rightTitle=""
  />

screen shot 2018-08-27 at 11 53 17 am

| software | version |
| -- | -- |
| react-native-elements | 0.19.0 |
| react-native | 0.56.0 |
| npm or yarn | yarn |

Bug

Most helpful comment

Fixed now in 1.0.0-beta6!

>All comments

Fixed now in 1.0.0-beta6!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

lukewlms picture lukewlms  路  3Comments

kubido picture kubido  路  3Comments

pacozaa picture pacozaa  路  3Comments

ilkerceng picture ilkerceng  路  3Comments

motogod picture motogod  路  3Comments