A low-config, low-bloat, moderately opinionated starter/boilerplate for a universal web+mobile app built upon the managed Expo-CLI workflow. It comes with and demonstrates many commonly used UX patterns. All that with exceptional hot-reload support and < 150kb bundle.
For this app, universal means the app works on every device that Expo supports: Web, IOS, and Android.
This app is also the bases of the frontend of our full-stack starter, HookedJS. Hence, the logo for EUSY is a simpler version of HookedJS.
See Project: https://github.com/orgs/hookedjs/projects/1
- An optimized Expo-CLI managed workflow easy developing and testing web and native
- Highly functional, easy to extend development and production environments, including hot-moodule reloading for native AND web. Hot re-loading is delicate with react-native, and expo doesn't support hot reloading on web out of the box.
- Easy and fully-automated development, sharing, publishing and notification features
- Web Bundle analytics with webpack-bundle-analyzer, to hunt down bloated dependencies
- Support .web.tsx and .native.tsx files, for easy platform specific overrides
- Support for styled-jsx in .web.tsx files, for exceptional CSS-in-JSS
- Unified routing api extending react-router
- New unimodules: TextLink for links inside of Text elements
- Native-style Animated transitions with react-router-native-stack.
- We forked it to add unimodule support
- Note: Animations don't currently work on Web during development, but do in Production. See Issue 3.
- Universal UI Kit: react-native-elements. Enhanced for even easier theming.
- SEO thanks to React Helmet
- Package Patches that fix some critical show-stopping bugs and enable better universal support, managed with patch-package
- Advanced Dot Environmental (.env) File Management and Support
- Typescript + TSLint + Prettier + Special TSLint sauce, using mostly default settings.
- Hooks - Fully supported and preferred
- MOBX - Popular, easy, distributed sharable app and component state
- Automated SVG to TSX file Conversion
- Git hooks that clean code, run tests and block broken commits, thanks to Husky and Lint-staged
- Includes a production-grade web server, built on Express
- Continuous Integration and Deployment thanks to Zeit's Now Service
- Jest The most popular JS testing framework
EUSY = An acronym of "Expo Universal Starter" with a 'Y' on the end. It's intentionally misspelled 'easy', so it's a play on words.
First, ensure you have the system dependencies. As of now, MacOS is required in order to develop IOS apps. Also, this boilerplate will likely not work on Windows.
- Install homebrew
- Install nvm
- Install Docker
- Install Xcode from the App Store and open it to accept the user agreement.
- Follow the official React Native instructions to configure your machine for IOS and Android using the "React Native CLI Quickstart" tab, NOT the "Expo CLI Quickstart" tab.
Then, install more dependencies
brew install gnu-sed
brew install postgres
brew install node
brew install watchman
brew tap AdoptOpenJDK/openjdk
brew cask install adoptopenjdk8
nvm install 10
nvm use 10
npm i -g [email protected] yarn
yarn
Now, you can run the development server and build the app.
To run the development service run npx expo start
. After that, you can launch web, IOS or Android using the prompts.
Tips:
- You can't start the Android simulator from the expo-cli. Instead, you have to start it first using Android Studio. Then, expo-cli can find it.
- If the IOS emulator isn't running when you start it from expo, you may see an non-critical error.
- How to open dev tools on simulator: CMD+D for menu in ios Sim, CMD+M for menu in android sim, shake on real devices.
You can easily publish to Expo using npx expo:publish
. To publish to Apple, there are many steps. I recommend you do the following:
- First publish your app to expo
- Ensure you have an Apple developer subscription
- Update app.json with your apps metadata if you haven't
- Follow the expo instructions to bundle and deploy
Tips:
- Application Loader is included with XCode. To open, simple search for it using CMD+Space
- To more easily manage your App Store metadata, you should consider fastlane deliver
You can easily publish to Expo using npx expo:publish
. To publish to Google, there are many steps. I recommend you do the following:
- First publish your app to expo
- Ensure you have an Google Store developer account?
- Update app.json with your apps metadata if you haven't
- Follow the expo instructions to bundle and deploy
- More coming soon