Skip to content
This repository has been archived by the owner on Dec 5, 2020. It is now read-only.

Change icon check #8

Open
nachoocl opened this issue Apr 26, 2019 · 1 comment
Open

Change icon check #8

nachoocl opened this issue Apr 26, 2019 · 1 comment

Comments

@nachoocl
Copy link

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

@imranMnts
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants