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

Feature/shop-mobile-expo #1482

Merged
merged 327 commits into from
Feb 27, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
327 commits
Select commit Hold shift + click to select a range
2810af7
fix: add key prop to mapped screens
Neosoulink Jan 29, 2022
2feacc6
refactor: call drawer navigation into stack navigation
Neosoulink Jan 29, 2022
0cbf71c
fix: add key prop
Neosoulink Jan 29, 2022
14741ad
fix: remove NavigationContainer
Neosoulink Jan 29, 2022
7eba072
refactor: remove useless code
Neosoulink Jan 29, 2022
7410fd5
refactor: update drawer navigation component name
Neosoulink Jan 29, 2022
3c2dd1e
refactor: update custom drawer content name
Neosoulink Jan 29, 2022
1218373
refactor: update custom drawer content name
Neosoulink Jan 29, 2022
36e9b85
feat: add drawe header height
Neosoulink Jan 29, 2022
07a3265
feat: design drawer header
Neosoulink Jan 29, 2022
6ff5bdb
refactor: reduce radius size
Neosoulink Jan 29, 2022
e0a3d0f
refactor: set header drawer as absolute
Neosoulink Jan 29, 2022
b85dca7
feat: implement header & manage links section
Neosoulink Jan 29, 2022
a6fe2db
feat: use translation
Neosoulink Jan 29, 2022
be15c57
refactor: udapte drawer routing modules logic to solve translation issue
Neosoulink Jan 29, 2022
df5b718
refactor: udapte drawer routing modules logic to solve translation issue
Neosoulink Jan 29, 2022
4bfddd0
refactor: update types name
Neosoulink Jan 29, 2022
509e943
fix: set corrent type for onPress prop
Neosoulink Jan 29, 2022
26be312
refactor: update icon types
Neosoulink Jan 29, 2022
2f75ac5
refactor: update touchableCard behavior
Neosoulink Jan 29, 2022
ab346e4
refactor: update seconday to gray color
Neosoulink Jan 29, 2022
fd232ae
refactor: add secure to img prop of TouchableCard
Neosoulink Jan 29, 2022
554419e
refactor: design custom drawer items
Neosoulink Jan 29, 2022
7cfb442
refactor: minor
Neosoulink Jan 29, 2022
8ed9331
refactor: impove ui
Neosoulink Jan 29, 2022
fad6848
feat: add item focus check
Neosoulink Jan 29, 2022
98e71ac
refactor: update icon style
Neosoulink Jan 29, 2022
4d1d56b
feat: Implement DrawerNavigator
Neosoulink Jan 30, 2022
b0c7bbf
refactor: remove indicator icon
Neosoulink Jan 30, 2022
cb3d205
feat: add fonts
Neosoulink Jan 30, 2022
3fcbdb1
chore: init react-native configs with fonts
Neosoulink Jan 30, 2022
c772d17
feat: add font props into the style
Neosoulink Jan 30, 2022
2e7d8a1
chore(deps): add expo-font
Neosoulink Jan 30, 2022
c79acb2
chore(deps): add expo-app-loading
Neosoulink Jan 30, 2022
0b66144
feat: async load fonts
Neosoulink Jan 30, 2022
1ef8156
refactor: use custom Icon as default app icon
Neosoulink Jan 30, 2022
8dd58ff
feat: set stack navigation gruops
Neosoulink Jan 30, 2022
6fc6093
refactor: update drawer home name
Neosoulink Jan 30, 2022
9ffa499
refactor: improve ui
Neosoulink Jan 30, 2022
ff52c2b
refactor: update side_menu title
Neosoulink Jan 30, 2022
30ad46d
feat: add indicator style on relative screen focused
Neosoulink Jan 30, 2022
3f01c58
refactor: update title font size
Neosoulink Jan 30, 2022
569e51d
chore: remove react-native.config file
Neosoulink Jan 30, 2022
2898389
chore: manage app background
Neosoulink Jan 30, 2022
99d0fae
refactor: update default screen bg
Neosoulink Jan 30, 2022
15f492b
refactor: update default paper colors setting
Neosoulink Jan 30, 2022
aa3e9ad
feat: add dark color
Neosoulink Jan 30, 2022
019f997
refactor: update accent color
Neosoulink Jan 30, 2022
71d938e
feat: add screens custom header
Neosoulink Jan 30, 2022
d700919
feat: implement custom header
Neosoulink Jan 30, 2022
4a70dab
refactor: udpate drawer scrolling behavior
Neosoulink Jan 30, 2022
304abe5
feat: add translation
Neosoulink Jan 30, 2022
26ae44e
feat: implement Translation screen
Neosoulink Jan 30, 2022
0cfff43
feat: navigation with drawer
Neosoulink Jan 30, 2022
a9a52b4
refactor: remove useless codes
Neosoulink Jan 30, 2022
b241298
refactor: decrease back btn inner space
Neosoulink Jan 30, 2022
0c261a7
refactor: decrease back btn inner space
Neosoulink Jan 30, 2022
1ea4dc0
fix: focus on correct drawer list item
Neosoulink Jan 30, 2022
36a4f35
refactor: update header btns ui
Neosoulink Jan 30, 2022
7b95ae8
refactor: update translation store for languages compatibility
Neosoulink Jan 30, 2022
982e396
refactor: disable title switch
Neosoulink Jan 30, 2022
483cbed
perf: disable reduxserialization check
Neosoulink Jan 30, 2022
2a447e4
feat: set translations feature
Neosoulink Jan 30, 2022
3f030d9
feat: HEBREW display support
Neosoulink Jan 30, 2022
4c3268e
feat: use ionic package theme
Neosoulink Jan 31, 2022
a5e0ecf
chore: expo types support
Neosoulink Feb 1, 2022
c1d49ff
chore: ignore *.lock files
Neosoulink Feb 1, 2022
ee431b7
refactor: import registerRootComponent from expo
Neosoulink Feb 1, 2022
b5a60a4
refactor: convert metro file from TS to JS
Neosoulink Feb 1, 2022
aca70b8
feat: add registration routes group
Neosoulink Feb 2, 2022
875a4e1
feat: implement registrations screens
Neosoulink Feb 2, 2022
bea381d
Merge branch 'develop' into feature/shop-mobile-expo
Neosoulink Feb 2, 2022
c229272
chore: expo metro file support
Neosoulink Feb 2, 2022
4c7c8ac
fix: add spanish translation
Neosoulink Feb 2, 2022
5cb26d5
feat: add & implement french translation from ba56fdff4e7ea41fce8c04b…
Neosoulink Feb 2, 2022
bb4b728
fix: temporary fix to run app in separete project folder
Neosoulink Feb 3, 2022
8f14499
fix: Signup screen module path
Neosoulink Feb 3, 2022
1ed7884
chore(deps): remove @babel/runtime from dependencies and upgrade @bab…
Neosoulink Feb 3, 2022
9e05ca2
chore: update paths name
Neosoulink Feb 3, 2022
dfc372d
chore(deps): add @apollo/client & graphql
Neosoulink Feb 3, 2022
c23e40e
refactor: export default enviroment instead of simple export
Neosoulink Feb 3, 2022
2159591
feat: implement apollo client to communicate with GQL using env endpoint
Neosoulink Feb 3, 2022
41c73e4
fix: resole cjs files in metro builder
Neosoulink Feb 3, 2022
75cb8bb
fix: add key prop to lang item to prevent Child key warn
Neosoulink Feb 3, 2022
e222b87
fix: add french to sopported lang object
Neosoulink Feb 3, 2022
c1ee859
refactor: update ever app anme
Neosoulink Feb 3, 2022
f89102d
fix: add french missing prop
Neosoulink Feb 3, 2022
6b64b8e
refactor: capitalize translation texts
Neosoulink Feb 3, 2022
3d0dc67
refactor: move app screens to the dedicate folder
Neosoulink Feb 3, 2022
d92409f
refactor: use correct path for imports
Neosoulink Feb 3, 2022
e7e6206
style: format code
Neosoulink Feb 3, 2022
2ea24bf
refactor: display registration screen before
Neosoulink Feb 3, 2022
561b3a5
refactor: use FocusAwareStatusBar
Neosoulink Feb 3, 2022
6a9f4d7
refactor: move commons custom components to didicate folder
Neosoulink Feb 3, 2022
90f682e
feat: minor design applayed
Neosoulink Feb 3, 2022
a879fa1
refactor: update import path to commons components
Neosoulink Feb 3, 2022
62e4ae7
refactor: update import path to commons components
Neosoulink Feb 3, 2022
18eefb8
refactor: update import path to commons components
Neosoulink Feb 3, 2022
9c17270
refactor: update import path to commons components
Neosoulink Feb 3, 2022
078a9b2
refactor: update default paper roundness
Neosoulink Feb 3, 2022
3a4f729
feat: add facebook & google colors
Neosoulink Feb 3, 2022
e6f974c
feat: design signUp screen
Neosoulink Feb 3, 2022
714f64e
refactor: update GeoScreen to GetUserAddressScreen
Neosoulink Feb 4, 2022
0f0a8c4
refactor: update registration by address route name
Neosoulink Feb 4, 2022
13bc1ec
style: format code for following linters rules
Neosoulink Feb 4, 2022
c01a4ed
style: format code for following linters rules
Neosoulink Feb 4, 2022
5411977
chore: use correct linters configuration
Neosoulink Feb 4, 2022
1330f2a
style: update entiere react native app format's codes to match with E…
Neosoulink Feb 4, 2022
4962f13
style: update of entire expo app code's format to match with EverDema…
Neosoulink Feb 4, 2022
d142676
Merge branch 'feature/shop-mobile-expo' of https://github.com/ever-co…
Neosoulink Feb 4, 2022
7b315cd
refactor: minor ui update
Neosoulink Feb 4, 2022
6c2077f
chore: fix quotes rules
Neosoulink Feb 4, 2022
99c78d0
refactor: minor ui update
Neosoulink Feb 4, 2022
9d00d4f
refactor: update of sign up by address screen file
Neosoulink Feb 4, 2022
8fd521c
fix: match jsx-quotes eslint with EverDemand linters rules
Neosoulink Feb 4, 2022
295dcd8
fix: watch setNavGroup
Neosoulink Feb 4, 2022
a421a41
feat: done signup by address ui
Neosoulink Feb 4, 2022
08aac76
refactor: update side_menu ever prop value
Neosoulink Feb 5, 2022
51e46cd
refactor: use native alert
Neosoulink Feb 5, 2022
354150d
chore: overrides spaced-comment rules & launch error for jsx-quotes
Neosoulink Feb 5, 2022
bedb398
refactor: use paper activity indicator
Neosoulink Feb 5, 2022
62c088e
chore: remove @type/expo. expo provides its own type definitions
Neosoulink Feb 6, 2022
af5b9f4
fix: config expo for lerna mono repo support
Neosoulink Feb 7, 2022
8968e7f
style: reordered codes
Neosoulink Feb 8, 2022
c71ea54
fix: add .browserslistrc to solve this Invalid version: 15.2-15.3
Neosoulink Feb 9, 2022
e1b2646
refactor: move rules from .browserslistrc file to package.json
Neosoulink Feb 9, 2022
8f73557
chore: add watchman default config
Neosoulink Feb 9, 2022
5e38656
fix: use expo monorepos config to resolve expo package in EverDemand.…
Neosoulink Feb 9, 2022
a1376b0
feat: define external drawer links
Neosoulink Feb 9, 2022
4187e63
feat: add Orderhistory screen
Neosoulink Feb 9, 2022
a1b6f77
feat: add Orderhistory screen
Neosoulink Feb 9, 2022
4ff5dc9
Merge branch 'develop' into feature/shop-mobile-expo
Neosoulink Feb 10, 2022
dddbd4d
fix: use metro monorepo config
Neosoulink Feb 11, 2022
0032118
style: add useful comments
Neosoulink Feb 11, 2022
2e6306a
feat: get all users for demo
Neosoulink Feb 14, 2022
f74b036
refactor: update user store
Neosoulink Feb 14, 2022
f9f90a0
feat: store first user data from graph api
Neosoulink Feb 14, 2022
9b9d321
refactor: use correct Appolo client uri end point
Neosoulink Feb 14, 2022
f4320eb
feat: get products data
Neosoulink Feb 14, 2022
b2972c7
feat: add & implement product item
Neosoulink Feb 14, 2022
e76820d
feat: design product item
Neosoulink Feb 14, 2022
eeb9fda
feat: design product item
Neosoulink Feb 14, 2022
0ed6014
refactor: display diffrente images
Neosoulink Feb 14, 2022
5dc4692
refactor: update product item ui and add demo images
Neosoulink Feb 14, 2022
496e9fa
feat: add order history item
Neosoulink Feb 15, 2022
8a35cfa
feat: implement order history component
Neosoulink Feb 15, 2022
9b727cd
refactor: minor ui update
Neosoulink Feb 15, 2022
3100b64
chore(deps): add useful deps
Neosoulink Feb 15, 2022
1c80d87
chore(deps): add expo-location
Neosoulink Feb 18, 2022
49370a3
chore(deps): fix @react-native-async-storage/async-storage version t…
Neosoulink Feb 18, 2022
5fcb458
refactor: remove apollo query hook
Neosoulink Feb 18, 2022
5f84f68
feat: setup flash messages
Neosoulink Feb 18, 2022
29bdf62
refactor: retrieve user location
Neosoulink Feb 18, 2022
02fdc92
feat: add apollo client in separate folder logic
Neosoulink Feb 18, 2022
ebd2cc8
refactor: update to add get location logic
Neosoulink Feb 18, 2022
90c626c
feat: add location helper module and init it with getFormattedAddress
Neosoulink Feb 18, 2022
d810a5f
refactor: update location retrieve logic
Neosoulink Feb 18, 2022
600da32
feat: implement form logic
Neosoulink Feb 18, 2022
fbcac54
chore(deps): add validate.js
Neosoulink Feb 19, 2022
9af64be
chore(deps): use correct version of react-native types
Neosoulink Feb 19, 2022
3059ddb
feat: add rule validation constants for validate.js
Neosoulink Feb 19, 2022
1c9f0fe
refactor: decrease default roundness
Neosoulink Feb 19, 2022
82d50b0
refactor: update default theme
Neosoulink Feb 19, 2022
269e8f9
chore: disable no-mixed-spaces-and-tabs rule
Neosoulink Feb 19, 2022
eb49ea2
refactor: design & add some logic in SignUpByAddress screen
Neosoulink Feb 19, 2022
bf86703
fix: update structure of rules
Neosoulink Feb 19, 2022
6467812
refactor: update rule name
Neosoulink Feb 19, 2022
5b9e958
refactor: update error behavior
Neosoulink Feb 19, 2022
838d14c
refactor: improve ux
Neosoulink Feb 19, 2022
e29fe0e
style: add todo comment
Neosoulink Feb 19, 2022
200fb45
refactor: update RegisterUser mutation
Neosoulink Feb 19, 2022
6fc8f7b
refactor: update mudation name
Neosoulink Feb 19, 2022
ab2a7ca
refactor: add return props and update defs names
Neosoulink Feb 19, 2022
c7ad970
refactor: update ruturn props
Neosoulink Feb 19, 2022
fc89667
refactor: rename argument interface file
Neosoulink Feb 19, 2022
33924b0
style: add useful comments
Neosoulink Feb 19, 2022
ae54385
refactor: update default theme surfaces
Neosoulink Feb 19, 2022
85e1699
fix: use correct longitude
Neosoulink Feb 19, 2022
04a0a68
feat: user signup integration
Neosoulink Feb 20, 2022
eba8c55
fix: update path of mutation constant
Neosoulink Feb 20, 2022
55a24b6
refactor: update client folder structure and copy
Neosoulink Feb 20, 2022
be202f1
refactor: minor update
Neosoulink Feb 20, 2022
1b065b8
feat: add global types
Neosoulink Feb 20, 2022
7b125d4
refactor: update type props to match with current graphQl types
Neosoulink Feb 20, 2022
13457db
refactor: sign-up invite instead of a user
Neosoulink Feb 20, 2022
7f4474b
refactor: improve ui for invites
Neosoulink Feb 20, 2022
d5be788
feat: add product apollo GraphQl base
Neosoulink Feb 20, 2022
355ad3d
refactor: update production query argument interface
Neosoulink Feb 20, 2022
853707e
refactor: update spaces size
Neosoulink Feb 20, 2022
25c55c2
refactor: minor update
Neosoulink Feb 20, 2022
5e35a8d
refactor: make some props optional
Neosoulink Feb 20, 2022
260e08e
fix: fast end load
Neosoulink Feb 20, 2022
affb62f
fix: resolve action prop of user reducer action
Neosoulink Feb 20, 2022
26a7123
fix: set correct user info
Neosoulink Feb 20, 2022
4ac844e
fix: set correct user info
Neosoulink Feb 20, 2022
7e34730
refactor: get data from api
Neosoulink Feb 20, 2022
de35423
refactor: update data structure
Neosoulink Feb 20, 2022
32ae4ed
refactor: update Environment interface structure
Neosoulink Feb 21, 2022
bd924ea
refactor: update environment file created and Env type
Neosoulink Feb 21, 2022
e7cdc8a
refactor: update environment file created and Env type
Neosoulink Feb 21, 2022
3cb3af5
chore(deps): add script config dev dependencies
Neosoulink Feb 21, 2022
9721eb3
chore(deps): add script config dev dependencies
Neosoulink Feb 21, 2022
bb47488
fix: resolve import and var def
Neosoulink Feb 21, 2022
df4256f
feat: ignore logs in prod mode
Neosoulink Feb 21, 2022
05562fd
refactor: update graphQl url
Neosoulink Feb 21, 2022
891986e
refactor: minor
Neosoulink Feb 21, 2022
49568b6
refactor: udpate default language type
Neosoulink Feb 21, 2022
8abcc62
refactor: update user store and add isLoggedIn prop on it
Neosoulink Feb 21, 2022
bc69fca
feat: add action to set user store
Neosoulink Feb 21, 2022
8c54fa2
refactor: modules app providers
Neosoulink Feb 21, 2022
5643f53
feat: add custom provideer modules
Neosoulink Feb 21, 2022
9a84f70
refactor: add eslint rule to sesolve Lints conflicts
Neosoulink Feb 21, 2022
3c0e08e
refactor: disable logs if reac-native __DEV__ false
Neosoulink Feb 21, 2022
9b4337d
feat: add ProductItem slide support
Neosoulink Feb 21, 2022
1ad93f1
refactor: move FlashMessage component to app provider
Neosoulink Feb 22, 2022
6b86624
refactor: move FlashMessage component to app provider
Neosoulink Feb 22, 2022
18a05bb
refactor: minnor
Neosoulink Feb 22, 2022
2eb2e8d
fix: resolve infinite splash screen loading
Neosoulink Feb 23, 2022
c573e45
refactor: add useful comment
Neosoulink Feb 23, 2022
70f3ac5
refactor: move router group logic to App provider component
Neosoulink Feb 23, 2022
57bd19f
refactor: set default route group of the current user
Neosoulink Feb 23, 2022
6999f38
refactor: set default route group of the current user
Neosoulink Feb 23, 2022
1d86b22
feat: add action who's triggered when user success signUp by address
Neosoulink Feb 23, 2022
3f9b9ed
refactor: use onUserSignUpByAddressSuccess action
Neosoulink Feb 23, 2022
d6efd31
refactor: design products for slide view
Neosoulink Feb 23, 2022
a9dc11a
refactor: add productView type in user store and use it in products home
Neosoulink Feb 23, 2022
e34960e
style: add comment
Neosoulink Feb 23, 2022
75e9ee7
feat: translaton store to local storage and set user selected lang on…
Neosoulink Feb 23, 2022
1d7b0f6
feat: add account screen
Neosoulink Feb 23, 2022
cd1f87b
refactor: update code following the linters rules
Neosoulink Feb 23, 2022
e98dd5b
fix: update style type and resolve tslints warns
Neosoulink Feb 23, 2022
676ad5e
refactor: set default ripple color
Neosoulink Feb 23, 2022
8ad592a
feat: design account screen
Neosoulink Feb 23, 2022
8790350
refactor: minor update
Neosoulink Feb 24, 2022
ead907d
feat: add action to update product view type
Neosoulink Feb 24, 2022
41d8eb3
feat: implement account ui
Neosoulink Feb 24, 2022
3d181e3
feat: create custom dialog common component
Neosoulink Feb 24, 2022
81c332e
fix: resolve local storage for user store
Neosoulink Feb 24, 2022
a52bc83
chore(deps): add redux-logger
Neosoulink Feb 24, 2022
52dd73b
feat: add logger
Neosoulink Feb 24, 2022
fa7b9c7
feat: add MerchantsSearch screen
Neosoulink Feb 24, 2022
db85c95
refactor: reorder code and update default param of search
Neosoulink Feb 24, 2022
c21edea
feat: add MerchantsSearch route
Neosoulink Feb 24, 2022
7db6df3
refactor: minor update
Neosoulink Feb 24, 2022
d320df8
chore(deps): add lodash.debounce
Neosoulink Feb 24, 2022
a20f15b
refactor: ui Marchant search screen
Neosoulink Feb 24, 2022
b2de40a
refactor: minor
Neosoulink Feb 27, 2022
7898a1c
feat: add readme file
Neosoulink Feb 27, 2022
0417517
Update package.json
evereq Feb 27, 2022
5ab0597
Update app.json
evereq Feb 27, 2022
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
4 changes: 4 additions & 0 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx --no-install commitlint --edit $1
2 changes: 2 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
"run:admin": "yarn --cwd ./packages/admin-web-angular start",
"run:merchant": "yarn --cwd ./packages/merchant-tablet-ionic start",
"run:shopmobile": "yarn --cwd ./packages/shop-mobile-ionic start",
"run:shopexpo": "yarn --cwd ./packages/shop-mobile-expo start",
"run:shopweb": "yarn --cwd ./packages/shop-web-angular start",
"run:carrier": "yarn --cwd ./packages/carrier-mobile-ionic start",
"build:server": "yarn run build:common && yarn lerna run build --scope @ever-platform/core",
Expand Down Expand Up @@ -284,4 +285,4 @@
"prefix": "ever",
"framework": "angular"
}
}
}
78 changes: 78 additions & 0 deletions packages/shop-mobile-expo/.env.template
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
# NOTE: do NOT ever put here any secure settings! (e.g. Secret Keys)
# We are using dotenv (.env) for consistency with other Platform projects
# This is expo app and all settings will be loaded into the client browser!

