-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Android: Issue when displayed in Modal #200
Comments
Can't test right now but I suggest to try to set a height to the Chat container <Image style={{
height: Dimensions.get('window').height,
}}>
<GiftedChat />
</Image> |
Yeah, I tried that earlier, but with the same results (calculating for the status bar etc.) |
I suspect that the whole view is "pushed" up, ie. the modal has full device height and that the |
Actually, digging through the react-native code I see that The issue is that
Might be worth adding to the README :-) |
Good catch @pfeiffer! |
Thanks! It's located at |
Thank you, I will add in readme |
I tried, but after modifying style.xml, it still doesn't work, but at 0.14 I can use it directly. When I upgrade to 0.27, the keyboard is blocked,please help me |
the same in the modal |
@RealAmissio I just had an issue by trying to put the chat component in a ScrollView. |
Hi @FaridSafi please help |
did you tried to implement Facebook messenger gradient? |
There is an issue with the keyboard/height adjustments when displaying the component in a
Modal
.It can be reproduced with the following simple render code:
This renders the following:
When focusing the TextInput, the component correctly resizes and positiones the input bar:
However when the code above is wrapped in a
<Modal> .. </Modal>
the following happens when focusing the TextInput:There are no issues on iOS.
The text was updated successfully, but these errors were encountered: