@hoddy-ui/core 1.1.0 → 1.1.1

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.
@@ -1,10 +1,12 @@
1
1
  type configTypes = {
2
2
  GOOGLE_MAP_API_KEY?: string;
3
3
  DEFAULT_FONT_FAMILY?: string;
4
+ EDGE_TO_EDGE?: boolean;
4
5
  };
5
6
 
6
7
  let config: configTypes = {
7
8
  GOOGLE_MAP_API_KEY: "",
9
+ EDGE_TO_EDGE: false,
8
10
  };
9
11
 
10
12
  export function setConfig(key: configTypes): void {
@@ -7,6 +7,7 @@ type configProps = {
7
7
  googleMapApiKey?: string;
8
8
  colors?: extraColorTypes;
9
9
  fontFamily?: string;
10
+ edgeToEdge?: boolean;
10
11
  };
11
12
 
12
13
  export function initialize(config: configProps): void {
@@ -14,6 +15,7 @@ export function initialize(config: configProps): void {
14
15
  setConfig({
15
16
  GOOGLE_MAP_API_KEY: config.googleMapApiKey,
16
17
  DEFAULT_FONT_FAMILY: config.fontFamily,
18
+ EDGE_TO_EDGE: config.edgeToEdge ?? false,
17
19
  });
18
20
  if (config.colors) setExtraColors(config.colors);
19
21
  } catch (error) {
@@ -5,6 +5,7 @@ import React, { createContext, useEffect, useReducer } from "react";
5
5
  import { Platform, useColorScheme } from "react-native";
6
6
  import { SafeAreaProvider } from "react-native-safe-area-context";
7
7
  import FlashMessage from "../Components/FlashMessage";
8
+ import { getConfig } from "../config/KeyManager";
8
9
  import { useColors, useTheme } from "../hooks";
9
10
  import {
10
11
  ThemeActionTypes,
@@ -41,9 +42,10 @@ const ConfigureSystemUI = () => {
41
42
  const colors = useColors();
42
43
 
43
44
  useEffect(() => {
45
+ const config = getConfig();
44
46
  if (colors) {
45
47
  SystemUI.setBackgroundColorAsync(colors.white[1]);
46
- if (Platform.OS === "android") {
48
+ if (Platform.OS === "android" && !config.EDGE_TO_EDGE) {
47
49
  NavigationBar.setBackgroundColorAsync(colors.white[1]);
48
50
  if (theme === "dark") {
49
51
  NavigationBar.setButtonStyleAsync("light");
package/src/types.ts CHANGED
@@ -145,6 +145,7 @@ export interface IconButtonProps {
145
145
 
146
146
  export type locatorLocation = {
147
147
  description: string;
148
+ formatted_address?: string;
148
149
  longitude: number;
149
150
  latitude: number;
150
151
  };