-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Add basic support for React Server Components #2680
Conversation
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit 9a2de02:
|
compressed-size: default Size change: +0.03 kB
View unchanged
|
@necolas FYI I'm using a local patch very similar to this and it works quite well for me. |
Did you have to make any changes? I didn't hear back from @EvanBacon as to whether this was sufficient |
I also added 'use client' to
But I don't remember if they were "needed" or if I was just adding to everything in sight. I can do some more testing if you think those aren't needed. |
@necolas this seems good enough for general usage. Will let you know if we find anything broken. |
Close #2678 Fix #2672 Co-authored-by: evanbacon <[email protected]>
9a2de02
to
1e795ba
Compare
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit 1e795ba:
|
# Why - react-native and react-native-safe-area-context both have "use client" annotations. - use shared server module. <!-- Please describe the motivation for this PR, and link to relevant GitHub issues, forums posts, or feature requests. --> # How - Blocked on necolas/react-native-web#2680 <!-- How did you build this feature or fix this bug and why? --> # Test Plan <!-- Please describe how you tested this change and how a reviewer could reproduce your test, especially if this PR does not include automated tests! If possible, please also provide terminal output and/or screenshots demonstrating your test/reproduction. --> # Checklist <!-- Please check the appropriate items below if they apply to your diff. This is required for changes to Expo modules. --> - [ ] Documentation is up to date to reflect these changes (eg: https://docs.expo.dev and README.md). - [ ] Conforms with the [Documentation Writing Style Guide](https://github.com/expo/expo/blob/main/guides/Expo%20Documentation%20Writing%20Style%20Guide.md) - [ ] This diff will work correctly for `npx expo prebuild` & EAS Build (eg: updated a module plugin).
Close #2678
Fix #2672