GithubHelp home page GithubHelp logo

focus about react-native-gifted-chat HOT 11 CLOSED

faridsafi avatar faridsafi commented on May 22, 2024
focus

from react-native-gifted-chat.

Comments (11)

FaridSafi avatar FaridSafi commented on May 22, 2024

Hello @siwymilek, which react-native version ?

from react-native-gifted-chat.

FaridSafi avatar FaridSafi commented on May 22, 2024

if you are talking about the keyboard return button, you need to use submitOnReturn={true}

from react-native-gifted-chat.

siwymilek avatar siwymilek commented on May 22, 2024

I'm sorry i didn't explain my problem well enough. After sending message focus is lost and text input disappears, so I can't write next message. Look at my screen and note that there is no text input :/ Any clue?

from react-native-gifted-chat.

FaridSafi avatar FaridSafi commented on May 22, 2024

Normally it should work because of keyboardShouldPersistTaps={true} of the listView

Can you try to add at the begining of the onSend method please:
this.refs.textInput.focus();

from react-native-gifted-chat.

siwymilek avatar siwymilek commented on May 22, 2024

This solving my problem partially. Still can't hide and open again keyboard.

from react-native-gifted-chat.

FaridSafi avatar FaridSafi commented on May 22, 2024

which RN version are you using ?

from react-native-gifted-chat.

siwymilek avatar siwymilek commented on May 22, 2024

0.1.7

from react-native-gifted-chat.

FaridSafi avatar FaridSafi commented on May 22, 2024

Are you embedding the component inside a ScrollView ? If yes you can try to embed it inside a View instead

from react-native-gifted-chat.

siwymilek avatar siwymilek commented on May 22, 2024

Nope, I embedded component inside TabBarIOS.Item and then inside View.

from react-native-gifted-chat.

siwymilek avatar siwymilek commented on May 22, 2024

Ok I got it. Navigation Bar moves down Messenger and then a part of component was hidden.

from react-native-gifted-chat.

FaridSafi avatar FaridSafi commented on May 22, 2024

Great, I close this issue then. Thank you

from react-native-gifted-chat.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.