@36node/template-expo 中文文档教程
Expo Template
它仅在草图初始化后有效。
Framework
DONE
- UI -> React Native -> Expo
- Test -> Jest
- DataFlow -> Redux
- AutoPack -> CircleCi
- Router -> React Navigation
TODO
- Redux -> Redux Saga -> @360node/xxx
- SDK -> Mock
- Style -> Styled-Components(Bugs Here on web, wait for fix)
- Some params in the expo need to be fixed by
sketch init
command.
Guide Line
Pre Actions
- Install
Xcode
andAndroid Studio
- Register on expo
- Register for apple developer(For iOS only)
- Register for Android key? (Need to be confirmed)
- Install Expo on iOS and Android for testing on mobiles
- Install
expo-cli
bynpm install -g expo-cli
oryarn global add expo-cli
How to run
yarn
yarn start
then do as the promotion.- You can make actions such as
Run on iOS simulator
orRun on Android device/emulator
How to run as ios
- Run
yarn start:ios
then iOS simulator will start. - Find
Expo
app on iOS simulator and open it. - Open your app in
Expo
and you will find the page.
How to run as android
On your phone
- Install
expo
on your android phone - Toggle your android phone
debugger mode
toon
. - Plug your android phone to your computer.
- Run
yarn start:android
. - Open
expo
on your phone and start develop.
On the emulator
- Open
Android Studio
and init - Open
Config
=>AVD
- Install a new virtual device
- Start emulator
- Click
Run on Android device/emulator
- Open expo on emulator and start developing
How to test
运行 yarn test
CircleCi
需要设置两个参数。
Workflow
我们依靠世博会来构建包。
你可以去 Expo Documents 详细查看。
Expo Template
It only works after sketch init.
Framework
DONE
- UI -> React Native -> Expo
- Test -> Jest
- DataFlow -> Redux
- AutoPack -> CircleCi
- Router -> React Navigation
TODO
- Redux -> Redux Saga -> @360node/xxx
- SDK -> Mock
- Style -> Styled-Components(Bugs Here on web, wait for fix)
- Some params in the expo need to be fixed by
sketch init
command.
Guide Line
Pre Actions
- Install
Xcode
andAndroid Studio
- Register on expo
- Register for apple developer(For iOS only)
- Register for Android key? (Need to be confirmed)
- Install Expo on iOS and Android for testing on mobiles
- Install
expo-cli
bynpm install -g expo-cli
oryarn global add expo-cli
How to run
yarn
yarn start
then do as the promotion.- You can make actions such as
Run on iOS simulator
orRun on Android device/emulator
How to run as ios
- Run
yarn start:ios
then iOS simulator will start. - Find
Expo
app on iOS simulator and open it. - Open your app in
Expo
and you will find the page.
How to run as android
On your phone
- Install
expo
on your android phone - Toggle your android phone
debugger mode
toon
. - Plug your android phone to your computer.
- Run
yarn start:android
. - Open
expo
on your phone and start develop.
On the emulator
- Open
Android Studio
and init - Open
Config
=>AVD
- Install a new virtual device
- Start emulator
- Click
Run on Android device/emulator
- Open expo on emulator and start developing
How to test
Run yarn test
CircleCi
Need to set two params.
Workflow
We rely on Expo to build packages.
You can go to Expo Documents to have a detailed look.