I would want to know how to put a cross/cancel icon in the modal view pressing on which I close the modal view. Any props to get this done? (maybe like leftIcon) Very normal use case I guess.
Did you solve it?
You can do this:
renderHeader={() => (
<TouchableOpacity
onPress={() => this.setState({ slideshow: false })}
style={{ alignItem: 'right',backgroundColor:'#FFA800'}}
>
<Icon
right
ios="ios-close"
android="md-close"
style={{ color: 'white', textAlign:'right', paddingRight:10 }}
/>
</TouchableOpacity>
)
Most helpful comment
You can do this: