Skip to content

Commit 3960317

Browse files
committed
fix page height
1 parent ddfaa79 commit 3960317

File tree

4 files changed

+13
-7
lines changed

4 files changed

+13
-7
lines changed

mobile/AppRoot.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,9 @@ export default function App() {
154154
}}
155155
>
156156
<MainStack.Navigator
157-
initialRouteName={initialComponent}
157+
initialRouteName={
158+
ROUTES.Onboarding.SafetyCheck
159+
}
158160
screenOptions={NO_HEADER}
159161
>
160162
<MainStack.Screen

mobile/api/gen/src/runtime.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,9 @@
1313
*/
1414

1515
import Constants from "expo-constants";
16-
import { IS_DEVELOPMENT_BUILD } from "../../../utils/env.utils";
1716

1817
export const BASE_PATH = (
19-
(IS_DEVELOPMENT_BUILD
18+
(false
2019
? `http://${Constants.expoConfig?.hostUri?.split(":").shift()?.concat(":3000")}`
2120
: "https://api.offlinery.io") + "/v1"
2221
).replace(/\/+$/, "");

mobile/components/OCalendlyInline/OCalendlyInline.styles.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ import { Dimensions, StyleSheet } from "react-native";
33
const { height } = Dimensions.get("window"); // Get the window dimensions
44

55
const styles = StyleSheet.create({
6+
container: {
7+
flex: 1,
8+
width: "100%",
9+
},
610
calendlyInlineWidget: {
711
fontSize: 16,
812
lineHeight: 19.2,
@@ -14,6 +18,7 @@ const styles = StyleSheet.create({
1418
width: "100%",
1519
height: "100%",
1620
minHeight: 600,
21+
flex: 1,
1722
},
1823
calendlyInlineWidgetAll: {
1924
fontSize: 16,

mobile/components/OCalendlyInline/OCalendlyInline.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { TR, i18n } from "@/localization/translate.service";
22
import * as Sentry from "@sentry/react-native";
33
import React, { FC, useRef, useState } from "react";
4-
import { DimensionValue, Platform } from "react-native";
4+
import { DimensionValue, Platform, View } from "react-native";
55
import { WebView, WebViewMessageEvent } from "react-native-webview";
66
import {
77
CalendlyEvent,
@@ -138,12 +138,12 @@ const OCalendlyInline: FC<Props> = ({
138138
`;
139139

140140
return (
141-
<>
141+
<View style={styles.container}>
142142
{isLoading && <LoadingSpinner />}
143143
<WebView
144144
ref={webViewRef}
145145
userAgent="Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/98.0.4758.102 Safari/537.36"
146-
style={[styles.webView, { height: webViewHeight }]}
146+
style={styles.webView}
147147
source={{
148148
html: webViewHtml,
149149
baseUrl: "https://calendly.com",
@@ -184,7 +184,7 @@ const OCalendlyInline: FC<Props> = ({
184184
}}
185185
title={iframeTitle || i18n.t(TR.calendlySchedulingPageDefault)}
186186
/>
187-
</>
187+
</View>
188188
);
189189
};
190190

0 commit comments

Comments
 (0)