# Don't forget to update scripts/*.ts and src/environments/*.ts on changes!

VERSION=1.0.0

# 'slides' | 'list'
PRODUCTS_VIEW_TYPE=slides

# 'popup' or 'page'
ORDER_INFO_TYPE=page

API_FILE_UPLOAD_URL=https://api.cloudinary.com/v1_1/evereq/upload

INVITE_BY_CODE_LOGO=assets/imgs/ever-logo.svg
NO_INTERNET_LOGO=assets/imgs/logo.png

COMPANY_NAME=Ever Co. LTD

GOOGLE_MAPS_API_KEY=

GOOGLE_ANALYTICS_API_KEY=
FAKE_UUID=

# Not secret MixPanel Token
MIXPANEL_API_KEY=

DEFAULT_LANGUAGE=en-US
DEFAULT_LOCALE=en-US

DELIVERY_TIME_MIN=30
DELIVERY_TIME_MAX=60

SUPPORT_NUMBER=0888888888

STRIPE_PUBLISHABLE_KEY=

# TODO: replace logo with recent one!
STRIPE_POP_UP_LOGO=https://bitbucket-assetroot.s3.amazonaws.com/c/photos/2016/Jan/30/1263967991-1-everbie-avatar.png

MAP_MERCHANT_ICON_LINK=http://maps.google.com/mapfiles/kml/pal3/icon21.png
MAP_USER_ICON_LINK=http://maps.google.com/mapfiles/kml/pal3/icon48.png
MAP_CARRIER_ICON_LINK=http://maps.google.com/mapfiles/kml/pal4/icon54.png

