Skip to content

Commit e217172

Browse files
committed
chore: updated template
1 parent 24ac29a commit e217172

File tree

13 files changed

+115
-96
lines changed

13 files changed

+115
-96
lines changed

.gitignore

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,3 +67,67 @@ template/ios/Podfile.lock
6767
template/android/build/
6868

6969
.DS_Store
70+
71+
# OSX
72+
#
73+
.DS_Store
74+
75+
# Xcode
76+
#
77+
build/
78+
*.pbxuser
79+
!default.pbxuser
80+
*.mode1v3
81+
!default.mode1v3
82+
*.mode2v3
83+
!default.mode2v3
84+
*.perspectivev3
85+
!default.perspectivev3
86+
xcuserdata
87+
*.xccheckout
88+
*.moved-aside
89+
DerivedData
90+
*.hmap
91+
*.ipa
92+
*.xcuserstate
93+
94+
# Android/IntelliJ
95+
#
96+
build/
97+
.idea
98+
.gradle
99+
local.properties
100+
*.iml
101+
102+
# Visual Studio Code
103+
#
104+
.vscode/
105+
106+
# node.js
107+
#
108+
node_modules/
109+
npm-debug.log
110+
yarn-error.log
111+
112+
# BUCK
113+
buck-out/
114+
\.buckd/
115+
*.keystore
116+
!debug.keystore
117+
118+
# fastlane
119+
#
120+
# It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the
121+
# screenshots whenever they are needed.
122+
# For more information about the recommended setup visit:
123+
# https://docs.fastlane.tools/best-practices/source-control/
124+
125+
*/fastlane/report.xml
126+
*/fastlane/Preview.html
127+
*/fastlane/screenshots
128+
129+
# Bundle artifact
130+
*.jsbundle
131+
132+
# CocoaPods
133+
/ios/Pods/

README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -328,8 +328,6 @@ root
328328
└── hooks
329329
| └── useCustomBackBehaviour.tsx
330330
| └── useNetworkError.tsx
331-
| └── useNotification.tsx
332-
| └── usePrevious.tsx
333331
| └── useStartupTime.tsx
334332
| └── useReactQuery.tsx
335333
└── localization

