From b4a82caa0dd2e1e62b15e9bc82f89a6c6252583e Mon Sep 17 00:00:00 2001 From: dev-seb Date: Mon, 25 Jan 2021 22:13:31 +0100 Subject: [PATCH] Fix format with prettier --- packages/react-native-web/src/exports/TextInput/index.js | 2 +- packages/react-native-web/src/modules/useTVEvents/index.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/react-native-web/src/exports/TextInput/index.js b/packages/react-native-web/src/exports/TextInput/index.js index 36980e73d..9195a0a50 100644 --- a/packages/react-native-web/src/exports/TextInput/index.js +++ b/packages/react-native-web/src/exports/TextInput/index.js @@ -271,7 +271,7 @@ const TextInput = forwardRef((props, forwardedRef) => { } function handleKeyDown(e) { - if(!Platform.isTV) { + if (!Platform.isTV) { // Prevent key events bubbling (see #612) e.stopPropagation(); } diff --git a/packages/react-native-web/src/modules/useTVEvents/index.js b/packages/react-native-web/src/modules/useTVEvents/index.js index 1e7827bec..f0544b588 100644 --- a/packages/react-native-web/src/modules/useTVEvents/index.js +++ b/packages/react-native-web/src/modules/useTVEvents/index.js @@ -28,7 +28,7 @@ export type TVResponderConfig = $ReadOnly<{| nextFocusUp?: ?any, onPress?: ?(event: Event) => void, onFocus?: ?(event: Event) => void, - onBlur?: ?(event: Event) => void, + onBlur?: ?(event: Event) => void |}>; export default function useTVEvents( @@ -130,7 +130,7 @@ export default function useTVEvents( TVEventHandler.dispatchEvent(tvEvent); }, onKeyDown: onKeyEvent, - onKeyUp: onKeyEvent, + onKeyUp: onKeyEvent } : {};