React-native-elements: Can i hide rightIcon in ListItem ?

Created on 19 Apr 2018  路  3Comments  路  Source: react-native-elements/react-native-elements

Here is my ListItem

              <ListItem
                onPress={this.changeExpanded.bind(this)}
                key={i}
                title={item.title}
                leftIcon={{name: item.icon}}
                rightIcon={{name: null}}
              />

I find that if i remove leftIcon it will disappear, but i remove rightIcon it still shows default icon in my ListItem, i can't find the setting about hide rifhtIcon.

I just try rightIcon={{name: null}}or rightIcon={{name: 'none'}} they are no working?

Is there a setting about it or not ? Thanks in advance.

Most helpful comment

@motogod
If you're using v0.19.X, use hideChevron
If your're using v1.0.0-beta4, just don't add the chevron props

All 3 comments

@motogod
If you're using v0.19.X, use hideChevron
If your're using v1.0.0-beta4, just don't add the chevron props

Yes i'm using v0.19.x and hideChevron is working. Thanks for your help.

add this prop : hideChevron

Was this page helpful?
0 / 5 - 0 ratings

Related issues

guitar9 picture guitar9  路  3Comments

ilkerceng picture ilkerceng  路  3Comments

jackcbrown89 picture jackcbrown89  路  3Comments

YikSanChan picture YikSanChan  路  3Comments

kubido picture kubido  路  3Comments