template/.eslintrc.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ module.exports = {
3333
'@typescript-eslint/ban-ts-ignore': 0,
3434
'@typescript-eslint/no-unused-vars': ['warn', { argsIgnorePattern: '^_' }],
3535
'@typescript-eslint/explicit-module-boundary-types': 0,
36+
'react/display-name': 0,
3637
},
3738
settings: {
3839
react: {

template/.gitignore

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ local.properties
3838
node_modules/
3939
npm-debug.log
4040
yarn-error.log
41+
yarn.lock
4142

4243
# BUCK
4344
buck-out/
@@ -62,3 +63,11 @@ buck-out/
6263
# CocoaPods
6364
/ios/Pods/
6465
/ios/Podfile.lock
66+
java_pid*
67+
68+
/ios/sentry.properties
69+
/android/sentry.properties
70+
71+
# GEM
72+
73+
Gemfile.lock

template/App.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ import * as Sentry from '@sentry/react-native';
1010
import codePush, { CodePushOptions } from 'react-native-code-push';
1111
import useNetworkError from 'hooks/useNetworkError';
1212
import useStartupTime from 'hooks/useStartupTime';
13-
// import useNotifications from 'hooks/useNotifications';
1413
import useAppState from 'react-native-appstate-hook';
1514
import { Provider } from 'react-redux';
1615
import store from './src/store';
@@ -32,16 +31,15 @@ if (typeof SENTRY_DSN === 'string' && SENTRY_DSN.length > 0) {
3231
const queryClient = new QueryClient();
3332

3433
const App = () => {
35-
// useNotifications();
36-
3734
useNavigationMounting();
3835

3936
useStartupTime();
4037

4138
useNetworkError();
4239

4340
useAppState({
44-
onChange: (newAppState) => console.warn('App state changed to ', newAppState),
41+
onChange: (newAppState) =>
42+
console.warn('App state changed to ', newAppState),
4543
onForeground: () => console.warn('App went to Foreground'),
4644
onBackground: () => console.warn('App went to background'),
4745
});

template/index.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
declare module '*.png';
22
declare module '*.svg';
3+
declare module 'react-native-user-avatar';
34

45
declare module '@env' {
56
export const ENV: 'dev' | 'prod';

template/package.json

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,23 @@
1313
"detox:ios": "./detox.sh ios",
1414
"detox:android": "./detox.sh android",
1515
"lint": "eslint . --ext .js,.jsx,.ts,.tsx",
16-
"generate": "plop"
16+
"generate": "plop",
17+
"run-android:stagingRelease": "ENVFILE=.env.staging react-native run-android --variant=release",
18+
"run-android:productionRelease": "ENVFILE=.env.prod react-native run-android --variant=release",
19+
"run-ios:stagingRelease": "react-native run-ios --scheme STAGING --configuration Release",
20+
"run-ios:productionRelease": "react-native run-ios --scheme PRODUCTION --configuration Release",
21+
"detox-build:androidRelease": "detox build -c android.emu.release",
22+
"detox-test:androidRelease": "detox test -c android.emu.release",
23+
"detox-build:iosRelease": "detox build -c ios.sim.release",
24+
"detox-test:iosRelease": "detox test -c ios.sim.release",
25+
"bump-patch": "npm version patch --no-git-tag-version && bundle exec fastlane bump_badge",
26+
"bump-minor": "npm version minor --no-git-tag-version && bundle exec fastlane bump_badge",
27+
"bump-major": "npm version major --no-git-tag-version && bundle exec fastlane bump_badge",
28+
"validate-typescript": "tsc --noEmit",
29+
"uninstall-android": "adb uninstall com.helloworld",
30+
"clear-android": "adb shell pm clear com.helloworld",
31+
"uninstall-iOS": "xcrun simctl uninstall booted org.reactjs.native.example.HelloWorld",
32+
"build-qa:android": "bundle exec fastlane android bump_badge_build_staging"
1733
},
1834
"dependencies": {
1935
"@react-native-async-storage/async-storage": "^1.15.4",
@@ -39,6 +55,7 @@
3955
"react-native-flipper": "^0.90.2",
4056
"react-native-gesture-handler": "^1.10.3",
4157
"react-native-keychain": "^6.2.0",
58+
"react-native-paper": "^4.8.1",
4259
"react-native-permissions": "^3.0.1",
4360
"react-native-reanimated": "^2.1.0",
4461
"react-native-safe-area-context": "^3.1.9",
@@ -66,7 +83,7 @@
6683
"@storybook/addon-ondevice-knobs": "^5.3.25",
6784
"@storybook/react-native": "^5.3.25",
6885
"@testing-library/jest-native": "^4.0.1",
69-
"@testing-library/react-hooks": "^5.1.0",
86+
"@testing-library/react-hooks": "^6.0.0",
7087
"@testing-library/react-native": "^7.2.0",
7188
"@types/detox": "^17.14.0",
7289
"@types/jest": "^26.0.20",
@@ -75,6 +92,7 @@
7592
"@types/react-test-renderer": "^16.9.2",
7693
"@types/styled-components-react-native": "^5.1.0",
7794
"@types/styled-system": "^5.1.10",
95+
"babel-core": "^6.26.3",
7896
"babel-jest": "^26.6.3",
7997
"babel-loader": "^8.2.2",
8098
"babel-plugin-module-resolver": "^4.1.0",
@@ -96,6 +114,7 @@
96114
"react-dom": "17.0.1",
97115
"react-native-bundle-visualizer": "^2.2.1",
98116
"react-test-renderer": "17.0.1",
117+
"regenerator-runtime": "^0.13.7",
99118
"typescript": "^3.8.3"
100119
},
101120
"resolutions": {

template/src/components/organisms/CardPeoples.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import { WINDOW_DEVICE_WIDTH } from '@utils/constants';
33
import { Box } from 'components/molecules/Box';
44
import { Button } from 'components/molecules/Button';
55
import { Typography } from 'components/molecules/Typography';
6-
import useReactQuery from 'hooks/useReactQuery';
76
import React, { useEffect } from 'react';
87
import { IPeople } from 'src/interfaces/IPeople';
98
import { myTheme } from 'theme';

template/src/hooks/useNotifications.tsx

Lines changed: 0 additions & 70 deletions
This file was deleted.

template/src/hooks/usePrevious.tsx

Lines changed: 0 additions & 9 deletions
This file was deleted.

0 commit comments

Comments
 (0)