React-native-gifted-chat: Keyboard issue for iOS

Created on 3 Apr 2017  路  10Comments  路  Source: FaridSafi/react-native-gifted-chat

Issue Description

i am using two gifted chat in one screen. first one doesn't have text input and second one has textinput .
When keyboard moves up, i cannot see the text input , this happens only for iOS.

Example code..

      <View style={{flex:1}>
        <View style={{flex:0.7}}>
          <GiftedChat
         renderInputToolbar={this.renderInput}
        />
        </View>
        <View style={{flex:0.3}}>

          <Text >text</Text>
           <GiftedChat

           />
        </View>

   </View>

renderInput()
{
return null;
}

react-native-cli: 1.2.0
react-native: 0.41.2
react-native-gifted-chat: ^0.1.3

@kfiroo @FaridSafi if you can help

wontfix

Most helpful comment

Hi @vidhyalakshmirbt @kfiroo .
I have the same issue in IOS.
Did you find some solution?

All 10 comments

@vidhyalakshmirbt Hey! Sorry, I haven't tried having 2 instances on the same page! :)
What is the expected behaviour?
Can you post some images?

i need normal behaviour like when you type a message , (click on text input) the keyboard to move up ..
I have different datasources for both gifted chat , so everything works fine except for this keyboard handling.

the text input gets hidden while the keyboard is clicked.
@kfiroo

mobile screens_1artboard 7 copy

screen looks somehting like this @kfiroo

Let me try to recap:

  • You have 2 instances of GiftedChat
  • Only the bottom instance has a text input
  • Focusing the text input should push the whole screen up
  • Sending a message should only send the message to the bottom instance

Did I get it right?

Sending a message should only send the message to the bottom instance - This point is not correct. Sending a message send to either UI depending on some conditions which i have already implemented.
I just need help with Focusing the text input should push the whole screen up
And ya first two points are correct @kfiroo

@vidhyalakshmirbt Got it!
I'll try to play around with it later today
No promises! :)

@kfiroo Thanks for the help :)

Hi @vidhyalakshmirbt @kfiroo .
I have the same issue in IOS.
Did you find some solution?

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Was this page helpful?
0 / 5 - 0 ratings