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

Allow custom renderer to receive function or react node #291

Merged
merged 1 commit into from
Dec 3, 2020
Merged

Allow custom renderer to receive function or react node #291

merged 1 commit into from
Dec 3, 2020

Conversation

fortezhuo
Copy link
Contributor

Hi,
I think this library will be great if custom renderer can receive function like Header / Footer Component
Please review

<Modalize
      ref={refModalize}
      customRenderer={() => (<Text>Custom Renderer</Text>)}
      HeaderComponent={() => (<Text>Header</Text>)}
/>

@jeremybarbet
Copy link
Owner

LGTM, thanks for that!

@jeremybarbet jeremybarbet merged commit 26a4c14 into jeremybarbet:master Dec 3, 2020
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

Successfully merging this pull request may close these issues.

2 participants