Skip to content

Not able to init custom template #5

Description

@Norfeldt

This might be the wrong place to post but tried following your example on how to make a react-native template.

Created a blank project template "TemplateExample" and dumped some fonts in a src/fonts folder (don't link it since I removed the ios and android folder).

Cleaned the package.json to

{
"name": "react-native-template-TemplateExample",
"version": "0.0.1"
}

Went out of the project folder (to the root that contains the TemplateExample folder) and tried

▶ react-native init test --template TemplateExample
...
Error: Command failed: yarn add react-native-template-TemplateExample --ignore-scripts

also tried

▶ react-native init test --template file://TemplateExample
...
Error: Command failed: yarn add file://TemplateExample --ignore-scripts

what am I doing wrong?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions