From 43395348f91c00617f745beae15547166c274027 Mon Sep 17 00:00:00 2001 From: pandeymangg Date: Wed, 21 Jan 2026 17:29:00 +0530 Subject: [PATCH 1/4] fixes android pointer events bug --- packages/react-native/src/components/formbricks.tsx | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/packages/react-native/src/components/formbricks.tsx b/packages/react-native/src/components/formbricks.tsx index 53e35b6..9ff1ebb 100644 --- a/packages/react-native/src/components/formbricks.tsx +++ b/packages/react-native/src/components/formbricks.tsx @@ -3,6 +3,7 @@ import { Logger } from "@/lib/common/logger"; import { setup } from "@/lib/common/setup"; import { SurveyStore } from "@/lib/survey/store"; import React, { useCallback, useEffect, useSyncExternalStore } from "react"; +import { View } from "react-native"; interface FormbricksProps { appUrl: string; @@ -39,5 +40,12 @@ export function Formbricks({ appUrl, environmentId }: FormbricksProps): React.JS const getSnapshot = useCallback(() => surveyStore.getSurvey(), []); const survey = useSyncExternalStore(subscribe, getSnapshot); - return survey ? : null; + // Wrap in View with pointerEvents="box-none" to allow touches to pass through + // on Android when the survey is not visible or in transparent areas. + // Issue reference: https://github.com/formbricks/react-native/issues/23 + return ( + + {survey ? : null} + + ); } From 1dad9718c17da8895f8f43c151ee8c95ff8c8be4 Mon Sep 17 00:00:00 2001 From: pandeymangg Date: Wed, 21 Jan 2026 17:30:38 +0530 Subject: [PATCH 2/4] fixes comment --- packages/react-native/src/components/formbricks.tsx | 1 - 1 file changed, 1 deletion(-) diff --git a/packages/react-native/src/components/formbricks.tsx b/packages/react-native/src/components/formbricks.tsx index 9ff1ebb..c1a1415 100644 --- a/packages/react-native/src/components/formbricks.tsx +++ b/packages/react-native/src/components/formbricks.tsx @@ -42,7 +42,6 @@ export function Formbricks({ appUrl, environmentId }: FormbricksProps): React.JS // Wrap in View with pointerEvents="box-none" to allow touches to pass through // on Android when the survey is not visible or in transparent areas. - // Issue reference: https://github.com/formbricks/react-native/issues/23 return ( {survey ? : null} From 2a4e6159a4fe6def06d09e1dddae2f04c1f84232 Mon Sep 17 00:00:00 2001 From: pandeymangg Date: Wed, 21 Jan 2026 17:49:30 +0530 Subject: [PATCH 3/4] fix --- packages/react-native/src/components/formbricks.tsx | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/packages/react-native/src/components/formbricks.tsx b/packages/react-native/src/components/formbricks.tsx index c1a1415..877f28e 100644 --- a/packages/react-native/src/components/formbricks.tsx +++ b/packages/react-native/src/components/formbricks.tsx @@ -40,11 +40,10 @@ export function Formbricks({ appUrl, environmentId }: FormbricksProps): React.JS const getSnapshot = useCallback(() => surveyStore.getSurvey(), []); const survey = useSyncExternalStore(subscribe, getSnapshot); - // Wrap in View with pointerEvents="box-none" to allow touches to pass through - // on Android when the survey is not visible or in transparent areas. - return ( + // Wrap in View with pointerEvents="box-none" to fix Android touch event handling. + return survey ? ( - {survey ? : null} + - ); + ) : null; } From 822073997b4402bd3d6916bf453dd4855f0e7e5b Mon Sep 17 00:00:00 2001 From: pandeymangg Date: Wed, 21 Jan 2026 17:51:16 +0530 Subject: [PATCH 4/4] fix --- sonar-project.properties | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sonar-project.properties b/sonar-project.properties index 8858a8d..3a2ea7e 100644 --- a/sonar-project.properties +++ b/sonar-project.properties @@ -18,4 +18,4 @@ sonar.javascript.lcov.reportPaths=packages/react-native/coverage/lcov.info sonar.typescript.tsconfigPath=packages/react-native/tsconfig.json,apps/playground/tsconfig.json # Coverage settings -sonar.coverage.exclusions=**/node_modules/**,**/dist/**,**/build/**,**/coverage/**,**/.turbo/**,**/apps/playground/**,**/*.config.js,**/*.config.ts,**/vite.config.ts,**/vitest.setup.ts,**/tsconfig.json,**/package.json,**/pnpm-lock.yaml,**/turbo.json,**/pnpm-workspace.yaml +sonar.coverage.exclusions=**/node_modules/**,**/dist/**,**/build/**,**/coverage/**,**/.turbo/**,**/apps/playground/**,**/*.config.js,**/*.config.ts,**/vite.config.ts,**/vitest.setup.ts,**/tsconfig.json,**/package.json,**/pnpm-lock.yaml,**/turbo.json,**/pnpm-workspace.yaml,**/*.tsx