react-native-scl-alert icon indicating copy to clipboard operation
react-native-scl-alert copied to clipboard

Change icon check

Open nachoocl opened this issue 5 years ago • 1 comments

Hi, Any way to change the icon for an image of your own? aqaqaqaqa

nachoocl avatar Apr 26 '19 19:04 nachoocl

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>
);

imranMnts avatar Jul 12 '19 15:07 imranMnts