abbasfreestyle / react-native-af-video-player

MIT License
381 stars 288 forks source link

Getting error after installation #155

Closed aneena-thomas closed 3 years ago

aneena-thomas commented 3 years ago

Got the below error after use Simulator Screen Shot - iPhone 11 Pro Max - 2021-06-02 at 13 15 22 @

vikrant-kukadiya commented 3 years ago

@aneena-thomas Please follow the below steps..... That works for me.

1) yarn add react-native-video // npm install react-native-video 1) remove line no. 10 "react-native-video": "^2.0.0" from node_modules/react-native-af-video-player/package.json 2) Remove complete folder react-native-video from path /node_modules/react-native-af-video-player/node_modules/ 4) Try to run application. It started working.

Note: So, The problem is library conflicting react-native-video versions. The library has used react-native-video 2.3.1 however the latest one is 5.1.1

Solution: You can form this library and change the react-native-video version to 5.1.1 at package.json and use that in your application.

Let me know if that not working for you..... Thanks :)

aneena-thomas commented 3 years ago

Hi @vikrant-k-simformsolutions thanks for the reply, its working thank you.

sraza295 commented 1 year ago

Thanks bro. You saved my day