mirror of
https://github.com/zhigang1992/react-navigation.git
synced 2026-04-24 04:25:34 +08:00
Add NavigationPlayground Expo Demo (#1523)
* use react-navigation as dependency * add expo based playground app * name expo playground demo in the docs * add ci task to deploy playground demo
This commit is contained in:
committed by
Adam Miskiewicz
parent
ed0a818aee
commit
b19beda0a7
8
examples/ExpoNavigationPlayground/.babelrc
Normal file
8
examples/ExpoNavigationPlayground/.babelrc
Normal file
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"presets": ["babel-preset-expo"],
|
||||
"env": {
|
||||
"development": {
|
||||
"plugins": ["transform-react-jsx-source"]
|
||||
}
|
||||
}
|
||||
}
|
||||
3
examples/ExpoNavigationPlayground/.gitignore
vendored
Normal file
3
examples/ExpoNavigationPlayground/.gitignore
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
node_modules/**/*
|
||||
.expo/*
|
||||
npm-debug.*
|
||||
1
examples/ExpoNavigationPlayground/.watchmanconfig
Normal file
1
examples/ExpoNavigationPlayground/.watchmanconfig
Normal file
@@ -0,0 +1 @@
|
||||
{}
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 13 KiB |
24
examples/ExpoNavigationPlayground/exp.json
Normal file
24
examples/ExpoNavigationPlayground/exp.json
Normal file
@@ -0,0 +1,24 @@
|
||||
{
|
||||
"name": "NavigationPlayground",
|
||||
"description": "Try out react-navigation now with this awesome playground",
|
||||
"slug": "NavigationPlayground",
|
||||
"privacy": "public",
|
||||
"sdkVersion": "16.0.0",
|
||||
"version": "1.0.0",
|
||||
"orientation": "portrait",
|
||||
"primaryColor": "#cccccc",
|
||||
"icon": "./assets/icons/react-navigation.png",
|
||||
"loading": {
|
||||
"icon": "./assets/icons/react-navigation.png",
|
||||
"hideExponentText": false
|
||||
},
|
||||
"packagerOpts": {
|
||||
"assetExts": [
|
||||
"ttf",
|
||||
"mp4"
|
||||
]
|
||||
},
|
||||
"ios": {
|
||||
"supportsTablet": true
|
||||
}
|
||||
}
|
||||
4
examples/ExpoNavigationPlayground/main.js
Normal file
4
examples/ExpoNavigationPlayground/main.js
Normal file
@@ -0,0 +1,4 @@
|
||||
import Expo from 'expo';
|
||||
import App from 'NavigationPlayground/js/App';
|
||||
|
||||
Expo.registerRootComponent(App);
|
||||
14
examples/ExpoNavigationPlayground/package.json
Normal file
14
examples/ExpoNavigationPlayground/package.json
Normal file
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"name": "ExpoNavigationPlayground",
|
||||
"version": "0.0.0",
|
||||
"description": "Hello Expo!",
|
||||
"author": null,
|
||||
"private": true,
|
||||
"main": "main.js",
|
||||
"dependencies": {
|
||||
"expo": "16.0.0",
|
||||
"react": "16.0.0-alpha.6",
|
||||
"react-native": "https://github.com/expo/react-native/archive/sdk-16.0.0.tar.gz",
|
||||
"NavigationPlayground": "file:../NavigationPlayground"
|
||||
}
|
||||
}
|
||||
@@ -5,3 +5,5 @@ A playground for experimenting with react-navigation in a pure-JS React Native a
|
||||
## Usage
|
||||
|
||||
Please see the [Contributors Guide](https://github.com/react-community/react-navigation/blob/master/docs/guides/Contributors.md#development) for instructions on running these example apps.
|
||||
|
||||
You can view this example application directly on your phone by visiting [our expo demo](https://exp.host/@react-navigation/NavigationPlayground).
|
||||
|
||||
@@ -8,12 +8,12 @@
|
||||
"dependencies": {
|
||||
"react": "16.0.0-alpha.6",
|
||||
"react-native": "^0.44.0",
|
||||
"react-native-vector-icons": "^4.1.1"
|
||||
"react-native-vector-icons": "^4.1.1",
|
||||
"react-navigation": "file:../.."
|
||||
},
|
||||
"devDependencies": {
|
||||
"babel-jest": "^20.0.1",
|
||||
"jest": "^20.0.1",
|
||||
"react-navigation": "file:../..",
|
||||
"react-test-renderer": "^15.5.4"
|
||||
},
|
||||
"jest": {
|
||||
|
||||
Reference in New Issue
Block a user