I am using GiftedChat npm for chatting mechanism in react native. It was working fine in lower react native version. I have upgraded react native version to 0.62.0
Now I am getting and exception from GiftedChat saying "TypeError: super expression must be null or function" . Error occurring in android device. See attached screenshot for details.

How to solve this?
Any kind of suggestion would be appreciated.
I solved the same issue by executing npm install [email protected] --save and didn't get that problem anymore.
There is an issue opened on Gifed Chat github repo
which describes the same problem there and provides couple of temporary solutions i myself am using this
But you need to reset your previous installation in your npm modules here's what i did
"dependencies": {
"@types/lodash.uniqueid": "^4.0.6",
"lodash.uniqueid": "^4.0.1",
"react": "16.11.0",
"react-native": "0.62.1",
"react-native-gifted-chat":"<your current version>" //delete this line
},
"react-native-gifted-chat": "git+https://github.com/StagasaurusRex/react-native-gifted-chat.git#upgrade-action-sheet"
where your previous "react-native-gifted-chat" entry was
npm install in root folderStill you should subscribe to Gifted Chat repository to look for updates, since when the official update comes out, you would want to go back to official npm package. Because User who provided temporary fix migh delete their repository.
To watch for updates click on eye icon in Gifted Chat repository.

Also if you are afraid that user who provided their temporary solution might delete their repo prematurely, you could fork Gifted Chat repo, fix errors and use it instead.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With