DEFAULT_LATITUDE=42.6459136
DEFAULT_LONGITUDE=23.3332736

# Graphql endpoints for apollo services
GQL_ENDPOINT=http://localhost:8443/graphql
GQL_SUBSCRIPTIONS_ENDPOINT=ws://localhost:2086/subscriptions
SERVICES_ENDPOINT=http://localhost:5500
HTTPS_SERVICES_ENDPOINT=https://localhost:2087

FAKE_INVITE_ID=1ae9d04f9010d834f8906881
FAKE_INVITE_CITY=Ashdod
FAKE_INVITE_POSTCODE=77452
FAKE_INVITE_ADDRESS=HaAtsmaut
FAKE_INVITE_HOUSE=126
FAKE_INVITE_CREATED_AT=2018-05-02T14:50:55.658Z
FAKE_INVITE_UPDATED_AT=2018-05-02T14:50:55.658Z
FAKE_INVITE_APARTMENT=3
FAKE_INVITE_CODE=8321
FAKE_INVITE_COUNTRY_ID=102

# For maintenance micro service. Ever maintanance API URL: https://maintenance.ever.co/status
SETTINGS_APP_TYPE=shop-mobile
SETTINGS_MAINTENANCE_API_URL=

# For "single" merchant (multiple branches)
MERCHANT_IDS=[]

