Skip to content

Commit 2a4e615

Browse files
committed
fix
1 parent 1dad971 commit 2a4e615

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

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

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,10 @@ export function Formbricks({ appUrl, environmentId }: FormbricksProps): React.JS
4040
const getSnapshot = useCallback(() => surveyStore.getSurvey(), []);
4141
const survey = useSyncExternalStore(subscribe, getSnapshot);
4242

43-
// Wrap in View with pointerEvents="box-none" to allow touches to pass through
44-
// on Android when the survey is not visible or in transparent areas.
45-
return (
43+
// Wrap in View with pointerEvents="box-none" to fix Android touch event handling.
44+
return survey ? (
4645
<View pointerEvents="box-none">
47-
{survey ? <SurveyWebView survey={survey} /> : null}
46+
<SurveyWebView survey={survey} />
4847
</View>
49-
);
48+
) : null;
5049
}

0 commit comments

Comments
 (0)