Last Updated: May 19, 2021
In doing so I had to ask the question... how do I actually create an Expo template?
As with all things Expo related, it was simple.
How to Create An Expo Template
As I found out in my research (which consisted of looking at existing Expo templates) I found out that any Expo app can be turned into a template.
Note: You'll need to have the Expo CLI installed.
Then create a new project.
expo init TemplateApp
Next you'll need to actually create the starter/template app you want to use.
In my case I added some components, prettier, eslint, navigation, and project structure.
Publishing the Expo Template
First, make sure to create a good (or at least decent) README so people know how to use the template.
You'll then need to prepare it to be published on NPM.
In summary this means updating your
- Set the
nameproperty to something unique (like
- Give it a description
- Add some keywords
- Add a homepage link
- Add a repository link
- Add a license
- Set the author - give yourself some credit!
And you're set!
Using the Expo Template
Using the template is likewise very easy. Just init the project with the template you published to NPM.
expo init my-app --template @react-native-school/expo-template