stream-chat-react-native icon indicating copy to clipboard operation
stream-chat-react-native copied to clipboard

setInputBoxRef type of AutoCompleteInput is incorrect

Open vanGalilea opened this issue 3 years ago • 1 comments

Describe the bug setInputBoxRef type of AutoCompleteInput is incorrect.

Our AutoCompleteInput expects setInputBoxRef: (ref: TextInput | null) => void;

Where my local context messageInputRef is RefObject<TextInput> originating from a regular useRef hook const messageInputRef = useRef<TextInput>(null)

To Reproduce Steps to reproduce the behavior:

const messageInputRef = useRef<TextInput>(null)

return <AutoCompleteInput setInputBoxRef={messageInputRef}/>

This should create a TS error.

Expected behavior No TS error

Additional context setInputBoxRef should be typed RefObject<TextInput>

vanGalilea avatar May 12 '22 18:05 vanGalilea

Hey team! Please add your planning poker estimate with ZenHub @Enigma-I-am @khushal87 @madsroskar @santhoshvai @vishalnarkhede

vanGalilea avatar May 24 '22 08:05 vanGalilea

:tada: This issue has been resolved in version 5.14.1 :tada:

The release is available on:

Your semantic-release bot :package::rocket:

stream-ci-bot avatar May 15 '23 13:05 stream-ci-bot