This repository was archived by the owner on Dec 3, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -59,7 +59,8 @@ export function useNavigationEvents(callback: NavigationEventCallback) {
59
59
const getLatestCallback = useGetter ( callback ) ;
60
60
61
61
// It's important to useLayoutEffect because we want to ensure we subscribe synchronously to the mounting
62
- // of the component, similarly to what would happen if we did use componentDidMount (that we use in <NavigationEvents/>)
62
+ // of the component, similarly to what would happen if we did use componentDidMount
63
+ // (that we use in <NavigationEvents/>)
63
64
// When mounting/focusing a new screen and subscribing to focus, the focus event should be fired
64
65
// It wouldn't fire if we did subscribe with useEffect()
65
66
useLayoutEffect ( ( ) => {
@@ -82,12 +83,12 @@ export function useNavigationEvents(callback: NavigationEventCallback) {
82
83
} , [ navigation . state . key ] ) ;
83
84
}
84
85
85
- export type FocusState = {
86
+ export interface FocusState {
86
87
isFocused : boolean ;
87
88
isBlurring : boolean ;
88
89
isBlurred : boolean ;
89
90
isFocusing : boolean ;
90
- } ;
91
+ }
91
92
92
93
const emptyFocusState : FocusState = {
93
94
isFocused : false ,
Original file line number Diff line number Diff line change 8
8
"defaultSeverity" : " error" ,
9
9
"jsRules" : {},
10
10
"rules" : {
11
- "quotemark" : [true , " single " , " jsx-double " ],
11
+ "quotemark" : [false ],
12
12
"ordered-imports" : false ,
13
13
"object-literal-sort-keys" : false ,
14
14
"arrow-parens" : [true , " ban-single-arg-parens" ],
You can’t perform that action at this time.
0 commit comments