PORT=4201
WEB_MEMORY=4096
WEB_CONCURRENCY=1

SHOPPING_CART=false
26 changes: 26 additions & 0 deletions packages/shop-mobile-expo/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"root": true,
"extends": "@react-native-community",
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint"],
"overrides": [
{
"files": ["*.ts", "*.tsx"],
"rules": {
"@typescript-eslint/no-shadow": ["error"],
"no-shadow": "off",
"no-undef": "off",
"jsx-quotes": ["error", "prefer-single"],
"no-spaced-func": "off",
"spaced-comment": [
"error",
"always",
{ "block": { "balanced": true } }
],
"no-mixed-spaces-and-tabs": ["off", "smart-tabs"],
"no-extra-semi": "error",
"semi": "off"
}
}
]
}
4 changes: 4 additions & 0 deletions packages/shop-mobile-expo/.expo-shared/assets.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"12bb71342c6255bbf50437ec8f4441c083f47cdb74bd89160c15e4f43e52a1cb": true,
"40b842e832070c58deac6aa9e08fa459302ee3f9da492c7e77d93d2fbf4a56fd": true
}
30 changes: 30 additions & 0 deletions packages/shop-mobile-expo/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
node_modules/
.expo/
dist/
npm-debug.*
*.jks
*.p8
*.p12
*.key
*.mobileprovision
*.orig.*
*.lock
web-build/

