diff --git a/native/components/nux-handler.react.js b/native/components/nux-handler.react.js index 2a14ab866..cfe787e53 100644 --- a/native/components/nux-handler.react.js +++ b/native/components/nux-handler.react.js @@ -1,39 +1,41 @@ // @flow import { useNavigation } from '@react-navigation/core'; import invariant from 'invariant'; import * as React from 'react'; import { isLoggedIn } from 'lib/selectors/user-selectors.js'; import { NUXTipsContext } from './nux-tips-context.react.js'; import { useSelector } from '../redux/redux-utils.js'; import { useOnFirstLaunchEffect } from '../utils/hooks.js'; +const showTipsFlag = false; + function NUXHandler(): React.Node { const nuxTipsContext = React.useContext(NUXTipsContext); invariant(nuxTipsContext, 'nuxTipsContext should be defined'); const { tipsProps } = nuxTipsContext; const loggedIn = useSelector(isLoggedIn); - if (!tipsProps || !loggedIn) { + if (!tipsProps || !loggedIn || !showTipsFlag) { return null; } return ; } function NUXHandlerInner(): React.Node { const navigation = useNavigation(); const effect = React.useCallback(() => { navigation.navigate<'NUXTipOverlayBackdrop'>({ name: 'NUXTipOverlayBackdrop', }); }, [navigation]); useOnFirstLaunchEffect('NUX_HANDLER', effect); } export { NUXHandler };