Skip to content

Commit 24cf975

Browse files
authored
Merge pull request zingolabs#767 from juanky201271/dev_android_keyboard_overlap_mesage_field
message field is behind the Keyboard
2 parents 78488a4 + d82eaea commit 24cf975

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

components/Messages/components/MessageList.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -517,7 +517,7 @@ const MessageList: React.FunctionComponent<MessageListProps> = ({
517517
height: address
518518
? `${
519519
100 -
520-
((memoFieldHeight + (keyboardVisible ? (Platform.OS === GlobalConst.platformOSandroid ? 0 : 60) : 0)) *
520+
((memoFieldHeight + (keyboardVisible ? (Platform.OS === GlobalConst.platformOSandroid ? 40 : 60) : 0)) *
521521
100) /
522522
dimensions.height
523523
}%`
@@ -794,7 +794,7 @@ const MessageList: React.FunctionComponent<MessageListProps> = ({
794794
<View
795795
style={{
796796
height: `${
797-
((memoFieldHeight + (keyboardVisible ? (Platform.OS === GlobalConst.platformOSandroid ? 0 : 60) : 0)) *
797+
((memoFieldHeight + (keyboardVisible ? (Platform.OS === GlobalConst.platformOSandroid ? 40 : 60) : 0)) *
798798
100) /
799799
dimensions.height
800800
}%`,
@@ -894,6 +894,7 @@ const MessageList: React.FunctionComponent<MessageListProps> = ({
894894
{!!memoIcon && !disableSend && (
895895
<TouchableOpacity
896896
onPress={() => {
897+
Keyboard.dismiss();
897898
setMemoModalVisible(true);
898899
}}>
899900
<FontAwesomeIcon style={{ margin: 7 }} size={30} icon={faMagnifyingGlassPlus} color={colors.border} />

0 commit comments

Comments
 (0)