-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
Integrate crna-kitchen-sink examples app into the monorepo #6125
Conversation
Unfortunately we appear to be impacted by react-native-async-storage/async-storage#14
Add a metro config file to ignore undesired packages from the metro bundle. Also avoid hoisting react-native.
Codecov Report
@@ Coverage Diff @@
## next #6125 +/- ##
==========================================
- Coverage 38.07% 38.05% -0.02%
==========================================
Files 643 643
Lines 9414 9418 +4
Branches 1370 1343 -27
==========================================
Hits 3584 3584
- Misses 5265 5267 +2
- Partials 565 567 +2
Continue to review full report at Codecov.
|
Codecov Report
@@ Coverage Diff @@
## next #6125 +/- ##
==========================================
- Coverage 38.07% 38.06% -0.01%
==========================================
Files 643 643
Lines 9414 9415 +1
Branches 1370 1371 +1
==========================================
Hits 3584 3584
Misses 5265 5265
- Partials 565 566 +1
Continue to review full report at Codecov.
|
@benoitdion This version is working much better!! 🎉 I'm able to:
However, all hell breaks loose as soon as I open up the on-device nav panel when the device is connected to the server, and I'm back in an infinite loop. |
@shilman I haven't seen the infinite loop with the latest commit. What steps do you use to repro? |
@benoitdion it looks like the knobs story is causing the problem maybe?
Clicking around on the non-knobs story in both UIs seems to be OK, though I didn't stress test. But click on the knobs story on device, and the loop gets triggered |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@benoitdion I think there are still some issues between the client and server as we've discussed on Discord. But as far as integrating crna-kitchen-sink
back into the mono-repo this looks EXCELLENT to me.
Out of curiosity, I ran a short benchmark to see how much overhead it adds to a yarn bootstrap --reset --core
vs. next
.
Build without CRNA
real 5m54.226s
user 5m10.626s
sys 2m46.306s
Build with CRNA
real 6m31.911s
user 5m30.995s
sys 3m14.872s
Well worth it IMHO. Bravo! 👏
the server rendering should be fixed with 0d622bb |
Issue
Iterating on storybook react-native is currently very painful and hard to test. The first step to improve the situation is tighter integration of the example app into the monorepo.
What I did
@react-native-community/async-storage
. Unfortunately we're impacted byUndefined is not an object (evaluating 'RCTAsyncStorage.multiMerge') react-native-async-storage/async-storage#14 and I was unable to catch that with the previous set up. Workarounds welcome.
How to test
yarn bootstrap --reset
yarn install
yarn dev
example-native/crna-kitchen-sink
:yarn start
example-native/crna-kitchen-sink
and watch it reloadapp/react-native
or anywhere in the monorepo and watch it reload