diff --git a/configOption.tsx b/configOption.tsx
index 2d6cb61..f0ce800 100644
--- a/configOption.tsx
+++ b/configOption.tsx
@@ -21,8 +21,8 @@ export function ConfigOption({ value, label, onChangeText, options }: ConfigOpti
Options
- {options.map((option) =>
-
+ {options.map((option, idx) =>
+
)}
diff --git a/hostApp.tsx b/hostApp.tsx
index f5ffd79..563bb5f 100644
--- a/hostApp.tsx
+++ b/hostApp.tsx
@@ -41,17 +41,19 @@ export function HostApp({ env: defaultEnv }: HostAppProps) {
}
React.useEffect(() => {
- Remitly.initialize({
- appId,
- customerCountry,
- customerLanguage,
- defaultReceiveCountry: receiveCountry,
- environment: environment as Environments,
- enableConsoleLogs: true,
- onMessage,
- onStateChange: setRemitlyState
- });
- }, [appId, customerCountry, customerLanguage, receiveCountry, environment]);
+ if (Remitly) {
+ Remitly.initialize({
+ appId,
+ customerCountry,
+ customerLanguage,
+ defaultReceiveCountry: receiveCountry,
+ environment: environment as Environments,
+ enableConsoleLogs: true,
+ onMessage,
+ onStateChange: setRemitlyState
+ });
+ }
+ }, [appId, customerCountry, customerLanguage, receiveCountry, environment, Remitly]);
function addText() {
setAllowIncreasedHeight(true);