What you get out of the box with this package
Download the repository and
yarn in the root directory.
Setup (if needed)
- Homebrew, a package manager for macOS.
- Watchman, a file watching service.
- Yarn (recommended), a dependency manager.
- Exponent CLI, a command line interface for Exponent.
- Flow and Prettier CLIs.
All of these packages are to be installed globally.
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew install node watchman yarn flow
yarn global add exp prettier
This repository is maintained and updated regularly with every new SDK release.
Consider using create-react-native-app for a better support.
exp signupif you don’t have an Exponent account.
exp loginsign in to your Exponent account.
yarn startstarts a local server for your app. This command is always needed.
yarn run iosruns your app in the IOS simulator.
yarn start:androidstarts the Android simulator. Modify your simulator ID in
package.json, which you can retrieve through
VBoxManage list vms.
yarn run androidruns your app in the Android simulator.
yarn run lintstarts ESLint error checking.
yarn run flowstarts Flow type checking.
exp build:iosbuilds a standalone IPA for your project, signed and ready for store submission.
exp build:androidbuilds a standalone APK for your project, signed and ready for store submission.
exp publishpublishes your app to the Exponent platform.
yarn run outdated, checks and lists dependencies updates, for your project “and” globally.
yarn run brew, checks and installs Brew, Node, Watchman and Yarn updates.
yarn run clean, kills all DS_Stores.
Writing native code
Refer to the documentation.
- Go through the installation/setup process.
package.jsonwith your project information (detailed configuration here).
exp.jsonwith your project information (detailed configuration here).
- Start working on your app in
- Run your app with
yarn startfollowed by
yarn run ios.
As an alternative to the Exponent CLI, you can use the XDE. The XDE doesn’t provide access to the
Running on simulators
- Make sure that you have the line
export PATH=$PATH:/Applications/Genymotion.app/Contents/MacOS/tools/in your
- Installing Google Play services.
Running on mobile devices
Working with SublimeText
Install the following packages through Package Control:
- SublimeLinter-flow, make sure to configure SublimeLinter to have
"osx": [ "/usr/local/bin/" ] in its list of paths in order to integrate it properly with the global installation of Flow.
Additional SublimeText packages for a better workspace
- All Autocomplete
- Color Highlighter
- Boxy Theme
- zz File Icons