Remove extra files

This commit is contained in:
Evan Bacon
2020-01-16 18:44:26 -08:00
parent 7a38179476
commit c630c60548
11 changed files with 16 additions and 5407 deletions

View File

@@ -1,4 +0,0 @@
{
"f9155ac790fd02fadcdeca367b02581c04a353aa6d5aa84409a59f6804c87acd": true,
"89ed26367cdb9b771858e026f2eb95bfdb90e5ae943e716575327ec325f39c44": true
}

View File

@@ -8,9 +8,9 @@ This demo shows you how to setup your universal application to switch between we
- Create Expo project `expo init`
- Install the plugin: `yarn add react-router-dom react-router-native` or `npm install --save react-router-dom react-router-native`
- Create platform specific files to switch between web and native:
- [`react-router.ts`](/react-router.ts) for web.
- [`react-router.native.ts`](/react-router.native.ts) for iOS and Android.
- Now you can use these files to create your universal routes! [Basic Example](App.tsx)
- [`react-router.js`](/react-router.js) for web.
- [`react-router.native.js`](/react-router.native.js) for iOS and Android.
- Now you can use these files to create your universal routes! [Basic Example](App.js)
- [Deployed example](https://5e20d26f3f285b0766a74be2--stupefied-perlman-ca9443.netlify.com/about)
![react-router-native-expo-web-example](/.gh-assets/native-example.png "React Router native expo web example")

View File

@@ -1,30 +1,15 @@
{
"expo": {
"name": "with-react-router",
"slug": "with-react-router",
"privacy": "public",
"sdkVersion": "36.0.0",
"platforms": [
"ios",
"android",
"web"
],
"version": "1.0.0",
"orientation": "portrait",
"icon": "./assets/icon.png",
"icon": "https://d1wp6m56sqw74a.cloudfront.net/~assets/c9aa1be8a6a6fe81e20c3ac4106a2ebc",
"splash": {
"image": "./assets/splash.png",
"resizeMode": "contain",
"backgroundColor": "#ffffff"
},
"updates": {
"fallbackToCacheTimeout": 0
},
"assetBundlePatterns": [
"**/*"
],
"ios": {
"supportsTablet": true
"image": "https://d1wp6m56sqw74a.cloudfront.net/~assets/c9aa1be8a6a6fe81e20c3ac4106a2ebc"
}
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.0 KiB

View File

@@ -1,28 +1,21 @@
{
"main": "node_modules/expo/AppEntry.js",
"scripts": {
"start": "expo start",
"android": "expo start --android",
"ios": "expo start --ios",
"web": "expo start --web",
"eject": "expo eject"
"build": "expo build:web",
"deploy": "npx netlify deploy --dir web-build"
},
"dependencies": {
"expo": "~36.0.0",
"react": "~16.9.0",
"react-dom": "~16.9.0",
"expo": "36.0.0",
"react": "16.9.0",
"react-dom": "16.9.0",
"react-native": "https://github.com/expo/react-native/archive/sdk-36.0.0.tar.gz",
"react-native-screens": "2.0.0-alpha.12",
"react-native-web": "~0.11.7",
"react-router-dom": "^5.1.2",
"react-router-native": "^5.1.2"
"react-native-web": "0.11.7",
"react-router-dom": "5.1.2",
"react-router-native": "5.1.2"
},
"devDependencies": {
"@babel/core": "^7.0.0",
"@types/react": "~16.9.0",
"@types/react-native": "~0.60.23",
"babel-preset-expo": "~8.0.0",
"typescript": "~3.6.3"
"@babel/core": "7.0.0",
"babel-preset-expo": "8.0.0"
},
"private": true
"license": "ISC"
}

View File

@@ -1,11 +0,0 @@
{
"compilerOptions": {
"allowSyntheticDefaultImports": true,
"jsx": "react-native",
"lib": ["dom", "esnext"],
"moduleResolution": "node",
"noEmit": true,
"skipLibCheck": true,
"resolveJsonModule": true
}
}

File diff suppressed because it is too large Load Diff