react-native-gifted-chat
react-native-gifted-chat copied to clipboard
Native module not found
Issue Description
Whenever I click on "Send" following error occurrs
ERROR Error: Native module not found, js engine: hermes
There are no more details logged.
Steps to Reproduce / Code Snippets
https://github.com/FaridSafi/react-native-gifted-chat?tab=readme-ov-file#example
I've used the official example
Expected Results
The message should be appended
Additional Information
- Nodejs version: v21.5.0
- React version: 18.2.0
- React Native version: 0.74.3
- react-native-gifted-chat version: ^2.6.0
- Platform(s) (iOS, Android, or both?): Android (Couldn't test iOS)
- TypeScript version: ~5.3.3
I also get the same error, error received on both Android and iOS
For me it's even before the send, it's when i run npx expo run:ios/android.
And also in 2.6.0 the property renderUsernameOnMessage: PropTypes.Requireable<boolean>; was removed so messages doesn't have username rendering.
Issue Description
Whenever I click on "Send" following error occurrs
ERROR Error: Native module not found, js engine: hermesThere are no more details logged.
Steps to Reproduce / Code Snippets
https://github.com/FaridSafi/react-native-gifted-chat?tab=readme-ov-file#example
I've used the official example
Expected Results
The message should be appended
Additional Information
- Nodejs version: v21.5.0
- React version: 18.2.0
- React Native version: 0.74.3
- react-native-gifted-chat version: ^2.6.0
- Platform(s) (iOS, Android, or both?): Android (Couldn't test iOS)
- TypeScript version: ~5.3.3
Hi Can you share full error? Also please try to run code from ./example
And also in 2.6.0 the property
renderUsernameOnMessage: PropTypes.Requireable<boolean>;was removed so messages doesn't have username rendering.
What do you mean?
https://github.com/search?q=repo%3AFaridSafi%2Freact-native-gifted-chat%20renderUsernameOnMessage&type=code
[UPDATE]
Npm install works but running the example is not working:
npx expo start
C:\Projects\Henrik\test\example\node_modules\fb-watchman\index.js:99
var error = new Error(obj.error);
^
Error: class std::system_error: CreateFileW for openFileHandle: C:\Projects\Henrik\test\src: The system cannot find the file specified.
at BunserBuf.<anonymous> (C:\Users\Henrik\Desktop\test\example\node_modules\fb-watchman\index.js:99:23)
at BunserBuf.emit (node:events:519:28)
at BunserBuf.process (C:\Projects\Henrik\test\example\node_modules\bser\index.js:292:10)
at C:\Projects\Henrik\test\example\node_modules\bser\index.js:247:12
at processTicksAndRejections (node:internal/process/task_queues:77:11)
@kesha-antonov I don't really get an error except ERROR Error: Native module not found, js engine: hermes. The example will not even install
And also in 2.6.0 the property
renderUsernameOnMessage: PropTypes.Requireable<boolean>;was removed so messages doesn't have username rendering.What do you mean?
https://github.com/search?q=repo%3AFaridSafi%2Freact-native-gifted-chat%20renderUsernameOnMessage&type=code
Note: when the project is JS there is no problem with this error, but when it's typescript there is an error.
When I go to giftedchat component the property is not present their.
It's present in Bubble component though, but even if I put the property into the Bubble component the username still does not appear.
I am getting the same issue. whenever I press the send button it throws an error, Native module not found, js engine: hermes
Did you also install reanimated?
https://docs.swmansion.com/react-native-reanimated/docs/fundamentals/getting-started/
Yes. Everything is installed as documented. Is the example working on your machine?
Looks like issue with this lib
https://github.com/uuidjs/uuid/issues/570
I'll make a fix
I resolved this error by adding a dep in my package.json to react-native-get-random-values, then npx pod-install for iOS. You'll need to rebuild for android.
I have the above issue but fixed with @jamesholcomb suggestion
Released fix in 2.6.1 https://www.npmjs.com/package/react-native-gifted-chat/v/2.6.1
Follow installation guide once again https://github.com/FaridSafi/react-native-gifted-chat?tab=readme-ov-file#installation
Compared to the previous version that did not open, now with 2.6.1 the "Native module not found" error is triggered at onSend.
Please try https://github.com/FaridSafi/react-native-gifted-chat/releases/tag/2.6.2
Follow installation guide once again https://github.com/FaridSafi/react-native-gifted-chat?tab=readme-ov-file#installation
It works now, thank you very much!
Got this issue in 2.6.3 but also resolved the same way @jamesholcomb did it in
https://github.com/FaridSafi/react-native-gifted-chat/issues/2519#issuecomment-2315623637