Skip to content
New issue

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

renderToolbar not loading any views #7

Open
aejaex opened this issue Feb 7, 2019 · 1 comment
Open

renderToolbar not loading any views #7

aejaex opened this issue Feb 7, 2019 · 1 comment

Comments

@aejaex
Copy link

aejaex commented Feb 7, 2019

Hi, I have tried to use the renderToolbar method to design my collapsible but only the image in imageSource is rendered, regardless of what I do. If I remove the imageSource prop then my app breaks, telling me "Either an imageSource or custom component is required".

How can I avoid the imageSource and design my toolbar using the renderToolbar method itself?

@Agontuk
Copy link
Owner

Agontuk commented Feb 11, 2019

renderToolbar should return a function. If both renderToolbar & imageSource is given as props, renderToolbar takes priority. So it should work without any problems. Just use the renderToolbar instead of imageSource.

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

No branches or pull requests

2 participants