-
-
Notifications
You must be signed in to change notification settings - Fork 9.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
(#1286) [WIP] Update package.json to use workspaces in react native examples #2375
(#1286) [WIP] Update package.json to use workspaces in react native examples #2375
Conversation
Looks like it actually installs the published packages instead of linking, so it doesn't allow to test local code. You should change those lines to just Once things keep working after running |
I tried to do this locally and
That is because yarn hoists |
We probably need to use something like |
Btw, metro bundler (the default one in RN) still doesn't support symlinks facebook/metro#1 So if we want to move RN examples to workspaces we should switch them to haul bundler |
@Hypnosphi It looks like haul may be a great solution. I'm going to try it out with the react native vanilla app first, then looking to doing it with the crna example (if it is even possible without ejecting). |
Closing this, as I haven't made any progress |
Issue:#1286
Why this PR exists
Currently, our build process requires us to take some additional steps for React Native, which slows the development process. The goal here is to get React Native working with yarn workspaces.
Checklist
What I did
Updated
package.json
inexamples/crna-kitchen-sink
andexamples/react-native-vanilla
How to test
Is this testable with jest or storyshots?
Yes (existing tests should cover it)
Does this need a new example in the kitchen sink apps?
No
Does this need an update to the documentation?
No
If your answer is yes to any of these, please make sure to include it in your PR.
Screenshots