Commit cf0cc8c
authored
feat: gluestack v2 (#129)
* feat: gluestack v2 ui
wip
* fix: tests pass things work
* fix: secure input layout
* fix: respect system theme
* fix: properly respect app theme
* feat: standard ui in gluestack
* fix: bug bot bug
Redundant theme loading on system color scheme change
The ThemeContext has two useEffect hooks that both trigger loadTheme()
when the system color scheme changes. The first effect at line 38-41
runs when loadTheme changes (which happens when systemColorScheme
changes due to the useCallback dependency). The third effect at line
55-58 also runs when systemColorScheme changes. Since loadTheme depends
on systemColorScheme in its useCallback dependency array, whenever the
system theme changes, both effects run causing loadTheme() to be called
twice. While functionally correct, this results in unnecessary duplicate
async calls to the native ThemeModule.getColorScheme().
* chore: code cleanup
* test: fix break
* fix: bug bot
* fix: cruft cleanup
* fix: alert icon
* fix: un wanted plugin drop
* fix: turns out we only need reanimated
it pulls in worklets
* ci: ccache react-native-worklets
* fix: action button
* fix: keep powersync specific stuff in metro.config
* fix: action buttons again
* test: fix1 parent 7c21aca commit cf0cc8c
49 files changed
Lines changed: 5026 additions & 812 deletions
File tree
- android/app/src/main/java/com/github/quarck/calnotify
- react
- app
- components/ui
- alert
- box
- button
- card
- divider
- gluestack-ui-provider
- hstack
- input
- link
- switch
- text
- vstack
- lib
- components/ui
- features
- __tests__
- __mocks__
- theme
- scripts
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 5 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| 36 | + | |
36 | 37 | | |
37 | 38 | | |
38 | 39 | | |
| |||
43 | 44 | | |
44 | 45 | | |
45 | 46 | | |
46 | | - | |
| 47 | + | |
47 | 48 | | |
48 | 49 | | |
49 | 50 | | |
| |||
67 | 68 | | |
68 | 69 | | |
69 | 70 | | |
70 | | - | |
71 | | - | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
72 | 74 | | |
73 | 75 | | |
74 | 76 | | |
| |||
Lines changed: 63 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
Lines changed: 21 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
0 commit comments