31f1528c35
Replace settings context with theme context
...
The settings context was having a big performance
impact on the app. We only truly need the theme + color
to be a global context.
2022-11-01 16:50:03 +13:00
8d7fe149f5
Remove unused code
2022-11-01 16:11:39 +13:00
139d75493e
Memoize action in App.tsx
2022-11-01 16:08:02 +13:00
49b5eb48c6
Refactor MassiveSnack
...
Instead of using a context for the whole app
use DeviceEventEmitter with root state.
This will probably improve performance,
since I think the react context was
re-rendering the entire DOM tree.
2022-11-01 15:55:37 +13:00
1a53fa324b
Remove redundant Color context
...
Settings already stores the color set by the user.
2022-10-31 21:32:33 +13:00
bdb27894f7
Optimize root context
2022-10-31 21:00:10 +13:00
eafad1f47e
Simplify migrations in App.tsx
2022-10-31 18:16:11 +13:00
bc7aca03e8
Remove semicolons from line endings
2022-10-31 17:22:08 +13:00
b7f1c2192e
Pause converting to typeorm due to odd error
...
ERROR TypeError: Cannot read property 'getItem' of undefined
This error is located at:
in FlatList (created by SetList)
in RCTView (created by View)
in View (created by Page)
in Page (created by SetList)
in SetList (created by SceneView)
...
I found an open issue on the react-native github which seems
related https://github.com/facebook/react-native/issues/31523
but after following all of their suggestions I still have the
same error. I tried:
- Removing @babel/plugin-proposal-class-properties & @babel/plugin-transform-flow-strip-types
- Adding @babel/plugin-transform-flow-strip-types
2022-10-31 13:20:36 +13:00
6e75614d10
Add basic working unit tests
2022-10-30 12:56:58 +13:00
e6dcd4a47e
Use hermes engine
...
https://reactnative.dev/docs/hermes
2022-10-28 18:36:47 +13:00
36e6637ba2
Revert "Revert "Add custom app bar""
...
This reverts commit e84dd7bdea
.
2022-10-23 12:35:58 +13:00
e84dd7bdea
Revert "Add custom app bar"
...
This reverts commit a664b65ce2
.
2022-10-23 12:32:44 +13:00
a664b65ce2
Add custom app bar
...
The header bar provided by react-navigation was jumping on first
load, whereas this custom one doesn't.
2022-10-23 12:24:39 +13:00
c73937396e
Fix defaults for freshly installed app
...
Closes #95
2022-10-18 21:43:46 +13:00
8461f86e88
Wrap color context with useColor custom hook
...
I find it easier to import hooks by useX instead of
useContext(X). Like how the navigation library is just
useNavigation
2022-10-14 17:24:02 +13:00
eb53d58991
Add ability to set app theme
...
Closes #79
2022-10-04 14:35:56 +13:00
f242f54078
Use Material icons instead of ionic icons
...
Some of our other icons were already Material design,
so these Ionic icons looked out of place.
2022-09-27 12:45:13 +13:00
2fb0503882
Make sure hex colors are always upper case
2022-09-27 12:19:19 +13:00
acfd0e698d
Minor refactors and renaming
2022-09-25 17:49:26 +13:00
39fafa353f
Split out some type definitions into their own files
2022-09-24 18:47:31 +12:00
7feb98f7ce
Make fab text black when primary color is cyan
2022-09-24 15:59:52 +12:00
e516cdfdc0
Add ability to customize primary color
...
Closes #40
2022-09-24 13:57:51 +12:00
567bf182b4
Change toasts based on context of settings
...
The messages should explain what you have now changed
rather than the setting itself.
2022-09-11 15:35:20 +12:00
756a2089e9
Prevent race condition with database migrations
2022-08-30 23:21:25 +12:00
f6dec0c3b2
Add images to sets
2022-08-28 20:55:12 +12:00
391f0e3c71
Fix app not loading on first install
2022-08-28 17:24:21 +12:00
4967cbf728
Disable new record notifications by default
2022-08-27 18:08:23 +12:00
c636b3c802
Use dark color for snackbar on dark theme
2022-08-27 17:14:35 +12:00
e8109ce871
Make background slightly darker
2022-08-27 16:15:24 +12:00
cf55711ae3
Fix status bar not being dark on light mode
2022-08-27 13:40:16 +12:00
23d8c91c69
Add workouts page
...
The workouts page can be used to add a new type of workout,
or to edit the name of an already existing one.
Closes #1 .
2022-08-26 15:10:28 +12:00
fd38439756
Change color scheme
2022-08-26 13:54:51 +12:00
48d4d59ac8
Add ability to choose alarm sound
...
Closes #5
2022-08-25 20:41:15 +12:00
2c9242b03f
Use react-native-paper snackbar instead of ToastAndroid
2022-08-25 13:01:01 +12:00
75b71b5851
Replace usage of react-native-async-storage with sqlite
2022-08-24 12:01:39 +12:00
4c185f0346
Add vibration setting for timers
2022-08-20 16:37:59 +12:00
bdd712833c
Reduce number of colors in theme
2022-07-15 18:06:33 +12:00
a78a22207a
Split out routes
2022-07-15 16:34:06 +12:00
87ed70155f
Use stats-chart icon for Best
2022-07-11 13:06:26 +12:00
e72cdc8db7
Make plans use stack navigation
2022-07-11 12:28:30 +12:00
f15c6df20b
Use stack navigation for homepage + EditSet
2022-07-11 00:04:13 +12:00
aa780172a4
Add max number of sets to settings page
2022-07-10 19:03:07 +12:00
29d2421fb1
Add toggle for predictive sets
2022-07-10 17:53:38 +12:00
53db8597e1
Replace tab names with icons
2022-07-09 15:19:02 +12:00
dbb3dc2eb3
Fix linting errors
2022-07-09 13:27:19 +12:00
70113f1b94
Simplify AsyncStorage usage in App.tsx
2022-07-08 15:51:19 +12:00
45c3029434
Change page naming scheme to ${word}Page
2022-07-08 15:20:03 +12:00
570b43715f
Ensure only one connection to SQLite exists
2022-07-07 14:18:38 +12:00
07fa6f7ab2
Switch some modals to dialogs and fix light mode
2022-07-06 21:03:56 +12:00