Gifted chat version 0.10.1 no longer builds due to dependency on react-native-video
See original GitHub issueI need to use a version of React native gifted chat which has removed the use of the react deprecated life cycle events i.e. ComponentWillReceiveProps
Steps to Reproduce / Code Snippets
yarn upgrade react-native-gifted-chat@latest react-native run-android
Loading dependency graph, done.
error: bundling failed: Error: Unable to resolve module react-native-video
from C:\Users\jason\Coding\b2b2\sgB2b\node_modules\react-native-gifted-chat\lib\MessageVideo.js
: Module react-native-video
does not exist in the Haste module map
The error persists after removing node_modules and performing a complete yarn install.
Expected Results
Successful build
Additional Information
- Nodejs version: n/a
- React version: 16.8.6
- React Native version: “0.60.4”
- react-native-gifted-chat version: 0.10.1
- Platform(s) (iOS, Android, or both?): Android
- TypeScript version: n/a
Issue Analytics
- State:
- Created 4 years ago
- Comments:5
Top Results From Across the Web
github.com-FaridSafi-react-native-gifted-chat_-_2021-10 ...
react-native-video and expo-av. Both dependencies are removed since 0.11.0 . You still be able to provide a video but you need to provide ......
Read more >React-native-gifted-chat: The Most Complete Chat UI for React ...
If you decide to specify a text prop, GiftedChat will no longer manage its own internal text state and will defer entirely to...
Read more >Getting error while running `react-native run-android`
As some has mentioned, the problem is that the RN build automatically "upgraded" to androidx.core:core:1.7.0-alpha01, which depends on SDK ...
Read more >missing 'package' key attribute on element package ... - You.com
1 Answer Sorted by: 2 check your android-> build.gradle file dependencies ... Signing with the debug keys for now, so `flutter run --release`...
Read more >react-native-gifted-chat: Versions - Openbase
Full version history for react-native-gifted-chat including change logs. ... 0.10.1. 3 years ago. Remove react-native-video from dependencies ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I don’t currently support video in my chat. I attempted to install and build the latest version of react-native-video. But 5.0.2 hangs in the build process and timeouts. Seems we have created a dependency to an unstable library which now prevents react-native-gifted-chat from building
The release comment in “0.10.1” states that react-native-video dependency has been removed, so this is very confusing.
https://github.com/FaridSafi/react-native-gifted-chat/releases/tag/v0.10.1
I have been using this Library for about 9 months with no issues and only upgraded to resolve the react deprecated lifecycle dependencies.
should be fixed with version
0.11.0