File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import { findFocusedRoute } from '@react-navigation/native' ;
22import React from 'react' ;
3- import type { MutableRefObject } from 'react' ;
3+ import type { RefObject } from 'react' ;
44import type { TextInput } from 'react-native' ;
55import SCREENS from '@src/SCREENS' ;
66import isReportOpenInRHP from './Navigation/helpers/isReportOpenInRHP' ;
77import navigationRef from './Navigation/navigationRef' ;
88
99type FocusCallback = ( shouldFocusForNonBlurInputOnTapOutside ?: boolean ) => void ;
1010
11- const composerRef : MutableRefObject < TextInput | null > = React . createRef < TextInput > ( ) ;
11+ const composerRef : RefObject < TextInput | null > = React . createRef < TextInput > ( ) ;
1212
1313// There are two types of composer: general composer (edit composer) and main composer.
1414// The general composer callback will take priority if it exists.
15- const editComposerRef : MutableRefObject < TextInput | null > = React . createRef < TextInput > ( ) ;
15+ const editComposerRef : RefObject < TextInput | null > = React . createRef < TextInput > ( ) ;
1616// There are two types of focus callbacks: priority and general
1717// Priority callback would take priority if it existed
1818let priorityFocusCallback : FocusCallback | null = null ;
You can’t perform that action at this time.
0 commit comments