We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I've tried a couple of solutions to render but unfortunately none of them work.
Solution#1
showMessage({ icon: 'info', message: 'No network connection', type: 'danger', icon: <Icon name={"calendar-blank"} size={20} color={'red} /> })
Solution#2
showMessage({ icon: 'info', message: 'No network connection', type: 'danger', icon: () => { return(<Icon name={"calendar-blank"} size={20} color={'red} />)} })
Solution#3
showMessage({ icon: 'info', message: 'No network connection', icon: <Icon name={"calendar-blank"} size={20} color={'red} /> })
Nothing works :/
The text was updated successfully, but these errors were encountered:
Hi @babarbahadur
I don't know how your Icon componente works, but try something like this:
showMessage({ message: 'No network connection', icon: props => <Icon name="calendar-blank" size={20} color="red" {...props} />, type: 'danger', })
But again, I don't know your Icon component, and I don't know also what is "calendar-blank" not either if it really works.
Sorry, something went wrong.
No branches or pull requests
I've tried a couple of solutions to render but unfortunately none of them work.
Solution#1
Solution#2
Solution#3
Nothing works :/
The text was updated successfully, but these errors were encountered: