React Native zoom video SDK example does not work

Going into the example directory from the react-native-zoom-video-sdk-1.9.5 or the 1.7.5 version does not work. Running npm install shows that
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: react-native-zoom-video-sdk-example@1.9.5
npm ERR! Found: react-native@0.71.6
npm ERR! node_modules/react-native
npm ERR! react-native@“0.71.6” from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer react-native@“^0.41.2” from react-native-pure-jwt@2.2.2
npm ERR! node_modules/react-native-pure-jwt
npm ERR! react-native-pure-jwt@“2.2.2” from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
Which React Native Video SDK version?
1.7.5 and 1.9.5 - I tried both.

Video SDK Code Snippets
To Reproduce(If applicable)
Steps to reproduce the behavior:

  1. Download react-native-zoom-video-sdl-1.9.5
  2. Extract and open in terminal
  3. cd example
  4. npm install

Troubleshooting Routes
I’ve tried implementing into my own project with failure due to it not being able to find modules while building. I think there are some serious readme issues everywhere with the zoom sdk.

Smartphone (please complete the following information):

Additional context
The readme says to use the example folder. It won’t install anything and won’t run. If I’m doing something wrong then you need to update your readme.

We recommend that you use yarn rather than npm for the installation process as written in the doc here. Can you try using Yarn instead?
If you’re using npm < v10.2.3, I’d suggest trying again after updating to the latest LTS and use the suggested npm i --force or npm i --legacy-peer-deps as suggested in the error you posted.

This topic was automatically closed after 30 days. New replies are no longer allowed.