Setup project structure and configurations
.eslintrc
0 → 100644
.eslintrc.js
deleted
100644 → 0
.prettierrc
0 → 100644
.prettierrc.js
deleted
100644 → 0
App.tsx
deleted
100644 → 0
... | ... | @@ -7,11 +7,19 @@ |
"ios": "react-native run-ios", | ||
"start": "react-native start", | ||
"test": "jest", | ||
"lint": "eslint . --ext .js,.jsx,.ts,.tsx" | ||
"lint": "eslint . --ext .ts,.tsx --fix", | ||
"prettify": "prettier --write src" | ||
}, | ||
"dependencies": { | ||
"@react-native-community/masked-view": "^0.1.10", | ||
"@react-navigation/native": "^5.9.3", | ||
"@react-navigation/stack": "^5.14.3", | ||
"react": "16.13.1", | ||
"react-native": "0.63.4" | ||
"react-native": "0.63.4", | ||
"react-native-gesture-handler": "^1.10.3", | ||
"react-native-reanimated": "^2.0.0", | ||
"react-native-safe-area-context": "^3.2.0", | ||
"react-native-screens": "^2.18.1" | ||
}, | ||
"devDependencies": { | ||
"@babel/core": "^7.8.4", | ||
... | ... | @@ -21,9 +29,14 @@ |
"@types/react-native": "^0.63.2", | ||
"@types/react-test-renderer": "^16.9.2", | ||
"babel-jest": "^25.1.0", | ||
"babel-plugin-module-resolver": "^4.0.0", | ||
"eslint": "^6.5.1", | ||
"husky": "^5.1.3", | ||
"identity-obj-proxy": "^3.0.0", | ||
"jest": "^25.1.0", | ||
"lint-staged": "^10.5.4", | ||
"metro-react-native-babel-preset": "^0.59.0", | ||
"prettier": "^2.2.1", | ||
"react-test-renderer": "16.13.1", | ||
"typescript": "^3.8.3" | ||
}, | ||
... | ... | @@ -39,6 +52,23 @@ |
"jsx", | ||
"json", | ||
"node" | ||
], | ||
"moduleNameMapper": { | ||
".+\\.(css|styl|less|sass|scss|png|jpg|ttf|woff|woff2)$": "identity-obj-proxy" | ||
}, | ||
"setupFiles": [ | ||
"./node_modules/react-native-gesture-handler/jestSetup.js" | ||
] | ||
}, | ||
"husky": { | ||
"hooks": { | ||
"pre-commit": "lint-staged" | ||
} | ||
}, | ||
"lint-staged": { | ||
"*.{ts,tsx}": [ | ||
"yarn run lint", | ||
"yarn run prettify" | ||
] | ||
} | ||
} |
src/app/index.tsx
0 → 100644
src/constants/navigation.ts
0 → 100644
src/constants/routes.ts
0 → 100644
src/scenes/index.ts
0 → 100644