Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CHORE: Prepare native base to remove #37

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
180 commits
Select commit Hold shift + click to select a range
8fb276d
chore/add Providers component which cointains all providers in the app
mario688 Oct 24, 2022
4e9411c
chore/add AppLoading logic, version coponent and fixes
mario688 Oct 25, 2022
085c763
feat: integrate Reactotron debug tool
MSzalowski Oct 25, 2022
307d11a
chore/upgrade native-base
mario688 Oct 25, 2022
702f6ef
fix ts error with expo config
Oct 25, 2022
515c281
add todohighlight workspace settings
Oct 25, 2022
555be60
feat/add KeyboardawareScrollView
mario688 Oct 25, 2022
eea6961
Merge pull request #3 from binarapps/chore/upgrade_nativeBase
MateuszRostkowski Oct 25, 2022
7bcb055
Merge branch 'main' into chore/add_keyboardAwareScrollView
MateuszRostkowski Oct 25, 2022
a7821e6
Merge branch 'main' into chore/providers_component
MateuszRostkowski Oct 25, 2022
cdc5d19
Merge branch 'main' into chore/add_keyboardAwareScrollView
mario688 Oct 25, 2022
65abfa8
add jest mock
mario688 Oct 25, 2022
87dc870
Merge branch 'chore/add_keyboardAwareScrollView' of https://github.co…
mario688 Oct 25, 2022
6461c53
chore: update readme
MateuszRostkowski Oct 25, 2022
30853e2
Merge pull request #1 from binarapps/chore/providers_component
MateuszRostkowski Oct 25, 2022
c523d60
chore/add patch for KeyboardAwareScollView
mario688 Oct 25, 2022
c427a6d
add eas build / upload config, make available environment switching
Oct 26, 2022
dd21790
Merge branch 'main' into chore/env-config
Oct 26, 2022
03b6ad5
remove registerAppComponent
Oct 26, 2022
bbfb931
featch/add logic for downloading data from BE
mario688 Oct 26, 2022
a70f727
fix/import
mario688 Oct 27, 2022
784aaa6
Merge pull request #4 from binarapps/chore/add_keyboardAwareScrollView
MateuszRostkowski Oct 27, 2022
ce210bd
Merge remote-tracking branch 'origin/main' into feat/reactotron-integ…
MateuszRostkowski Oct 27, 2022
ffb19db
fix/move type
mario688 Oct 27, 2022
d74d78f
Merge pull request #2 from binarapps/feat/reactotron-integration
MateuszRostkowski Oct 27, 2022
af4a16c
add remix icons set as icomoon font
Oct 27, 2022
e7bf1ef
remove schema from app.config.ts, and link to eas json docs
Oct 27, 2022
bf43743
Merge branch 'main' into chore/env-config
Oct 27, 2022
3bda43d
fix: change import of reactotron
MateuszRostkowski Oct 27, 2022
1c9a211
Merge branch 'chore/env-config' into chore/icon_font
Oct 27, 2022
550a3bd
fix require cycle warning
Oct 27, 2022
f6b1e89
Merge pull request #5 from binarapps/chore/env-config
MateuszRostkowski Oct 27, 2022
3633cf0
Merge remote-tracking branch 'origin/main' into feat/React_query
MateuszRostkowski Oct 27, 2022
1f3bb7f
fix: rename apiClient
MateuszRostkowski Oct 27, 2022
b66a9e6
Merge pull request #6 from binarapps/feat/React_query
MateuszRostkowski Oct 27, 2022
4b20479
Merge remote-tracking branch 'origin/chore/icon_font'
MateuszRostkowski Oct 27, 2022
011487b
add native base patch for preventing console errors
MateuszRostkowski Oct 27, 2022
32eb7cf
bump packages versions
MateuszRostkowski Oct 27, 2022
7a9ba84
refactor icon component
MateuszRostkowski Oct 27, 2022
96c0f41
update pre-commit script
MateuszRostkowski Oct 27, 2022
719f102
update contributors
MateuszRostkowski Oct 27, 2022
cab8076
fix: change iosBundleIdentifier
MateuszRostkowski Nov 3, 2022
0f3c5dd
added alert working on web
zagoorland Nov 4, 2022
75d4c8e
fix/bottomsheet for web
mario688 Nov 5, 2022
03ed464
chore: publish package to npm
MateuszRostkowski Nov 12, 2022
1ed8191
chore: update readme
MateuszRostkowski Nov 12, 2022
1105921
chore: update readme
MateuszRostkowski Nov 12, 2022
a93db3d
chore: update readme
MateuszRostkowski Nov 12, 2022
269fb53
chore: update readme
MateuszRostkowski Nov 12, 2022
74a22f6
chore: prepare app for expo deployment
MateuszRostkowski Nov 14, 2022
047b066
feat(expo-notifications): handle expo-notifications
MSzalowski Nov 16, 2022
e39d829
feat(expo-notifications): resolve rebase/merge conflicts
MSzalowski Nov 16, 2022
7502a9d
feat(expo-notifications): update docs
MSzalowski Nov 17, 2022
5748a86
feat: add possibility to pick system color scheme
MateuszRostkowski Nov 18, 2022
e4fca67
fix: improve navigation types
MateuszRostkowski Nov 18, 2022
b6d57d2
Merge pull request #8 from binarapps/fix/prevent-go-back-web
MateuszRostkowski Nov 18, 2022
48b06f9
chore: refactor alert polyfill
MateuszRostkowski Nov 18, 2022
f137c6a
Merge pull request #9 from binarapps/feat/rn-web
MateuszRostkowski Nov 18, 2022
373121d
fix: get rid of haptics error on web
MateuszRostkowski Nov 18, 2022
227cade
chore: add comment about reactotron working
MateuszRostkowski Nov 18, 2022
fccf4a0
Merge remote-tracking branch 'origin/main' into feat/system_color_scheme
MateuszRostkowski Nov 19, 2022
73d8de3
Merge pull request #12 from binarapps/feat/system_color_scheme
MateuszRostkowski Nov 21, 2022
0e991f6
Merge remote-tracking branch 'origin/main' into feat/expo-notifications
MSzalowski Nov 22, 2022
078ba51
fix(expo-notifications): fix background notifications on android; cre…
MSzalowski Nov 24, 2022
22e5433
feat(expo-notifications): apply review comments changes
MSzalowski Nov 24, 2022
aec56a9
Merge pull request #10 from binarapps/feat/expo-notifications
MateuszRostkowski Nov 24, 2022
878bc57
feat(language-switch): create language picker component
MSzalowski Nov 21, 2022
2e98e25
feat(language-switch): update docs
MSzalowski Nov 22, 2022
43f9483
feat(language-switch): remove unnecessary language keys variable
MSzalowski Nov 22, 2022
2899e5d
chore(web_navigator): add web navigator
Karol-Andracki Dec 11, 2022
c4762e5
Merge pull request #13 from binarapps/feat/add-language-switch
MateuszRostkowski Dec 14, 2022
83a126a
feat(linking): handle deeplink in notification
MSzalowski Nov 17, 2022
b636620
fix(linking): fix tests
MSzalowski Nov 22, 2022
bffaad7
feat(linking): apply notifications changes
MSzalowski Nov 24, 2022
33b09c6
chore(linking): remove deeplink from return in useNotificationSetup
MSzalowski Dec 14, 2022
9897214
chore(web_navigator): rename enums
Karol-Andracki Dec 15, 2022
96e856f
Merge pull request #11 from binarapps/feat/handle-deeplinks-in-notifi…
MateuszRostkowski Dec 22, 2022
7590d89
Merge remote-tracking branch 'origin/main' into chore/web_navigator
MateuszRostkowski Dec 22, 2022
6e52a5d
fix: improve typings for navigation
MateuszRostkowski Dec 22, 2022
c2cf155
fix: update libraries
MateuszRostkowski Dec 22, 2022
4b182b2
chore: hide webstorm files
MateuszRostkowski Dec 22, 2022
e9ad723
chore: hide webstorm files
MateuszRostkowski Dec 22, 2022
06276f4
chore: refactor navigation
MateuszRostkowski Dec 22, 2022
5b0b70e
upgraded expo to v47
zagoorland Dec 27, 2022
cc9b48d
add some loaders and add to components screen
Jan 3, 2023
20ce489
chore: change app name
MateuszRostkowski Jan 4, 2023
40c18ad
fix: change screen titles
MateuszRostkowski Jan 4, 2023
aceaa23
chore: improve notifications logic
MateuszRostkowski Jan 4, 2023
090ff7f
chore: refactor screens for web and mobile
MateuszRostkowski Jan 4, 2023
12e4e89
chore: add fixme comment for the future
MateuszRostkowski Jan 4, 2023
cf6d669
chore: rename bottomsheets folder
MateuszRostkowski Jan 4, 2023
2044b7a
chore: revert wrong commited code
MateuszRostkowski Jan 4, 2023
cbad7d0
updated rest of the libs and files
zagoorland Jan 9, 2023
f796e66
deleted deprecated types
zagoorland Jan 9, 2023
6276e15
Merge pull request #15 from binarapps/expo-47
MateuszRostkowski Jan 10, 2023
6d9f41f
Merge branch 'main' into web_navigator-v47
zagoorland Jan 11, 2023
8811a44
Merge pull request #17 from binarapps/web_navigator-v47
MateuszRostkowski Jan 12, 2023
194d526
fix: make navigation work without typescript issues
MateuszRostkowski Jan 12, 2023
1231da7
improve build flow settings
Jan 13, 2023
55239dc
Merge branch 'main' into chore/build-flow-improvement
Jan 13, 2023
05c9c85
Merge pull request #18 from binarapps/fix/web_navigation
MateuszRostkowski Jan 18, 2023
20289b1
chore: simplify navigation of the app
MateuszRostkowski Jan 18, 2023
32cbfc9
Merge pull request #20 from binarapps/fix/web_navigation
MateuszRostkowski Jan 25, 2023
ac09cab
fix/i18n_language_detector: fixed i18n user language detection, and f…
andrzejzab Jan 27, 2023
b40110f
fix/contextRef_typing: authContextRef typing fixed, removed redundant…
andrzejzab Jan 30, 2023
d0e11b9
fix: get rid of eslint error
MateuszRostkowski Jan 30, 2023
53b5226
chore: add some usefull hooks
MateuszRostkowski Jan 30, 2023
1943d8e
fix: improve keyboard scroll component
MateuszRostkowski Jan 30, 2023
529dd04
feat: improve ux on auth screens
MateuszRostkowski Jan 30, 2023
50954b2
chore: add temporary values to sign in form
MateuszRostkowski Jan 30, 2023
d37d6b9
fix: fixes after code review
MateuszRostkowski Jan 30, 2023
779de9c
chore: remove react-native-keyboard-aware-scroll-view package
MateuszRostkowski Jan 30, 2023
b8a6bfb
Merge branch 'main' into chore/build-flow-improvement
MateuszRostkowski Jan 30, 2023
c66daa4
Merge pull request #21 from binarapps/fix/i18n_language_detector
MateuszRostkowski Jan 31, 2023
3bb1bf2
Merge pull request #22 from binarapps/fix/contextRef_typing
MateuszRostkowski Jan 31, 2023
e50c779
Merge pull request #19 from binarapps/chore/build-flow-improvement
MateuszRostkowski Jan 31, 2023
6372d09
chore: update version
MateuszRostkowski Jan 31, 2023
8d285c6
CR fixes
Feb 1, 2023
0d0bd7d
Merge branch 'main' into craete-loaders
vercia Feb 1, 2023
e8fdcf3
add missing key to map
Feb 1, 2023
ca180a8
Merge branch 'craete-loaders' of https://github.com/binarapps/expo-ts…
Feb 1, 2023
e7689db
fix: add file extention to images
MateuszRostkowski Feb 9, 2023
86fe879
chore/fix_eas_scripts_to_point_correct_profiles: fixed eas scripts in…
andrzejzab Feb 24, 2023
585bb88
Merge pull request #24 from binarapps/chore/fix_eas_scripts_to_point_…
MateuszRostkowski Mar 2, 2023
d911881
fix: imporve scroll behavior for screens with keyboard
MateuszRostkowski Mar 5, 2023
33dd0d1
chore: remove unused prop
MateuszRostkowski Mar 5, 2023
508b183
chore: refactor forms logic
MateuszRostkowski Mar 5, 2023
061002e
Merge pull request #23 from binarapps/chore/scroll_keyboard
MateuszRostkowski Mar 5, 2023
88f5507
Merge pull request #16 from binarapps/craete-loaders
MateuszRostkowski Mar 5, 2023
3c5c8c1
chore: update readme
MateuszRostkowski Mar 5, 2023
6402cff
chore: update readme
MateuszRostkowski Mar 6, 2023
446d2d5
chore: publish 1.5.0 version
MateuszRostkowski Mar 6, 2023
152d2b2
fix: get rid of JSX types issues
MateuszRostkowski Mar 15, 2023
1bbaa24
feat: change logo of the project
MateuszRostkowski Mar 15, 2023
80c6195
chore: publish 1.5.1 version
MateuszRostkowski Mar 15, 2023
4e5308e
chore: center logo in Readme
MateuszRostkowski Mar 15, 2023
999e3e6
feat: deploy to netlify
MateuszRostkowski Mar 22, 2023
c3e567c
Merge branch 'main' of github.com:binarapps/expo-ts-template
MateuszRostkowski Mar 22, 2023
ee47c54
wip: work on screen generators
MateuszRostkowski Mar 22, 2023
ce7126e
wip: work on screen generators
MateuszRostkowski Mar 22, 2023
78d9c92
wip: work on screen generators
MateuszRostkowski Mar 22, 2023
5f6c658
wip: work on screen generators
MateuszRostkowski Mar 22, 2023
2fb1984
Merge branch 'scripts/screen_generator' of https://github.com/binarap…
Mar 23, 2023
54d4017
script generator
Mar 28, 2023
18023bb
fix
Mar 28, 2023
c1b340e
ignore types
Mar 29, 2023
b8cbafa
delete enums.js file
Mar 30, 2023
f14d40c
scrypt for component generator/ translations/ component template
Mar 31, 2023
d64e42c
Merge pull request #26 from binarapps/scripts/screen_generator
MateuszRostkowski Apr 6, 2023
39b8ed5
Merge remote-tracking branch 'origin/main' into scripts/component_gen…
MateuszRostkowski Apr 6, 2023
82e76d3
Merge pull request #27 from binarapps/scripts/component_generator
MateuszRostkowski Apr 6, 2023
4226b73
Scripts/bootstrap (#28)
Sworzen1 Apr 6, 2023
534296c
chore: improve create new screen script
MateuszRostkowski Apr 9, 2023
380e318
chore: release 1.6.0 version
MateuszRostkowski Apr 9, 2023
3d06544
chore: update readme
MateuszRostkowski Apr 9, 2023
b132eef
chore: release 1.6.1 version
MateuszRostkowski Apr 9, 2023
74429dd
chore: update readme
MateuszRostkowski Apr 18, 2023
4506970
chore: update bootstrap script
MateuszRostkowski Apr 21, 2023
baf4c2f
chore: improve bootstrap script
MateuszRostkowski May 13, 2023
3e7e9c2
merge branches
MateuszRostkowski May 13, 2023
a22b2cf
chore: release 1.6.2 version
MateuszRostkowski May 13, 2023
60a6f95
chore: improve alert types
MateuszRostkowski May 25, 2023
1548a64
fix: display images on wev properly
MateuszRostkowski May 25, 2023
b2bad94
fix: import proper types for bottom tab navigation
MateuszRostkowski May 25, 2023
36849e8
chore: improve web navigation
MateuszRostkowski May 25, 2023
c688930
chore: update readme
MateuszRostkowski May 25, 2023
87998bc
feat: change package json when bootstrapping project
MateuszRostkowski May 25, 2023
62ac852
chore: release 1.6.3 version
MateuszRostkowski May 25, 2023
222ca72
chore: update expo version from 47 to 48
MateuszRostkowski Jun 16, 2023
6f227c8
chore: update packages
MateuszRostkowski Jun 16, 2023
6f89d5e
chore: update test packages
MateuszRostkowski Jun 16, 2023
98cbe7c
chore: release 1.6.2 version
MateuszRostkowski Jun 16, 2023
ffe119f
Merge branch 'main' of github.com:binarapps/expo-ts-template
MateuszRostkowski Jun 16, 2023
e12cdb0
chore: release 1.6.4 version
MateuszRostkowski Jun 16, 2023
a0bbb37
chore: update readme
MateuszRostkowski Jun 16, 2023
a523b76
Update README.md
MateuszRostkowski Jul 11, 2023
647a9fe
chore/upgrade-expo-49 (#30)
Sworzen1 Jul 25, 2023
daa0a5b
chore: fix typos and update readme (#32)
MSzalowski Aug 4, 2023
efea59b
feature/init test form screen (#31)
Sworzen1 Aug 21, 2023
bc70090
chore: reorginize imports
MateuszRostkowski Aug 23, 2023
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
1 change: 1 addition & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ENVIRONMENT=qa
1 change: 1 addition & 0 deletions .env.production
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ENVIRONMENT=production
1 change: 1 addition & 0 deletions .env.qa
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ENVIRONMENT=qa
1 change: 1 addition & 0 deletions .env.staging
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ENVIRONMENT=staging
5 changes: 4 additions & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
node_modules/
.eslintrc.js
.eslintrc.js
babel.config.js
webpack.config.js

2 changes: 1 addition & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ module.exports = {
'react-native/no-raw-text': [
2,
{
skip: ['Button', 'Heading'],
skip: ['Button', 'Heading', 'Menu.Item'],
},
],
},
Expand Down
15 changes: 14 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,23 @@ npm-debug.*
*.orig.*
web-build/

# webstorm
.idea/

# macOS
.DS_Store

# yarn
yarn-error.log

dist/
dist/

# project files

# CONFIG: uncomment following lines
# .env
# .env.qa
# .env.production
# .env.staging
# Local Netlify folder
.netlify
2 changes: 0 additions & 2 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,4 @@
. "$(dirname "$0")/_/husky.sh"

yarn lint-staged
yarn typecheck
yarn prettier:write
yarn pretty-quick --staged --ignore-path=./.prettierignore
5 changes: 5 additions & 0 deletions .idea/.gitignore

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

58 changes: 58 additions & 0 deletions .idea/codeStyles/Project.xml

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

5 changes: 5 additions & 0 deletions .idea/codeStyles/codeStyleConfig.xml

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

12 changes: 12 additions & 0 deletions .idea/expo-ts-template.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/inspectionProfiles/Project_Default.xml

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

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

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.

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.

23 changes: 23 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"cSpell.words": ["icomoon"],
"todohighlight.keywords": [
{
"text": "CONFIG:",
"color": "#FFF",
"backgroundColor": "green",
"overviewRulerColor": "grey"
},
{
"text": "HACK:",
"color": "#000",
"backgroundColor": "red",
"isWholeLine": false
},
{
"text": "TODO:",
"color": "#fff",
"backgroundColor": "darkOrange",
"isWholeLine": false
}
]
}
40 changes: 40 additions & 0 deletions App.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
// FIXME: see how why did you render works
// import './wdyr'
import 'react-native-gesture-handler'
import 'setimmediate'
import 'react-native-reanimated'
import '~i18n'
import * as Device from 'expo-device'

import { Navigation } from '~navigation'
import { Providers } from '~providers'
import { enableAndroidBackgroundNotificationListener, startMockedServer } from '~services'

// FIXME: there is some issue with miragejs that causes console.log to not work
const DISABLE_CONSOLE_ENABLE_MOCKED_SERVER = false

if (DISABLE_CONSOLE_ENABLE_MOCKED_SERVER) {
startMockedServer()
}

// TODO: Uncomment reactotron setup when using
// const isUsingReactotron = true
// if (__DEV__ && isUsingReactotron && !process.env.JEST_WORKER_ID) {
// require('./ReactotronConfig')
// }

// Workaround for the notifications received in background on android
// src: https://github.com/expo/expo/issues/14078#issuecomment-1041294084
if (Device.isDevice) {
enableAndroidBackgroundNotificationListener()
}

const App = (): JSX.Element => {
return (
<Providers>
<Navigation />
</Providers>
)
}

export default App
58 changes: 58 additions & 0 deletions NOTIFICATIONS_SETUP.MD
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
# Expo notifications configuration guide

Expo notifications are already preconfigured in this template. However, you still have to provide some secrets and keys in order to use them across your applications that uses this template.

<b>Expo Go</b> doesn't require any additional configuration so you can check notifications by copying push token (from `Settings` screen) and test notifications (on RL device) on [expo.dev/notifications](http://expo.dev/notifications) tool.

## Usage in expo dev client (expo run:\[android:ios\])

1. Make sure you have created your account in [expo.dev](http://expo.dev).
2. Sign in to your account using `yarn run login` (or `expo login` inside project directory).
3. Follow platform specific configuration.

### Android

1. Configure firebase to get `google-services.json` file - [follow this guide](https://docs.expo.dev/push-notifications/using-fcm/).
2. Make sure that you have changed your `owner` name in `app.json`.
3. Put your `google-services.json` in a project directory and provide path to it in `app.json` in `android` section ex.:

```json
{
"expo": {
...,
"owner": "@binarapps",
...,
"android": {
"googleServicesFile": "./path/to/google-services.json"
}
}
}
```

4. Provide your `experienceId` in `extra` section in `app.json` typically it follows this scheme - `@owner/slug` ex.:

```json
{
"expo": {
...,
"owner": "@binarapps",
"slug": "expo-typescript-template",
...,
"extra": {
"experienceid": "@binarapps/expo-typescript-template"
}
}
}
```

<b>Make sure that you have provided your own secrets for those fields.</b>

### iOS

`iOS` notification credentials are automatically generated (paid apple developer account is required to make them working).

[You can check this guide how to setup push notifications on iOS.](https://docs.expo.dev/push-notifications/push-notifications-setup/#credentials)

## Extending `expo-notifications` config

If u need additional `expo-notifications` config [follow this guide](https://github.com/expo/expo/tree/sdk-47/packages/expo-notifications).
Loading
Loading