diff --git a/packages/legacy/core/App/contexts/configuration.tsx b/packages/legacy/core/App/contexts/configuration.tsx index b9ac8e8ed5..127ce6c72d 100644 --- a/packages/legacy/core/App/contexts/configuration.tsx +++ b/packages/legacy/core/App/contexts/configuration.tsx @@ -49,6 +49,7 @@ export interface ConfigurationContext { enableImplicitInvitations?: boolean enableReuseConnections?: boolean showPreface?: boolean + disableOnboardingSkip?: boolean } export const ConfigurationContext = createContext(null as unknown as ConfigurationContext) diff --git a/packages/legacy/core/App/defaultConfiguration.ts b/packages/legacy/core/App/defaultConfiguration.ts index f85b202a7b..da5c998244 100644 --- a/packages/legacy/core/App/defaultConfiguration.ts +++ b/packages/legacy/core/App/defaultConfiguration.ts @@ -54,4 +54,5 @@ export const defaultConfiguration: ConfigurationContext = { enableTours: false, supportedLanguages: Object.keys(translationResources) as Locales[], showPreface: false, + disableOnboardingSkip: false, } diff --git a/packages/legacy/core/App/navigators/RootStack.tsx b/packages/legacy/core/App/navigators/RootStack.tsx index 48ca3ddc14..c2b5c107f9 100644 --- a/packages/legacy/core/App/navigators/RootStack.tsx +++ b/packages/legacy/core/App/navigators/RootStack.tsx @@ -60,6 +60,7 @@ const RootStack: React.FC = () => { showPreface, enableImplicitInvitations, enableReuseConnections, + disableOnboardingSkip, } = useConfiguration() useDeepLinks() @@ -310,6 +311,7 @@ const RootStack: React.FC = () => { nextButtonText={t('Global.Next')} previousButtonText={t('Global.Back')} pages={pages(onTutorialCompleted, OnboardingTheme)} + disableSkip={disableOnboardingSkip} style={carousel} /> )}