-
Notifications
You must be signed in to change notification settings - Fork 352
Closed
Labels
Description
Issue
Hello I have been working on almost 4 different versions of stream chat react native, all the way from 6.5 to 8.4
In version 8.x, the text state is not exposed in the useMessageInputContext, so if we try to make custom ui, we are not able to get the actual text, there is a work-around to use the inputRef.current which is exposed and can be used to get the current message typed.
Steps to reproduce
Steps to reproduce the behavior:
- Go to '...'
- Click on '....'
- Scroll down to '....'
- See error
etc...
Expected behavior
Project Related Information
Customization
Click To Expand
const { text, setText, sendMessage, uploadNewFile, closeAttachmentPicker } = useMessageInputContext();
Offline support
- I have enabled offline support.
- The feature I'm having does not occur when offline support is disabled. (stripe out if not applicable)
Environment
Click To Expand
package.json
:
# N/A
react-native info
output:
OUTPUT GOES HERE
- Platform that you're experiencing the issue on:
- iOS
- Android
- iOS but have not tested behavior on Android
- Android but have not tested behavior on iOS
- Both
stream-chat-react-native
version you're using that has this issue:e.g. 5.4.3
- Device/Emulator info:
- I am using a physical device
- OS version:
e.g. Android 10
- Device/Emulator:
e.g. iPhone 11
Additional context
Screenshots
Click To Expand