Skip to content

Commit

Permalink
Fix format with prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
dev-seb committed Jan 25, 2021
1 parent 3b98054 commit b4a82ca
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/react-native-web/src/exports/TextInput/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ const TextInput = forwardRef<TextInputProps, *>((props, forwardedRef) => {
}

function handleKeyDown(e) {
if(!Platform.isTV) {
if (!Platform.isTV) {
// Prevent key events bubbling (see #612)
e.stopPropagation();
}
Expand Down
4 changes: 2 additions & 2 deletions packages/react-native-web/src/modules/useTVEvents/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -130,7 +130,7 @@ export default function useTVEvents(
TVEventHandler.dispatchEvent(tvEvent);
},
onKeyDown: onKeyEvent,
onKeyUp: onKeyEvent,
onKeyUp: onKeyEvent
}
: {};

Expand Down

0 comments on commit b4a82ca

Please sign in to comment.