chore(mobile): update package versions and improve color handling

- Bumped versions of `react-native-uikit-colors`, `apple-uikit-colors`, and `tailwindcss-uikit-colors` to 0.3.10 in `pnpm-lock.yaml` and `package.json` for consistency and to leverage the latest features and fixes.
- Updated the import from `useCurrentColors` to `useCurrentColorsVariants` in the `index.tsx` provider file to align with the new API.
- Added a blank line in `Actions.tsx` for improved code readability.

These changes ensure the application is using the latest color utilities and maintain clean code practices.

Signed-off-by: Innei <tukon479@gmail.com>
This commit is contained in:
Innei 2025-03-20 14:09:53 +08:00
parent 8003310d65
commit 18eef52fdb
No known key found for this signature in database
GPG Key ID: 0F62D33977F021F7
4 changed files with 18 additions and 17 deletions

View File

@ -101,7 +101,7 @@
"react-native-sheet-transitions": "0.1.2",
"react-native-svg": "15.11.2",
"react-native-track-player": "4.1.1",
"react-native-uikit-colors": "0.3.9",
"react-native-uikit-colors": "0.3.10",
"react-native-video": "6.10.2",
"react-native-volume-manager": "2.0.8",
"react-native-web": "0.19.13",

View File

@ -130,6 +130,7 @@ const ListItemCell: ListRenderItem<ActionRule> = (props) => {
const ListItemCellImpl: ListRenderItem<ActionRule> = ({ item: rule }) => {
const navigation = useNavigation()
const colors = useColors()
return (
<SwipeableItem
swipeRightToCallAction

View File

@ -9,7 +9,7 @@ import { StyleSheet, View } from "react-native"
import { GestureHandlerRootView } from "react-native-gesture-handler"
import { KeyboardProvider } from "react-native-keyboard-controller"
import { SheetProvider } from "react-native-sheet-transitions"
import { useCurrentColors } from "react-native-uikit-colors"
import { useCurrentColorsVariants } from "react-native-uikit-colors"
import { ErrorBoundary } from "../components/common/ErrorBoundary"
import { sqlite } from "../database"
@ -19,7 +19,7 @@ import { MigrationProvider } from "./migration"
export const RootProviders = ({ children }: { children: ReactNode }) => {
useDrizzleStudio(sqlite)
const currentThemeColors = useCurrentColors()
const currentThemeColors = useCurrentColorsVariants()
return (
<MigrationProvider>

View File

@ -996,8 +996,8 @@ importers:
specifier: 4.1.1
version: 4.1.1(patch_hash=debcf90daeaf7d38c744ecb11cded73b5bfc671b8d0937865ec21307414761b3)(react-native@0.77.1(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(@types/react@18.3.12)(bufferutil@4.0.9)(react@18.3.1)(utf-8-validate@6.0.5))(react@18.3.1)
react-native-uikit-colors:
specifier: 0.3.9
version: 0.3.9(d4c721057694a6ad309a156a4338c29b)
specifier: 0.3.10
version: 0.3.10(d4c721057694a6ad309a156a4338c29b)
react-native-video:
specifier: 6.10.2
version: 6.10.2(react-native@0.77.1(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(@types/react@18.3.12)(bufferutil@4.0.9)(react@18.3.1)(utf-8-validate@6.0.5))(react@18.3.1)
@ -6527,8 +6527,8 @@ packages:
os: [darwin]
hasBin: true
apple-uikit-colors@0.3.9:
resolution: {integrity: sha512-IRT6zDojtFIDnXNvcmmvujBpmlPCGV7318ZgO8fQBFWEfzmKn8siAv6kYeRnyPhYjp/rLAz3Zjo0E7uQllQNUw==}
apple-uikit-colors@0.3.10:
resolution: {integrity: sha512-X0JDuFSHCdTxmrspiIq2jb1u5xgh4w2Bi4C9hlBPFrlJMU2qcEdNjXDzBVg9gJAdc+UwRoOwuIikR3l0kkNJTQ==}
application-config-path@0.1.1:
resolution: {integrity: sha512-zy9cHePtMP0YhwG+CfHm0bgwdnga2X3gZexpdCwEj//dpb+TKajtiC8REEUJUSq6Ab4f9cgNy2l8ObXzCXFkEw==}
@ -13341,8 +13341,8 @@ packages:
shaka-player:
optional: true
react-native-uikit-colors@0.3.9:
resolution: {integrity: sha512-/T3BpJ2K6LaDlrjLD80UPgubM1FrkxTiJCFE1ajALTwIMTSfbKmOJ6Z78sotEhp5I9LzBCUjFukTYUjRp2WLVA==}
react-native-uikit-colors@0.3.10:
resolution: {integrity: sha512-7YgdTZw7vJWg2l7lEAkn0Prs9hLBYPRbDOxzpqLqZLKo2KSbpvf8OCPxlzFoXhZ2fLCbRWHxZZ7YjmHAZhhvgQ==}
peerDependencies:
nativewind: '>=4.1.0'
react: 18.3.1
@ -14531,8 +14531,8 @@ packages:
peerDependencies:
tailwindcss: ^2.0.0 || >=3.0.0
tailwindcss-uikit-colors@0.3.9:
resolution: {integrity: sha512-rrPkgYyWkUG5w7wcCy6QyfzdS6zEHLUkDNqYo1dWixR/LFEqwPho1+VFZfJgOnUPPQatA9CigafBHBh6tVDeGw==}
tailwindcss-uikit-colors@0.3.10:
resolution: {integrity: sha512-++vPFEcbIM+13XSl/mFcF43PY4y7qMatnN0SuxvuaMRLPVQB9PHJ/QX1ZmaeiGK9idym8RQP4tIQv4NjkkrSVw==}
tailwindcss@3.4.17:
resolution: {integrity: sha512-w33E2aCvSDP0tW9RZuNXadXlkHXqFzSkQew/aIa2i/Sj8fThxwovwlXHSPXTbAHwEIhBFXAedUhP2tueAKP8Og==}
@ -22558,7 +22558,7 @@ snapshots:
repeat-string: 1.6.1
optional: true
apple-uikit-colors@0.3.9: {}
apple-uikit-colors@0.3.10: {}
application-config-path@0.1.1: {}
@ -30923,14 +30923,14 @@ snapshots:
react: 18.3.1
react-native: 0.77.1(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(@types/react@18.3.12)(bufferutil@4.0.9)(react@18.3.1)(utf-8-validate@6.0.5)
react-native-uikit-colors@0.3.9(d4c721057694a6ad309a156a4338c29b):
react-native-uikit-colors@0.3.10(d4c721057694a6ad309a156a4338c29b):
dependencies:
apple-uikit-colors: 0.3.9
apple-uikit-colors: 0.3.10
nativewind: 4.1.23(react-native-reanimated@3.17.1(@babel/core@7.26.10)(react-native@0.77.1(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(@types/react@18.3.12)(bufferutil@4.0.9)(react@18.3.1)(utf-8-validate@6.0.5))(react@18.3.1))(react-native-safe-area-context@5.3.0(react-native@0.77.1(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(@types/react@18.3.12)(bufferutil@4.0.9)(react@18.3.1)(utf-8-validate@6.0.5))(react@18.3.1))(react-native-svg@15.11.2(react-native@0.77.1(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(@types/react@18.3.12)(bufferutil@4.0.9)(react@18.3.1)(utf-8-validate@6.0.5))(react@18.3.1))(react-native@0.77.1(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(@types/react@18.3.12)(bufferutil@4.0.9)(react@18.3.1)(utf-8-validate@6.0.5))(react@18.3.1)(tailwindcss@3.4.17(ts-node@10.9.2(@types/node@22.13.10)(typescript@5.8.2)))
react: 18.3.1
react-native: 0.77.1(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(@types/react@18.3.12)(bufferutil@4.0.9)(react@18.3.1)(utf-8-validate@6.0.5)
tailwindcss: 3.4.17(ts-node@10.9.2(@types/node@22.13.10)(typescript@5.8.2))
tailwindcss-uikit-colors: 0.3.9
tailwindcss-uikit-colors: 0.3.10
react-native-video@6.10.2(react-native@0.77.1(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(@types/react@18.3.12)(bufferutil@4.0.9)(react@18.3.1)(utf-8-validate@6.0.5))(react@18.3.1):
dependencies:
@ -32363,9 +32363,9 @@ snapshots:
dependencies:
tailwindcss: 3.4.17(ts-node@10.9.2(@types/node@22.13.10)(typescript@5.8.2))
tailwindcss-uikit-colors@0.3.9:
tailwindcss-uikit-colors@0.3.10:
dependencies:
apple-uikit-colors: 0.3.9
apple-uikit-colors: 0.3.10
tailwindcss@3.4.17(ts-node@10.9.2(@types/node@22.13.10)(typescript@5.8.2)):
dependencies: