Warning: Failed prop type: Invalid prop 'extraData' of type 'array' supplied to 'GiftedChat', expected 'object'.
Here is my extraData :
extraData={[this.dataChat, index]}
When i put an object like this :
extraData={{dataChat : this.dataChat, index : index}}
I get the reverse warning :
Warning: Failed prop type: Invalid prop 'extraData' of type 'object' supplied to 'GiftedChat', expected 'array'.
Why did you change
static propTypes = {
...
extraData: PropTypes.object
...
}
to
static propTypes = {
...
extraData: PropTypes.array
...
}
in MessageContainer.tsx ?
same issue
Same issue.
I'll tell you more, guys. When passing array getting "expected 'object'" warning. When passing object getting "expected 'array'". LOL
@xcarpentier could you look at this problem ?
Same issue.
I'll tell you more, guys. When passing array getting "expected 'object'" warning. When passing object getting "expected 'array'". LOL
LOL
Same issue.
I'll tell you more, guys. When passing array getting "expected 'object'" warning. When passing object getting "expected 'array'". LOL
I'm getting the example same issue, it's driving me nuts lol
Same issue.
I'll tell you more, guys. When passing array getting "expected 'object'" warning. When passing object getting "expected 'array'". LOL
Why am I still getting this issue on "react-native-gifted-chat": "^0.16.3" ? Please help
The fix has not been published to NPM yet as 0.16.3 predates the PR
will this be published to npm ? what is the proper way to silent this warning until then ?
Most helpful comment
Same issue.
I'll tell you more, guys. When passing array getting "expected 'object'" warning. When passing object getting "expected 'array'". LOL