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 web's SafeAreaView to forward ref to its underlying view #383

Conversation

antoine-cottineau
Copy link
Contributor

Summary

This PR solves the issue #295 by adding the ability for the web's SafeAreaView to forward the ref to the underlying View.

Test Plan

I run the code by creating a basic Expo app and patching it with my changes.

Copy link
Member

@janicduplessis janicduplessis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, can you just fix the formatting in SafeAreaView.web.tsx?

@antoine-cottineau antoine-cottineau force-pushed the feat/add-forwardRef-safe-area-view-web branch from 1930497 to 10a0c32 Compare April 28, 2023 15:48
@antoine-cottineau
Copy link
Contributor Author

It should be good now 🙂

Copy link
Collaborator

@jacobp100 jacobp100 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! Just a few things that might make the formatting less indented

src/SafeAreaView.web.tsx Outdated Show resolved Hide resolved
src/SafeAreaView.web.tsx Outdated Show resolved Hide resolved
Copy link
Member

@janicduplessis janicduplessis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! Thanks for fixing this

@janicduplessis janicduplessis merged commit ceb5e57 into th3rdwave:main Apr 29, 2023
@antoine-cottineau
Copy link
Contributor Author

My pleasure 🙂

@antoine-cottineau antoine-cottineau deleted the feat/add-forwardRef-safe-area-view-web branch May 3, 2023 14:53
@Boooober
Copy link

@janicduplessis Thank you fast release!
I have recently checked 4.5.2 version available on NPM, but it seems like the changes are missed. I can't see them in assets as well https://github.com/th3rdwave/react-native-safe-area-context/releases/tag/v4.5.2

Am I missing something or they are just lost on their way to production?

@janicduplessis
Copy link
Member

I might have messed something up, I published 4.5.3 which seems fine. Thanks for finding this.

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.

None yet

4 participants