@hoddy-ui/core 1.0.7 → 1.0.8
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/index.ts +2 -0
- package/package.json +3 -1
- package/src/Components/Locator.tsx +5 -2
- package/src/config/index.ts +0 -2
package/index.ts
CHANGED
|
@@ -11,5 +11,7 @@ export { default as Typography } from "./src/Components/Typography";
|
|
|
11
11
|
export { default as SafeAreaView } from "./src/Components/SafeAreaView";
|
|
12
12
|
export { default as SelectMenu } from "./src/Components/SelectMenu";
|
|
13
13
|
// Others
|
|
14
|
+
|
|
15
|
+
export * from "./src/config";
|
|
14
16
|
export * from "./src/hooks";
|
|
15
17
|
export * from "./src/theme/index";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hoddy-ui/core",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.8",
|
|
4
4
|
"description": "Core rich react native components written in typescript",
|
|
5
5
|
"main": "index.ts",
|
|
6
6
|
"repository": {
|
|
@@ -17,6 +17,7 @@
|
|
|
17
17
|
"@react-navigation/native": "^6.1.6",
|
|
18
18
|
"@types/react": "^18.2.6",
|
|
19
19
|
"@types/react-native": "^0.72.0",
|
|
20
|
+
"expo-location": "^15.1.1",
|
|
20
21
|
"expo-navigation-bar": "^2.1.1",
|
|
21
22
|
"expo-system-ui": "^2.2.1",
|
|
22
23
|
"react": "^18.2.0",
|
|
@@ -35,6 +36,7 @@
|
|
|
35
36
|
"dependencies": {
|
|
36
37
|
"@react-native-async-storage/async-storage": "^1.18.1",
|
|
37
38
|
"@react-navigation/native": "^6.1.6",
|
|
39
|
+
"expo-location": "^15.1.1",
|
|
38
40
|
"expo-navigation-bar": "^2.1.1",
|
|
39
41
|
"expo-system-ui": "^2.2.1",
|
|
40
42
|
"react-native-safe-area-context": "^4.5.3",
|
|
@@ -10,10 +10,13 @@ import { useColors } from "../hooks";
|
|
|
10
10
|
import { LocatorProps } from "../types";
|
|
11
11
|
|
|
12
12
|
// import { GOOGLE_MAP_API } from "../../api/config";
|
|
13
|
+
import { getApiKey } from "../config/KeyManager";
|
|
13
14
|
import Typography from "./Typography";
|
|
14
|
-
import { GOOGLE_MAP_API_KEY } from "../../api/config";
|
|
15
15
|
|
|
16
|
-
|
|
16
|
+
const { GOOGLE_MAP_API_KEY } = getApiKey();
|
|
17
|
+
|
|
18
|
+
if (GOOGLE_MAP_API_KEY) Location.setGoogleApiKey(GOOGLE_MAP_API_KEY);
|
|
19
|
+
else console.error("Google map api key needs to be set to use this component");
|
|
17
20
|
|
|
18
21
|
type predictionType = {
|
|
19
22
|
id: string;
|
package/src/config/index.ts
CHANGED
|
@@ -18,8 +18,6 @@ export function initialize(config: configProps): void {
|
|
|
18
18
|
setApiKey({
|
|
19
19
|
GOOGLE_MAP_API_KEY: config.googleMapApiKey,
|
|
20
20
|
});
|
|
21
|
-
|
|
22
|
-
console.log("Got key from frontend", config.googleMapApiKey);
|
|
23
21
|
} catch (error) {
|
|
24
22
|
console.error("Error reading the config file:", error);
|
|
25
23
|
}
|