@boneframework/native-components 1.0.48 → 1.0.49
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/components/Screen.tsx +1 -1
- package/contexts/colors.ts +1 -1
- package/hooks/useColors.ts +5 -3
- package/hooks/useStyle.ts +1 -3
- package/package.json +9 -9
package/components/Screen.tsx
CHANGED
package/contexts/colors.ts
CHANGED
package/hooks/useColors.ts
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
import { useContext } from "react";
|
|
2
1
|
|
|
3
|
-
import
|
|
2
|
+
// import { useContext } from "react";
|
|
3
|
+
import colors from "../../../../config/colors";
|
|
4
|
+
// import ColorContext from "@boneframework/native-components/contexts/colors";
|
|
4
5
|
|
|
5
6
|
const useColors = () => {
|
|
6
|
-
return useContext(ColorContext);
|
|
7
|
+
// return useContext(ColorContext);
|
|
8
|
+
return colors
|
|
7
9
|
}
|
|
8
10
|
|
|
9
11
|
export default useColors;
|
package/hooks/useStyle.ts
CHANGED
|
@@ -1,11 +1,9 @@
|
|
|
1
|
-
import
|
|
1
|
+
import useColors from "@boneframework/native-components/hooks/useColors";
|
|
2
2
|
import { Platform, useColorScheme } from "react-native";
|
|
3
3
|
|
|
4
|
-
import useColors from "./useColors";
|
|
5
4
|
|
|
6
5
|
const useStyle = () => {
|
|
7
6
|
const colorScheme = useColorScheme();
|
|
8
|
-
const [mode, setMode] = useState();
|
|
9
7
|
const dark = colorScheme == 'dark';
|
|
10
8
|
const colors = useColors();
|
|
11
9
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@boneframework/native-components",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.49",
|
|
4
4
|
"description": "Expo React Native Components for Bone Framework",
|
|
5
5
|
"main": "src/Bone.ts",
|
|
6
6
|
"scripts": {
|
|
@@ -35,15 +35,15 @@
|
|
|
35
35
|
"apisauce": "^3.1.0",
|
|
36
36
|
"dayjs": "^1.11.13",
|
|
37
37
|
"expo-auth-session": "^6.0.0",
|
|
38
|
-
"expo-camera": "^
|
|
39
|
-
"expo-constants": "^
|
|
38
|
+
"expo-camera": "^17.0.10",
|
|
39
|
+
"expo-constants": "^19.1.0",
|
|
40
40
|
"expo-device": "^7.0.1",
|
|
41
|
-
"expo-image": "^
|
|
42
|
-
"expo-image-picker": "^
|
|
43
|
-
"expo-linear-gradient": "
|
|
44
|
-
"expo-location": "
|
|
45
|
-
"expo-notifications": "^0.
|
|
46
|
-
"expo-router": "^
|
|
41
|
+
"expo-image": "^3.0.11",
|
|
42
|
+
"expo-image-picker": "^17.0.9",
|
|
43
|
+
"expo-linear-gradient": "^15.0.8",
|
|
44
|
+
"expo-location": "^19.0.8",
|
|
45
|
+
"expo-notifications": "^0.32.14",
|
|
46
|
+
"expo-router": "^6.0.17",
|
|
47
47
|
"expo-secure-store": "^14.0.0",
|
|
48
48
|
"formik": "^2.4.6",
|
|
49
49
|
"jwt-decode": "^4.0.0",
|