You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The problem with maintaining template is that it needs to update with every new React Native version, whereas templates could implement their whole custom stuff inside postInitScript and maintainers could avoid extra work with upgrading template.
Template creator could just specify that the template extends default @react-native-community/template and CLI during init will instead of using template files from sourceDir property would copy the one that it extends.
The end results for app user would be the same, but the amount of work that needs to be done from the template maintainers is a lot smaller. It'd probably one time thing.
Possible Implementations
Inside template.config.js add extends property which accept template source (in the same format as --template option) and use it for init.
The text was updated successfully, but these errors were encountered:
szymonrybczak
changed the title
Create extends property to template.config.js
Add ability to extend template inside template.config.js file
Jul 9, 2024
Describe the Feature
The problem with maintaining template is that it needs to update with every new React Native version, whereas templates could implement their whole custom stuff inside
postInitScript
and maintainers could avoid extra work with upgrading template.Template creator could just specify that the template extends default
@react-native-community/template
and CLI duringinit
will instead of using template files fromsourceDir
property would copy the one that it extends.The end results for app user would be the same, but the amount of work that needs to be done from the template maintainers is a lot smaller. It'd probably one time thing.
Possible Implementations
Inside
template.config.js
addextends
property which accept template source (in the same format as--template
option) and use it forinit
.The text was updated successfully, but these errors were encountered: