FaridSafi / react-native-gifted-chat

💬 The most complete chat UI for React Native
https://gifted.chat
MIT License
13.56k stars 3.55k forks source link

Focusing on input of GiftedChat #2548

Open anauk opened 1 month ago

anauk commented 1 month ago

Issue Description

On screen with GiftedChat, when try to open a modal with an input field, the focus remains on the input field of the GiftedChat. How can put cursor and tipping on input in Modal? I tried to use: if (inputRef.current) { inputRef.current.blur(); // Blur the input manually } for input of GiftedChat, but i doesn't help

Steps to Reproduce / Code Snippets

on screen with GiftedChat set up listener which shows Modal with input if need it. When Modal appears and i want white in input, keyboard appears but i don't see where i'm typing. When i close Modal i see that it was typing in input of GiftedChat.

Expected Results

If Modal was opened i can typing in input of Modal

Additional Information