-
-
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
Added CRNA app with getstorybook #1219
Conversation
Equivalent of: ``` yarn create react-native-app crna-vanilla cd crna-vanilla getstorybook ``` I did not hook up storybook with the app, per https://github.com/storybooks/storybook/tree/master/app/react-native#cre ate-react-native-app-crna
Codecov Report
@@ Coverage Diff @@
## master #1219 +/- ##
==========================================
- Coverage 13.75% 13.61% -0.14%
==========================================
Files 207 207
Lines 4632 4678 +46
Branches 510 630 +120
==========================================
Hits 637 637
+ Misses 3556 3508 -48
- Partials 439 533 +94
Continue to review full report at Codecov.
|
Is this ready for review? |
@tmeasday please see my comments in |
@shilman, my answer to the above was: it doesn't look like it'll be possible to hijack the packager in the same way for CRNA. Instead of the vanilla packager, a CRNA app ends up using something deep in the bowels of |
@tmeasday any thoughts on the best way to make this testable? |
We can use |
Hey. I think we need to decide for a n example folder structure. Here is a proposal to apply here and in #1224 Current state
Goals
Proposal
I tried to synthesize some of the discussion we all had. Sorry If I missed sth :) |
@alexandrebodin my proposal was here: #1224 (comment) I prefer a flat file structure both because it's simpler with Lerna and also simpler for a user to scan all of the examples in one place. |
Aren't you afraid there will be too many flat projects if we start supporting angular cycle vue etc ? For now we can go with your idea of flat strucutre and wait for future evolution. I don't think it's really clear for a user to see cra-getstorybook imho i would at least expect react-getstarted (rather thant react-getstorybook as you suggested I think) That's only my opinion of course :) |
@alexandrebodin You're right that when we start to support multiple frameworks we should divide it up. Currently we just support two though, so let's keep it simple to start and refactor once we have more frameworks. I'm fine with renaming |
Merging this into #1224 and closing |
Issue: #1218
What I did
Equivalent of:
Plus added a few
/* eslint-disable */
for files generated bycreate-react-native-app
which don't follow our coding conventions and added snapshot testing.I did not hook up storybook with the app, per
https://github.com/storybooks/storybook/tree/master/app/react-native#create-react-native-app-crna
How to test
Automated test:
Manual test: