-
Notifications
You must be signed in to change notification settings - Fork 305
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[🐛] Error: Tried to register two views with the same name RNSVGRect #2507
Comments
Hey @DarylBeattie what is the version of your |
It was the latest version when I got that error. I reverted to So either: |
Currently having the same issue with using stream-chat-expo. I get the same error when wrapping my root component with the OverlayProvider from stream-chat-expo |
also downgrading stream-chat-expo to 5.18.1 worked for me too |
I think 14.1.0 in the latest version of the SDK should not cause a problem for you since we are using the same on our sample apps. We haven't tested it with >=15 so we will have to test that. |
@khushal87 i tried running npm list react-native-svg ├── react-native-svg@14.1.0 |
@khushal87 Hey, so it definitely does cause an incompatibility. I see on Apr 12 that you committed a change to package/package.json (part of this PR) that specifies For all the users using stream-chat-react-native outside of Expo, this won't make a difference since the latest svg will be retrieved, but for Expo users they'll maintain compatibility. Since there is a "stream-chat-expo", it makes sense to do what you can to maintain compatibility there. This change won't hurt StreamChat, and will help people's Expo apps to run again. Seems like a win-win. |
I have confirmed that StreamChat 5.27.0, the commit before this change was made, works with Expo50. |
What is your output of |
I can confirm that downgrading to stream-chat-expo@5.27.0 worked for me as well since the react-native-svg@14.1.0 are shared now as shown here: However, for stream-chat-expo@5.29.0 and expo@50.0.17:
react-native-svg@15.2.0 peer |
Issue
When I run my app that includes
stream-chat-expo
, in either iOS or Android (emulator or device) it crashes with the error:In the stack-trace it shows stream-chat is there after my root App.tsx.
My package-lock.json has a peer-dependency on react-native-svg, and yet I do not see that in stream-chat's package.json. (weird)
Downgrading stream-chat-expo from 5.29.0 to 5.18.1 fixed the issue for me.
Steps to reproduce
Steps to reproduce the behavior:
Expected behavior
I expect the app to start without issue.
Project Related Information
Customization
Click To Expand
Offline support
Environment
Click To Expand
package.json
:# N/A
react-native info
output:stream-chat-react-native
version you're using that has this issue:e.g. 5.4.3
e.g. Android 10
e.g. iPhone 11
Additional context
Screenshots
Click To Expand
The text was updated successfully, but these errors were encountered: