lucy-cli 2.0.0-alpha.2 → 2.0.0-alpha.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/init.js +37 -16
- package/files/expo/.prettierrc.js +16 -0
- package/files/expo/.yarnrc.yml +1 -1
- package/files/expo/assets/fonts/SpaceMono-Regular.ttf +0 -0
- package/files/expo/assets/images/adaptive-icon.png +0 -0
- package/files/expo/assets/images/favicon.png +0 -0
- package/files/expo/assets/images/icon.png +0 -0
- package/files/expo/assets/images/splash-icon.png +0 -0
- package/files/expo/babel.config.js +7 -6
- package/files/expo/components/.gitkeep +0 -0
- package/files/expo/components/ui/.gitkeep +0 -0
- package/files/expo/constants/theme.ts +17 -17
- package/files/expo/{eslint.config.js → eslint.config.mjs} +15 -19
- package/files/expo/hooks/useColorScheme.ts +13 -7
- package/files/expo/index.ts +11 -0
- package/files/expo/lib/data.ts +36 -33
- package/files/expo/lib/utils/index.ts +7 -2
- package/files/expo/lib/utils/polyfills.ts +1 -1
- package/files/expo/lib/wix/client.ts +3 -5
- package/files/expo/lib/wix/error.ts +3 -0
- package/files/expo/lib/wix/index.ts +1 -0
- package/files/expo/metro.config.js +34 -0
- package/files/expo/patches/@wix-sdk-npm-1.15.24-1adbec98e9.patch +20 -0
- package/files/expo/scripts/reset-project.ts +116 -0
- package/files/expo/tailwind.config.js +61 -196
- package/files/expo/tsconfig.json +31 -26
- package/package.json +1 -1
- package/src/init.ts +52 -20
- package/files/expo/.prettierrc.json +0 -16
- package/files/expo/app/(tabs)/_layout.tsx +0 -45
- package/files/expo/app/_layout.tsx +0 -45
- package/files/expo/constants/Colors.ts +0 -27
- package/files/expo/hooks/useColorScheme.web.ts +0 -21
- package/files/expo/hooks/useColorSchemeRN.ts +0 -1
- package/files/expo/hooks/useThemeColor.ts +0 -21
- /package/files/expo/{readme.md → README.md} +0 -0
- /package/files/expo/{types/nativewind-env.d.ts → nativewind-env.d.ts} +0 -0
@@ -1,21 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* Learn more about light and dark modes:
|
3
|
-
* https://docs.expo.dev/guides/color-schemes/
|
4
|
-
*/
|
5
|
-
|
6
|
-
import { Colors } from '@/constants/Colors';
|
7
|
-
import { useColorScheme } from './useColorSchemeRN';
|
8
|
-
|
9
|
-
export function useThemeColor(
|
10
|
-
props: { light?: string; dark?: string },
|
11
|
-
colorName: keyof typeof Colors.light & keyof typeof Colors.dark
|
12
|
-
) {
|
13
|
-
const theme = useColorScheme() ?? 'light';
|
14
|
-
const colorFromProps = props[theme];
|
15
|
-
|
16
|
-
if (colorFromProps) {
|
17
|
-
return colorFromProps;
|
18
|
-
} else {
|
19
|
-
return Colors[theme][colorName];
|
20
|
-
}
|
21
|
-
}
|
File without changes
|
File without changes
|