# macOS
.DS_Store

# Do not store autogenerated docs in repo
docs/

# Do net store aotogenerate jest caches
jest/

# environment files
.env*
!.env.template
*/environments/environment*

# others
.editorconfig
tslint.json
11 changes: 11 additions & 0 deletions packages/shop-mobile-expo/.prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"semi": true,
"useTabs": true,
"tabWidth": 4,
"bracketSpacing": true,
"jsxBracketSameLine": true,
"singleQuote": true,
"jsxSingleQuote": true,
"trailingComma": "all",
"arrowParens": "always"
}
1 change: 1 addition & 0 deletions packages/shop-mobile-expo/.watchmanconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
26 changes: 26 additions & 0 deletions packages/shop-mobile-expo/App.spec.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
/**
* @format
*/

import 'react-native';
import React from 'react';
import renderer from 'react-test-renderer';
// Note: test renderer must be required after react-native.
import { View, Text } from 'react-native';

// COMPONENTS
// import App from './src/App';

export default function App() {
return (
<View>
<Text>hi</Text>
</View>
);
}

describe('Demo', function () {
it('should renders correctly', () => {
renderer.create(<App />);
});
});
14 changes: 14 additions & 0 deletions packages/shop-mobile-expo/App.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import { registerRootComponent } from 'expo';
import { LogBox } from 'react-native';
import ENV from './src/environments/environment';

