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

Added forward Ref to withSafeAreaInsets #109

Merged
merged 2 commits into from
Jun 22, 2020

Conversation

Kyberius
Copy link
Contributor

@Kyberius Kyberius commented Jun 21, 2020

Summary

The forward ref is necessary in case the component underneath uses it.
This PR is related to the issue #108

Test Plan

I added the forwardRef to the withSafeAreaInsets, I'm not very experienced with typescript, I tried to implement the correct typing to allow to forward the ref, It should work even if you the component does not pass a ref, ref can be null, I think this typing allows it but I'm not really sure.

I had trouble running the example, as it run but entered in a loop and crashed, even before adding the forwardRef.
I did test It with the patch I included in the issue tracker before.

@Kyberius Kyberius marked this pull request as ready for review June 22, 2020 09:17
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.

3 participants