Skip to content

Commit

Permalink
Add 'KeyboardAvoidingView' to the boltcard details screen so the keyb…
Browse files Browse the repository at this point in the history
…oard doesn't hide the PIN text input
  • Loading branch information
chloehjung committed Aug 3, 2023
1 parent af656b6 commit 6666b43
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion screen/boltcard/details.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ import {
Text,
TouchableOpacity,
View,
TouchableWithoutFeedback
TouchableWithoutFeedback,
KeyboardAvoidingView
} from 'react-native';

import {
Expand Down Expand Up @@ -201,6 +202,9 @@ const BoltCardDetails = () => {
<View style={[styles.root, stylesHook.root]}>
<StatusBar barStyle="light-content" />
<ScrollView contentContainerStyle={[styles.root, stylesHook.root]} keyboardShouldPersistTaps="always">
<KeyboardAvoidingView
behavior={Platform.OS === 'ios' ? 'padding' : 'height'}
>
<View style={styles.scrollBody}>
{loading ?
<BlueText>Loading....</BlueText>
Expand Down Expand Up @@ -366,6 +370,8 @@ const BoltCardDetails = () => {
</>
}
</View>
</KeyboardAvoidingView>

</ScrollView>

</View>
Expand Down

0 comments on commit 6666b43

Please sign in to comment.