Skip to content

Commit

Permalink
refactor: use shorthand .dismiss calls
Browse files Browse the repository at this point in the history
  • Loading branch information
kirillzyusko committed Nov 14, 2024
1 parent 82e9a28 commit bef1960
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion FabricExample/src/components/KeyboardAnimation/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export default function KeyboardAnimation({
<TouchableOpacity
activeOpacity={1}
style={styles.container}
onPress={() => KeyboardController.dismiss()}
onPress={KeyboardController.dismiss}
>
<>
<View>
Expand Down
2 changes: 1 addition & 1 deletion FabricExample/src/screens/Examples/Close/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ function CloseScreen() {
<Button
testID="close_keyboard_button"
title="Close keyboard"
onPress={() => KeyboardController.dismiss()}
onPress={KeyboardController.dismiss}
/>
<TextInput
placeholder="Touch to open the keyboard..."
Expand Down
2 changes: 1 addition & 1 deletion example/src/components/KeyboardAnimation/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export default function KeyboardAnimation({
<TouchableOpacity
activeOpacity={1}
style={styles.container}
onPress={() => KeyboardController.dismiss()}
onPress={KeyboardController.dismiss}
>
<>
<View>
Expand Down
2 changes: 1 addition & 1 deletion example/src/screens/Examples/Close/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ function CloseScreen() {
<Button
testID="close_keyboard_button"
title="Close keyboard"
onPress={() => KeyboardController.dismiss()}
onPress={KeyboardController.dismiss}
/>
<TextInput
placeholder="Touch to open the keyboard..."
Expand Down

0 comments on commit bef1960

Please sign in to comment.