-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Create @wordpress-mobile/components package #15475
Conversation
If any of the existing packages depend on this package it must be published to npm. In the current implementation
Do you think those packages should be published to npm? If yes, then using a different organization will cause issues as all folks doing npm packages release will need to have access sorted out for both There is also this broader discussion, why those components exist on native mobile and don't have a matching behavior on the web with the mobile viewport? |
You're right, I missed that bit. They probably need to be published with the rest.
That's a good point. I'm not sure if all of the native components would have a web counterpart, and I definitely see us building things for native that would eventually be ported to mobile web, but not right away. I see this as an intermediate step to bring more of the code currently living in That said, it seems sensible that all these would just go to
What would you say are the challenges on adding |
I think it would be perfectly fine to define it as a It has to be finally explored and fixed to ensure that packages published to npm can be used with 3rd party projects. |
But since the code is actually importing from react native, shouldn’t it be a regular dependency? Edit: I just read the docs on peer dependencies and it makes more sense, I guess the concept wasn't intuitive to me 😁 |
I'm closing this for now, and we'll do a new PR to put these components in |
Description
This creates a new
@wordpress-mobile/components
package inpackages/mobile/
.Some things I'm still considering about this one:
@wordpress-mobile/block-editor
package that would include all the editor initialization.@wordpress-mobile
prefix is to signal that those packages are React Native code. I don't know if we can also make that more know in thepackage.json
to avoid accidental imports.