From 1c9449edde37ae9f6584e2d1bb39e4ee08cf1dba Mon Sep 17 00:00:00 2001 From: Samuel Newman Date: Mon, 8 Dec 2025 15:55:11 +0200 Subject: [PATCH] gate onboarding by geo if unsupported country --- src/screens/Onboarding/index.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/screens/Onboarding/index.tsx b/src/screens/Onboarding/index.tsx index 676d4d98ea..5c08f40cd0 100644 --- a/src/screens/Onboarding/index.tsx +++ b/src/screens/Onboarding/index.tsx @@ -20,6 +20,7 @@ import {StepFinished} from '#/screens/Onboarding/StepFinished' import {StepInterests} from '#/screens/Onboarding/StepInterests' import {StepProfile} from '#/screens/Onboarding/StepProfile' import {atoms as a, useTheme} from '#/alf' +import {useIsFindContactsFeatureEnabledBasedOnGeolocation} from '#/components/contacts/country-whitelist' import {useFindContactsFlowState} from '#/components/contacts/state' import {Portal} from '#/components/Portal' import {ScreenTransition} from '#/components/ScreenTransition' @@ -45,7 +46,10 @@ export function Onboarding() { probablySpeaksEnglish && gate('onboarding_suggested_starterpacks') - const showFindContacts = isNative && !gate('disable_onboarding_find_contacts') + const findContactsEnabled = + useIsFindContactsFeatureEnabledBasedOnGeolocation() + const showFindContacts = + isNative && findContactsEnabled && !gate('disable_onboarding_find_contacts') const [state, dispatch] = useReducer( reducer,