react-native-web icon indicating copy to clipboard operation
react-native-web copied to clipboard

Add "use client" directive for a proper usage with Next App Router

Open MoOx opened this issue 1 year ago • 3 comments

Is there an existing request?

  • [X] I have searched for this 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.

MoOx avatar May 23 '24 07:05 MoOx