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) {
5959 const getLatestCallback = useGetter ( callback ) ;
6060
6161 // 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/>)
6364 // When mounting/focusing a new screen and subscribing to focus, the focus event should be fired
6465 // It wouldn't fire if we did subscribe with useEffect()
6566 useLayoutEffect ( ( ) => {
@@ -82,12 +83,12 @@ export function useNavigationEvents(callback: NavigationEventCallback) {
8283 } , [ navigation . state . key ] ) ;
8384}
8485
85- export type FocusState = {
86+ export interface FocusState {
8687 isFocused : boolean ;
8788 isBlurring : boolean ;
8889 isBlurred : boolean ;
8990 isFocusing : boolean ;
90- } ;
91+ }
9192
9293const emptyFocusState : FocusState = {
9394 isFocused : false ,
Original file line number Diff line number Diff line change 88 "defaultSeverity" : " error" ,
99 "jsRules" : {},
1010 "rules" : {
11- "quotemark" : [true , " single " , " jsx-double " ],
11+ "quotemark" : [false ],
1212 "ordered-imports" : false ,
1313 "object-literal-sort-keys" : false ,
1414 "arrow-parens" : [true , " ban-single-arg-parens" ],
You can’t perform that action at this time.
0 commit comments