@hoddy-ui/core 1.0.9 → 1.0.11

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 CHANGED
@@ -8,7 +8,6 @@ export * from "./src/Components/Checkbox";
8
8
  export * from "./src/Components/FlashMessage";
9
9
  export * from "./src/Components/Grid";
10
10
  export * from "./src/Components/Locator";
11
- export { default as Locator } from "./src/Components/Locator";
12
11
  export * from "./src/Components/Popup";
13
12
  export * from "./src/Components/SafeAreaView";
14
13
  export { default as SelectMenu } from "./src/Components/SelectMenu";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hoddy-ui/core",
3
- "version": "1.0.9",
3
+ "version": "1.0.11",
4
4
  "description": "Core rich react native components written in typescript",
5
5
  "main": "index.ts",
6
6
  "repository": {
@@ -16,7 +16,10 @@ import Typography from "./Typography";
16
16
  const { GOOGLE_MAP_API_KEY } = getApiKey();
17
17
 
18
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");
19
+ else
20
+ console.error(
21
+ "Google map api key needs to be set to use this component \nMake sure to run initialize() with a valid google map api key"
22
+ );
20
23
 
21
24
  type predictionType = {
22
25
  id: string;
@@ -44,7 +47,7 @@ export const getPredictionsFromCoords = async (coords: any) => {
44
47
  return p;
45
48
  };
46
49
 
47
- const Locator: React.FC<LocatorProps> = ({
50
+ export const Locator: React.FC<LocatorProps> = ({
48
51
  variant = "contained",
49
52
  onLocationSelected,
50
53
  label,
@@ -224,5 +227,3 @@ const Locator: React.FC<LocatorProps> = ({
224
227
  </View>
225
228
  );
226
229
  };
227
-
228
- export default Locator;
@@ -2,7 +2,9 @@ type apikeys = {
2
2
  GOOGLE_MAP_API_KEY?: string;
3
3
  };
4
4
 
5
- let apiKey: apikeys;
5
+ let apiKey: apikeys = {
6
+ GOOGLE_MAP_API_KEY: "",
7
+ };
6
8
 
7
9
  export function setApiKey(key: apikeys): void {
8
10
  apiKey = key;