[FILL THIS OUT]
[FILL THIS OUT]
[FILL THIS OUT]
Also hit this issue after upgrading to Gifted Chat 0.6.0
Issue Description
I have react-native-video installed separately for use elsewhere in the app.
Upgraded to Gifted Chat 0.6.0, started getting red screen error saying "Tried to register two views with the same name RCTVideo".
Changed react-native-video version from 4.0.1 --> 3.2.1 to match Gifted Chat dependency. Issues persisted.
Steps to Reproduce / Code Snippets
Install react-native-video and react-native-gifted-chat.
Use react-native-video elsewhere in app?
Observe crash.
Expected Results
Should not crash
Additional Information
Uninstalling react-native-video fixes the crash.
Ideally, I would like to have both react-native-video and react-native-gifted-chat installed at the same time.
Possibly related to #1095
Yes @adilosa that PR resolves this issue. Just need to stub in react-native-video in that PR to pass the tests.
Hi, i am also facing the same issue ..
https://github.com/react-native-community/react-native-video/issues/1450
do we know when this will be fixed ?
at the moment, i delete react-native-video in gifted-chat/node-module. it is just a trick
Yep same issue here. I also deleted gifted-chat/node-modules/react-native-video dir. Hoping to get a solution from you.
it should work :D
Thanks, i found the alternate solution only if you are not having video in chat you can downgrade the version to use both libraries together
"react-native-gifted-chat": "^0.4.3"
But with this video will not supported in chat.
FWIW @ahartzog's fork has been working for me, until the PR gets merged.
https://github.com/nerdfitness/react-native-gifted-chat
"react-native-gifted-chat": "git+https://github.com/nerdfitness/react-native-gifted-chat.git",
I have solve this problem by following steps--
1> install separately "react-native-video"
2> Delete "react-native-video" folder from Node-Modules of Gifted Chat repositories, if it is exist..
3>after that "react-native link react-native-video"
like That:
include ':react-native-video'
project(':react-native-video').projectDir = new File(rootProject.projectDir, '../node_modules/react-
native-video/android')
ensure that link with only "android" not with "android-exoplayer"
I have solve this problem by following steps--
1> install separately "react-native-video"
2> Delete "react-native-video" folder from Node-Modules of Gifted Chat repositories, if it is exist..
3>after that "react-native link react-native-video"
like That:
include ':react-native-video'
project(':react-native-video').projectDir = new File(rootProject.projectDir, '../node_modules/react-
native-video/android')ensure that link with only "android" not with "android-exoplayer"It works for me even using the last version. Thanks
"react": "^16.8.6",
"react-native": "^0.59.4",
"react-native-video": "^4.4.1",
"react-native-video-player": "^0.10.0",
"react-native-gifted-chat-video-support": "^0.4.6",
In my case gifted-chat has the react-native-video to so inside package.json in the gifited-card i see the version is the video is 3.2.1 on my global package.json i install the same version.
rm -rf node_modules/
yarn install --frozen-lockfile.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.