Skip to content
This repository was archived by the owner on Dec 3, 2022. It is now read-only.

Commit 24b1cb2

Browse files
committed
tslint
1 parent 9754340 commit 24b1cb2

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

src/Hooks.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff 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

9293
const emptyFocusState: FocusState = {
9394
isFocused: false,

tslint.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
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"],

0 commit comments

Comments
 (0)