You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Would you be open to add React "use client" directive to all files that requires it so react-native-web can be easily used with Next.js without having to add this directive too early on pages ?
Problem when you add it yourself in your pages or in some component that use RNW primitives: this can conflict with some Server Components or server code that will try to be bundled in frontend bundle.
I can do a PR for this, if you are open to.
The text was updated successfully, but these errors were encountered:
Thing is: Next.js decided to have "use server" as the default directive if none.
So every client components, components that use context or state etc, need to specify the client directive.
I patched RNW locally and have 12 directives for now.
Is there an existing request?
Describe the feature request
Would you be open to add React
"use client"
directive to all files that requires it so react-native-web can be easily used with Next.js without having to add this directive too early on pages ?Problem when you add it yourself in your pages or in some component that use RNW primitives: this can conflict with some Server Components or server code that will try to be bundled in frontend bundle.
I can do a PR for this, if you are open to.
The text was updated successfully, but these errors were encountered: