Skip to content

Commit ea0993e

Browse files
committed
fix
1 parent c2ac822 commit ea0993e

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

packages/react-native/src/components/formbricks.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { Logger } from "@/lib/common/logger";
33
import { setup } from "@/lib/common/setup";
44
import { SurveyStore } from "@/lib/survey/store";
55
import React, { useCallback, useEffect, useSyncExternalStore } from "react";
6+
import { View } from "react-native";
67

78
interface FormbricksProps {
89
appUrl: string;
@@ -39,5 +40,10 @@ export function Formbricks({ appUrl, environmentId }: FormbricksProps): React.JS
3940
const getSnapshot = useCallback(() => surveyStore.getSurvey(), []);
4041
const survey = useSyncExternalStore(subscribe, getSnapshot);
4142

42-
return survey ? <SurveyWebView survey={survey} /> : null;
43+
// Wrap in View with pointerEvents="box-none" to fix Android touch event handling.
44+
return survey ? (
45+
<View pointerEvents="box-none">
46+
<SurveyWebView survey={survey} />
47+
</View>
48+
) : null;
4349
}

0 commit comments

Comments
 (0)