remove more enable hooks
This commit is contained in:
@@ -4,7 +4,6 @@ import {msg} from '@lingui/macro'
|
|||||||
import {useLingui} from '@lingui/react'
|
import {useLingui} from '@lingui/react'
|
||||||
import {usePreventRemove} from '@react-navigation/native'
|
import {usePreventRemove} from '@react-navigation/native'
|
||||||
|
|
||||||
import {useEnableKeyboardControllerScreen} from '#/lib/hooks/useEnableKeyboardController'
|
|
||||||
import {
|
import {
|
||||||
type AllNavigatorParams,
|
type AllNavigatorParams,
|
||||||
type NativeStackScreenProps,
|
type NativeStackScreenProps,
|
||||||
@@ -37,8 +36,6 @@ export function FindContactsFlowScreen({navigation}: Props) {
|
|||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
useEnableKeyboardControllerScreen(true)
|
|
||||||
|
|
||||||
const setMinimalShellMode = useSetMinimalShellMode()
|
const setMinimalShellMode = useSetMinimalShellMode()
|
||||||
const effect = useCallback(() => {
|
const effect = useCallback(() => {
|
||||||
setMinimalShellMode(true)
|
setMinimalShellMode(true)
|
||||||
|
|||||||
@@ -2,7 +2,6 @@ import {useMemo, useReducer} from 'react'
|
|||||||
import {View} from 'react-native'
|
import {View} from 'react-native'
|
||||||
import * as bcp47Match from 'bcp-47-match'
|
import * as bcp47Match from 'bcp-47-match'
|
||||||
|
|
||||||
import {useEnableKeyboardControllerScreen} from '#/lib/hooks/useEnableKeyboardController'
|
|
||||||
import {useLanguagePrefs} from '#/state/preferences'
|
import {useLanguagePrefs} from '#/state/preferences'
|
||||||
import {
|
import {
|
||||||
Layout,
|
Layout,
|
||||||
@@ -60,8 +59,6 @@ export function Onboarding() {
|
|||||||
)
|
)
|
||||||
const [contactsFlowState, contactsFlowDispatch] = useFindContactsFlowState()
|
const [contactsFlowState, contactsFlowDispatch] = useFindContactsFlowState()
|
||||||
|
|
||||||
useEnableKeyboardControllerScreen(true)
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Portal>
|
<Portal>
|
||||||
<View style={[a.absolute, a.inset_0, t.atoms.bg]}>
|
<View style={[a.absolute, a.inset_0, t.atoms.bg]}>
|
||||||
|
|||||||
Reference in New Issue
Block a user