// APP COMPONENT
import App from './src/App';

// registerRootComponent calls AppRegistry.registerComponent('main', () => App);
// It also ensures that whether you load the app in Expo Go or in a native build,
// the environment is set up appropriately
registerRootComponent(App);
if (ENV.PRODUCTION || !__DEV__) {
LogBox.ignoreAllLogs();
}
84 changes: 84 additions & 0 deletions packages/shop-mobile-expo/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
# @ever-platform/shop-mobile-expo

> 🛑 **NOT YET COMPATIBLE**: Currently this package don't works fine with Lerna mono-repo logic.
To be able to run this package locally, you've to extract the package outside of @ever-platform and then install dependencies (see [setup](#-setup) section).
But this package depend on @ever-platform server, don't forget to start it...

## 📋 Contents

- [Contents](#-contents)
- [Demo](#-demo)
- [Setup](#-setup)
- [Testing](#-testing)
- [Contribution](#-contribution)

## 🤳 Demo

> We used expo to test our application easily and quickly.
> So you must first install expo on your mobile and then test the demo version.

Copy that link -> **[link not available](https://docs.expo.io/)** and past it into your expo app to preview demo.

## ⚡ Setup

<!-- TODO: Add more folders and files descriptions -->
### 📋 Package structure

.
├── .expo-shared
├── script
├── src
├── assets # Contain app assets (imgs, fonts, ...)
├── client # Contain ApolloGraphQL queries, mutations and relative types
├── components # Contain components used in the app
├── constants
├── helpers # Class/Functions that provides useful feature
├── environments
├── router
├── screens
├── store
├── types # Contain global types
└── App.tsx
├── .env.template
├── .eslintrc.json
├── .gitignore
├── .prettierrc.json
├── .watchmanconfig
├── app.json
├── App.spec.tsx
├── App.tsx
├── babel.config.js
├── metro.config.js
├── package.json
├── README.md
└── tsconfig.json

### 🌟 Before install

**🚧 Before installing et running project locally, make sure you have :**

- The latest Yarn version installed in your computer **(note that we're only use Yarn)**
- Node.js V14.x.x or higher installed in your computer
- Expo 5.x.x or higher installed in your computer
- The latest version of expo app installed in your phone (or virtual device)

### ⚡ Installation & Running

- Install dependencies `Yarn`. run `yarn add`.
- Create environment files by running `yarn run config`.
- After these steps, run `yarn run start` command to start bundle server

> 🚧 If you can't connect to the server, maybe the endpoint aren't compatible.
To update them, got to `./src/environments/environment.ts` and change urls props into `ENDPOINT` prop from `http://localhost/...` to `http://10.0.2.2/...`

<!-- TODO: Add contribution -->
## 🧪 Testing

We're using Jest to test our application.

To run all tests, run `yarn run test`

<!-- TODO: Add contribution -->
### 🤝 Contribution

Please refer to the [guide of the platform](https://github.com/ever-co/ever-demand/#contribute)
38 changes: 38 additions & 0 deletions packages/shop-mobile-expo/app.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
"expo": {
"name": "@ever-platform/shop-mobile-expo",
"slug": "shop-mobile-expo",
"description": "Ever Shop Mobile App build with expo",
"version": "0.4.3",
"orientation": "portrait",
"primaryColor": "#2A2C39",
"backgroundColor": "#2A2C39",
"icon": "./src/assets/img/appIcons/icon.png",
"splash": {
"image": "./src/assets/img/appIcons/splash.png",
"resizeMode": "cover",
"backgroundColor": "#2A2C39"
},
"updates": {
"fallbackToCacheTimeout": 0
},
"assetBundlePatterns": ["**/*"],
"ios": {
"supportsTablet": true
},
"androidStatusBar": {
"barStyle": "light-content",
"translucent": true,
"backgroundColor": "#00000000"
},
"android": {
"adaptiveIcon": {
"foregroundImage": "./src/assets/img/appIcons/adaptive-icon.png",
"backgroundColor": "#2A2C39"
}
},
"web": {
"favicon": "./src/assets/img/appIcons/favicon.png"
}
}
}
7 changes: 7 additions & 0 deletions packages/shop-mobile-expo/babel.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
module.exports = function (api) {
api.cache(true);
return {
presets: ['babel-preset-expo'],
plugins: ['react-native-reanimated/plugin'],
};
};
29 changes: 29 additions & 0 deletions packages/shop-mobile-expo/metro.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
/**
* ? Metro configuration for React Native
* https://github.com/facebook/react-native
*
* @format
*/
const defaultSourceExts =
require('metro-config/src/defaults/defaults').sourceExts;
module.exports = {
transformer: {
getTransformOptions: async () => ({
transform: {
experimentalImportSupport: false,
inlineRequires: true,
},
}),
},
resolver: {
// ? Add cjs files extention support
sourceExts: process.env.RN_SRC_EXT
? [
...process.env.RN_SRC_EXT.split(',').concat(
defaultSourceExts,
),
'cjs',
]
: [...defaultSourceExts, 'cjs'],
},
};
Loading