Skip to content
This repository was archived by the owner on Jul 7, 2024. It is now read-only.

Commit

Permalink
added expo app with ts and eslint configs
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonLoir committed Feb 21, 2024
1 parent 2ea3b4c commit 36de1e3
Show file tree
Hide file tree
Showing 14 changed files with 14,552 additions and 3,606 deletions.
9 changes: 9 additions & 0 deletions apps/app/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
/** @type {import("eslint").Linter.Config} */
module.exports = {
root: true,
extends: ['@repo/eslint-config/expo.js'],
parser: '@typescript-eslint/parser',
parserOptions: {
project: true,
},
};
35 changes: 35 additions & 0 deletions apps/app/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# Learn more https://docs.github.com/en/get-started/getting-started-with-git/ignoring-files

# dependencies
node_modules/

# Expo
.expo/
dist/
web-build/

# Native
*.orig.*
*.jks
*.p8
*.p12
*.key
*.mobileprovision

# Metro
.metro-health-check*

# debug
npm-debug.*
yarn-debug.*
yarn-error.*

# macOS
.DS_Store
*.pem

# local env files
.env*.local

# typescript
*.tsbuildinfo
11 changes: 11 additions & 0 deletions apps/app/App.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import { StatusBar } from 'expo-status-bar';
import { Text, View } from 'react-native';

export default function App() {
return (
<View>
<Text>Open up App.tsx to start working on your app!</Text>
<StatusBar style='auto' />
</View>
);
}
30 changes: 30 additions & 0 deletions apps/app/app.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"expo": {
"name": "app",
"slug": "app",
"version": "1.0.0",
"orientation": "portrait",
"icon": "./assets/icon.png",
"userInterfaceStyle": "light",
"splash": {
"image": "./assets/splash.png",
"resizeMode": "contain",
"backgroundColor": "#ffffff"
},
"assetBundlePatterns": [
"**/*"
],
"ios": {
"supportsTablet": true
},
"android": {
"adaptiveIcon": {
"foregroundImage": "./assets/adaptive-icon.png",
"backgroundColor": "#ffffff"
}
},
"web": {
"favicon": "./assets/favicon.png"
}
}
}
Binary file added apps/app/assets/adaptive-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added apps/app/assets/favicon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added apps/app/assets/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added apps/app/assets/splash.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions apps/app/babel.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
module.exports = function (api) {
api.cache(true);
return {
presets: ['babel-preset-expo'],
};
};
27 changes: 27 additions & 0 deletions apps/app/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"name": "app",
"version": "1.0.0",
"main": "node_modules/expo/AppEntry.js",
"scripts": {
"start": "expo start",
"android": "expo start --android",
"ios": "expo start --ios",
"web": "expo start --web",
"lint": "eslint . --max-warnings 0"
},
"dependencies": {
"expo": "~50.0.7",
"expo-status-bar": "~1.11.1",
"react": "18.2.0",
"react-native": "0.73.4"
},
"devDependencies": {
"@babel/core": "^7.20.0",
"@types/react": "~18.2.45",
"eslint": "^8.56.0",
"typescript": "^5.3.3",
"@repo/eslint-config": "^0.0.0",
"@repo/typescript-config": "^0.0.0"
},
"private": true
}
7 changes: 7 additions & 0 deletions apps/app/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"extends": "@repo/typescript-config/base.json",
"compilerOptions": {
"strict": true
},
"exclude": ["node_modules", "dist"]
}
Loading

0 comments on commit 36de1e3

Please sign in to comment.