Skip to content

Commit 9a08df2

Browse files
committed
Initial commit
0 parents  commit 9a08df2

23 files changed

+17566
-0
lines changed

.editorconfig

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
root = true
2+
3+
[*]
4+
indent_size = 2
5+
indent_style = tab

.eslintrc

+89
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
{
2+
"root": true,
3+
"extends": [
4+
"plugin:@typescript-eslint/recommended",
5+
"plugin:react/recommended",
6+
"plugin:react-native/all",
7+
"plugin:import/recommended",
8+
"plugin:import/typescript",
9+
"prettier"
10+
],
11+
"plugins": [
12+
"@typescript-eslint",
13+
"react",
14+
"react-native",
15+
"prettier",
16+
"import"
17+
],
18+
"rules": {
19+
"react-native/no-color-literals": "off",
20+
"react-native/no-raw-text": [
21+
"error",
22+
{
23+
"skip": ["Strong"]
24+
}
25+
],
26+
"@typescript-eslint/consistent-type-imports": [
27+
"error",
28+
{
29+
"prefer": "type-imports",
30+
"disallowTypeAnnotations": true,
31+
"fixStyle": "inline-type-imports"
32+
}
33+
],
34+
"import/order": [
35+
"error",
36+
{
37+
"pathGroups": [
38+
{
39+
"pattern": "react",
40+
"group": "builtin",
41+
"position": "before"
42+
},
43+
{
44+
"pattern": "react-native",
45+
"group": "builtin",
46+
"position": "before"
47+
},
48+
{
49+
"pattern": "react-native-*",
50+
"group": "builtin",
51+
"position": "after"
52+
},
53+
{
54+
"pattern": "expo-*",
55+
"group": "builtin",
56+
"position": "before"
57+
}
58+
],
59+
"pathGroupsExcludedImportTypes": ["react", "^react-native$"],
60+
"newlines-between": "always-and-inside-groups",
61+
"groups": [
62+
"type",
63+
"builtin",
64+
"external",
65+
"index",
66+
"parent",
67+
"sibling",
68+
"internal",
69+
"object"
70+
],
71+
"alphabetize": {
72+
"order": "asc",
73+
"orderImportKind": "asc"
74+
}
75+
}
76+
]
77+
},
78+
"settings": {
79+
"import/parsers": {
80+
"@typescript-eslint/parser": [".ts", ".tsx"]
81+
},
82+
"import/internal-regex": "^~/",
83+
"import/resolver": {
84+
"typescript": {
85+
"alwaysTryTypes": true
86+
}
87+
}
88+
}
89+
}

.gitignore

+44
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# Learn more https://docs.github.com/en/get-started/getting-started-with-git/ignoring-files
2+
3+
# dependencies
4+
node_modules/
5+
6+
# Expo
7+
.expo/
8+
dist/
9+
web-build/
10+
11+
# Native
12+
*.orig.*
13+
*.jks
14+
*.p8
15+
*.p12
16+
*.key
17+
*.mobileprovision
18+
19+
# Metro
20+
.metro-health-check*
21+
22+
# debug
23+
npm-debug.*
24+
yarn-debug.*
25+
yarn-error.*
26+
27+
# macOS
28+
.DS_Store
29+
*.pem
30+
31+
# local env files
32+
.env*.local
33+
34+
# typescript
35+
*.tsbuildinfo
36+
37+
# eslint
38+
.eslintcache
39+
40+
# prebuild output
41+
android/
42+
ios/
43+
44+

.nvmrc

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
stable

.prettierrc

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"printWidth": 80,
3+
"useTabs": true,
4+
"tabWidth": 2,
5+
"semi": true,
6+
"trailingComma": "es5",
7+
"jsxSingleQuote": false,
8+
"singleQuote": false,
9+
"bracketSpacing": true,
10+
"bracketSameLine": false,
11+
"arrowParens": "always",
12+
"singleAttributePerLine": true
13+
}

.vscode/settings.json

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"editor.formatOnPaste": false,
3+
"editor.formatOnSave": true,
4+
"editor.defaultFormatter": "esbenp.prettier-vscode",
5+
"editor.codeActionsOnSave": {
6+
"source.fixAll": "always"
7+
}
8+
}

App.tsx

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import React from "react";
2+
3+
import { Providers } from "~/Providers";
4+
import RootStack from "~/router/RootStack";
5+
6+
export default function App() {
7+
return (
8+
<Providers>
9+
<RootStack />
10+
</Providers>
11+
);
12+
}

README.md

+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# Unwind
2+
3+
## What is in the basic setup?
4+
5+
Visuals:
6+
7+
- App icon
8+
- Splash
9+
- Navigating between screens
10+
- Custom font
11+
- Gestures & animations on the UI thread
12+
13+
Libraries:
14+
15+
- [@expo-google-fonts/lato](https://www.npmjs.com/package/@expo-google-fonts/lato)
16+
- [@shopify/react-native-skia](https://www.npmjs.com/package/@shopify/react-native-skia)
17+
- [expo-router](https://www.npmjs.com/package/expo-router)
18+
- [expo-splash-screen](https://www.npmjs.com/package/expo-splash-screen)
19+
- [react-native-gesture-handler](https://www.npmjs.com/package/react-native-gesture-handler)
20+
- [react-native-reanimated](https://www.npmjs.com/package/react-native-reanimated)
21+
- [react-native-safe-area-context](https://www.npmjs.com/package/react-native-safe-area-context)
22+
23+
## Running the app
24+
25+
```bash
26+
npm install
27+
```
28+
29+
## Run Android
30+
31+
```bash
32+
npm run android
33+
```
34+
35+
## iOS
36+
37+
```bash
38+
npm run ios
39+
```

app.json

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
{
2+
"expo": {
3+
"name": "Unwind",
4+
"slug": "unwind",
5+
"version": "1.0.0",
6+
"orientation": "portrait",
7+
"icon": "./assets/icon.png",
8+
"userInterfaceStyle": "dark",
9+
"scheme": "unwind",
10+
"splash": {
11+
"image": "./assets/splash.png",
12+
"resizeMode": "contain",
13+
"backgroundColor": "#141515"
14+
},
15+
"backgroundColor": "#141515",
16+
"assetBundlePatterns": ["**/*"],
17+
"ios": {
18+
"supportsTablet": true,
19+
"bundleIdentifier": "app.unwind"
20+
},
21+
"android": {
22+
"adaptiveIcon": {
23+
"foregroundImage": "./assets/adaptive-icon.png",
24+
"backgroundColor": "#ffffff"
25+
},
26+
"package": "app.unwind"
27+
},
28+
"web": {
29+
"favicon": "./assets/favicon.png",
30+
"bundler": "metro"
31+
},
32+
"experiments": {
33+
"tsconfigPaths": true
34+
}
35+
}
36+
}

assets/adaptive-icon.png

17.8 KB
Loading

assets/favicon.png

1.15 KB
Loading

assets/icon.png

22.1 KB
Loading

assets/splash.png

22.4 KB
Loading

babel.config.js

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
module.exports = (api) => {
2+
api.cache(true);
3+
return {
4+
presets: ["babel-preset-expo"],
5+
plugins: ["react-native-reanimated/plugin"],
6+
};
7+
};

0 commit comments

Comments
 (0)