-
Notifications
You must be signed in to change notification settings - Fork 1.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
revise generator to use different paths #2708
Comments
If the decision is not to change the generator, we will want to discuss adding instructions to the recipe to get the screen generator working again. |
Yeah it is too fixed of an implementation right now - sort of discussed here: #2443 |
@mchisolm0 can you give me an example with current directory structure and what you are looking to create? |
@frankcalise Here is the current directory structure after implementing expo-router. When I have used the generator to create a model, it works except it creates the When I tried to do similarly with the screen generator, it just fails. Here is what I think is the most relevant part of the error. Error: file not found app/screens/index.ts |
I did also read through the suggestion for plop and the README for the project. I agree if that was implemented, I think it would address this issue. I am happy to help with that if the team decides to go that route and wants the help. |
@mchisolm0 yeah I was looking into the current implementation, perhaps we can just override the hardcoded subdir with a parameter to not do a full rewrite via Plop (which is not in the cards for us at the moment). The screen generator doesn't really apply with expo-router, since they don't all live in a single directory anymore with the |
FYI we're starting to build a roadmap for these changes, stay tuned @mchisolm0 |
@mchisolm0 this is available with |
Addressed in #2726. |
🎉 This issue has been resolved in version 10.0.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
When the generator is run, it references certain paths which are different after converting to Expo Router (link).
Relevant frontmatter in the ejs file
When I brought it up, modifying the generator to allow for changing the paths used was brought up.
Is that something you are wanting to consider? If so, I'm happy to help. Otherwise, we can close this issue.
The text was updated successfully, but these errors were encountered: