react-native-scl-alert
react-native-scl-alert copied to clipboard
Change icon check
Hi,
Any way to change the icon for an image of your own?
You can set headerIconComponent
to change the icon.
renderImage = () => (
<Image source={your_image} style={s.image} />
);
renderAlert = () => (
<SCLAlert
theme="danger"
show={this.displayAlert}
title={'your_title'}
subtitle={'your_message'}
cancellable
onRequestClose={this.removeAlert}
headerIconComponent={this.renderImage()}
>
<SCLAlertButton theme="danger" onPress={this.removeAlert}>{'ok'}</SCLAlertButton>
</SCLAlert>
);