Exporting and Publishing Your Project

Export

Once you've built your app, it's time to export your project out of Draftbit and onto your own machine. Click "View Code" at the top of the screen and then click "Export Project".

If you're not set up with Expo CLI then now is the perfect time to do so.

Installing Expo CLI

Open up your terminal and enter yarn global add expo-cli or npm install -g expo-cli.

Running Your Project

In the terminal, navigate into the project directory and run yarn install to install all the necessary dependencies. Then, run expo start. A new tab will open in your browser that will give you a QR code to scan to view your project on your phone. Additionally, you can click Run on Android device/emulator or Run on iOS simulator and Expo will start the project in Android Studio or XCode if they are installed on your computer.

The QR code will also be generated in the terminal along with a menu of options.

Publishing your Project

To publish your project, run the command expo publish in your project's directory in the terminal. You can read more on publishing in Expo's docs.


Did this page help you?