fix: restore the expo router stuff that the autogenerated stuff undid

This commit is contained in:
castdrian
2024-01-15 08:43:44 +01:00
parent 9f4cb15eba
commit 314e739af5
11 changed files with 671 additions and 1246 deletions

View File

@@ -36,3 +36,9 @@ yarn-error.*
# typescript
*.tsbuildinfo
# @generated expo-cli sync-2b81b286409207a5da26e14c78851eb30d8ccbdb
# The following patterns were generated by expo-cli
expo-env.d.ts
# @end expo-cli

View File

@@ -4,6 +4,7 @@
"slug": "mw-mobile",
"version": "1.0.0",
"orientation": "portrait",
"scheme":"dev.movieweb.app",
"icon": "./assets/icon.png",
"splash": {
"image": "./assets/splash.png",
@@ -33,6 +34,7 @@
"bundler": "metro"
},
"plugins": [
"expo-router",
[
"@config-plugins/detox",
{
@@ -43,6 +45,9 @@
]
}
]
]
],
"experiments": {
"typedRoutes": true
}
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 46 KiB

View File

@@ -2,5 +2,9 @@ module.exports = function (api) {
api.cache(true);
return {
presets: ['babel-preset-expo'],
plugins: [
// Required for expo-router
'expo-router/babel',
],
};
};

View File

@@ -1,34 +1,65 @@
{
"name": "mobile",
"version": "0.0.1",
"main": "expo-router/entry",
"version": "1.0.0",
"jest": {
"preset": "jest-expo"
},
"private": true,
"dependencies": {
"@babel/core": "*",
"@expo/metro-config": "*",
"@expo/vector-icons": "*",
"@expo/vector-icons": "^13.0.0",
"@nx/expo": "*",
"@react-navigation/native": "^6.1.9",
"@testing-library/jest-native": "*",
"@testing-library/react-native": "*",
"expo": "*",
"expo-font": "*",
"expo-font": "^11.4.0",
"expo-linking": "^6.0.0",
"expo-router": "^2.0.14",
"expo-splash-screen": "~0.20.5",
"expo-status-bar": "*",
"expo-system-ui": "^2.6.0",
"expo-web-browser": "^12.5.0",
"metro-config": "*",
"pod-install": "*",
"react": "*",
"react-dom": "18.2.0",
"react-native": "*",
"react-native-gesture-handler": "^2.14.1",
"react-native-safe-area-context": "^4.8.2",
"react-native-screens": "^3.29.0",
"react-native-svg": "*",
"react-native-svg-transformer": "*",
"react-native-web": "*",
"@babel/core": "*",
"pod-install": "*"
"react-native-web": "^0.19.10"
},
"scripts": {
"eas-build-pre-install": "cd ../../ && node tools/scripts/eas-build-pre-install.mjs . apps/mobile && cp pnpm-lock.yaml apps/mobile",
"eas-build-post-install": "cd ../../ && node tools/scripts/eas-build-post-install.mjs . apps/mobile",
"android": "expo run:android",
"ios": "expo run:ios"
"ios": "expo run:ios",
"test": "jest --watchAll",
"lint": "eslint . --ext .js,.jsx,.ts,.tsx",
"format": "prettier --write ."
},
"devDependencies": {
"@babel/core": "^7.20.0",
"pod-install": "^0.1.39"
"@rnx-kit/metro-config": "^1.3.14",
"@rnx-kit/metro-resolver-symlinks": "^0.1.34",
"@types/react": "18.0.28",
"eslint-plugin-react": "7.32.2",
"eslint-plugin-react-hooks": "4.6.0",
"jest": "^29.4.1",
"jest-expo": "~49.0.0",
"pod-install": "^0.1.39",
"react-test-renderer": "18.2.0",
"typescript": "~5.2.2"
},
"overrides": {
"react-refresh": "~0.14.0"
},
"resolutions": {
"react-refresh": "~0.14.0"
}
}

View File

@@ -1,9 +0,0 @@
import * as React from 'react';
import { render } from '@testing-library/react-native';
import App from './App';
test('renders correctly', () => {
const { getByTestId } = render(<App />);
expect(getByTestId('heading')).toHaveTextContent('Welcome');
});

View File

@@ -3,7 +3,10 @@
"compilerOptions": {
"allowSyntheticDefaultImports": true,
"jsx": "react-native",
"lib": ["dom", "esnext"],
"lib": [
"dom",
"esnext"
],
"moduleResolution": "node",
"skipLibCheck": true,
"resolveJsonModule": true,
@@ -11,7 +14,10 @@
"declaration": true
},
"files": [],
"include": [],
"include": [
".expo/types/**/*.ts",
"expo-env.d.ts"
],
"references": [
{
"path": "./tsconfig.app.json"

1834
pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff