Skip to content

Commit

Permalink
fix: dismiss keyboard
Browse files Browse the repository at this point in the history
  • Loading branch information
tienifr committed May 14, 2024
1 parent 59028d0 commit c4da6f1
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/components/TextPicker/TextSelectorModal.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React, {useState} from 'react';
import {View} from 'react-native';
import {Keyboard, View} from 'react-native';
import Button from '@components/Button';
import HeaderWithBackButton from '@components/HeaderWithBackButton';
import Modal from '@components/Modal';
Expand Down Expand Up @@ -57,7 +57,10 @@ function TextSelectorModal({value, description = '', onValueSelected, isVisible,
large
pressOnEnter
text={translate('common.save')}
onPress={() => onValueSelected?.(currentValue ?? '')}
onPress={() => {
Keyboard.dismiss();
onValueSelected?.(currentValue ?? '');
}}
/>
</ScrollView>
</ScreenWrapper>
Expand Down

0 comments on commit c4da6f1

Please sign in to comment.