Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
123 changes: 123 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,123 @@
{
"env": {
"browser": true,
"es2021": true,
"node": true
},
"settings": {
"react": {
"version": "detect"
}
},
"extends": [
"eslint:recommended",
"plugin:react/recommended",
"plugin:react-hooks/recommended",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking"
],
"overrides": [
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module",
"project": "tsconfig.json"
},
"plugins": [
"react",
"react-hooks",
"simple-import-sort",
"sort-keys-fix",
"@typescript-eslint"
],
"rules": {
"indent": [
"error",
"tab"
],
"linebreak-style": [
"error",
"unix"
],
"quotes": [
"error",
"single"
],
"semi": [
"error",
"never"
],
"no-empty-function": "off",
"@typescript-eslint/no-empty-function": "off",
"no-unused-vars": 1,
"no-redeclare": 1,
"no-console": 1,
"max-lines": [
"error",
500
],
"max-depth": [
"error",
4
],
"max-len": [
"error",
{
"code": 80,
"ignoreUrls": true
}
],
"object-curly-newline": [
"error",
{
"ObjectExpression": "always",
"ImportDeclaration": "never"
}
],
"comma-spacing": [
"error",
{
"before": false,
"after": true
}
],
"arrow-body-style": [
"error",
"as-needed"
],
"curly": [
"error",
"multi",
"consistent"
],
"brace-style": "error",
"object-curly-spacing": [
"error",
"always"
],
"simple-import-sort/imports": "error",
"simple-import-sort/exports": "error",
"sort-keys-fix/sort-keys-fix": "warn",
"max-lines-per-function": [
"error",
{
"max": 30,
"skipBlankLines": true,
"skipComments": true
}
],
"multiline-comment-style": [
"error",
"separate-lines"
],
"no-unneeded-ternary": [
"error",
{
"defaultAssignment": false
}
],
"no-duplicate-imports": "error"
}
}
15 changes: 15 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
node_modules/
.expo/
.expo-shared
dist/
npm-debug.*
*.jks
*.p8
*.p12
*.key
*.mobileprovision
*.orig.*
web-build/

# macOS
.DS_Store
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npm run lint-staged
3 changes: 3 additions & 0 deletions .idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions .idea/molei.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 18 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
*.jpg
node_modules/
.expo/
.expo-shared
dist/
npm-debug.*
*.jks
*.p8
*.p12
*.key
*.mobileprovision
*.orig.*
web-build/
build
coverage

# macOS
.DS_Store
12 changes: 12 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
},
"eslint.format.enable": true,
"eslint.workingDirectories": [
"./"
],
"files.exclude": {
"**/.git": false
}
}
24 changes: 24 additions & 0 deletions App.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
import { StatusBar } from 'expo-status-bar'
import React, { StyleSheet, Text, View } from 'react-native'

const App = () => (
<View style={styles.container}>
<Text style={styles.text}>i made rn app</Text>
<StatusBar style="auto" />
</View>
)

const styles = StyleSheet.create({
container: {
alignItems: 'center',
backgroundColor: '#fff',
flex: 1,
fontSize: 50,
justifyContent: 'center',
},
text: {
fontSize: 50,
}
})

export default App
Binary file added android/.gradle/6.8/fileChanges/last-build.bin
Binary file not shown.
Binary file added android/.gradle/6.8/fileHashes/fileHashes.lock
Binary file not shown.
Empty file.
Binary file added android/.gradle/checksums/checksums.lock
Binary file not shown.
Empty file.
Empty file.
6 changes: 6 additions & 0 deletions android/.idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

115 changes: 115 additions & 0 deletions android/.idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

33 changes: 33 additions & 0 deletions app.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"expo": {
"name": "molei",
"slug": "molei",
"version": "1.0.0",
"orientation": "portrait",
"icon": "./assets/icon.png",
"userInterfaceStyle": "light",
"splash": {
"image": "./assets/splash.png",
"resizeMode": "contain",
"backgroundColor": "#ffffff"
},
"updates": {
"fallbackToCacheTimeout": 0
},
"assetBundlePatterns": [
"**/*"
],
"ios": {
"supportsTablet": true
},
"android": {
"adaptiveIcon": {
"foregroundImage": "./assets/adaptive-icon.png",
"backgroundColor": "#FFFFFF"
}
},
"web": {
"favicon": "./assets/favicon.png"
}
}
}
Binary file added 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 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 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 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.
Loading