React Native Camera

Hey there!

So, I'm testing React-Native and this problem have come up, and not sure what it wants.

I have upgraded it, and also download latest versions.

This is the error:

npm WARN react-native-camera@0.6.0 requires a peer of react@>=15.4.0 but none was installed.

It won't allow me to download it running the following command

npm install react-native-camera --save

Thanks for your time.

Hey i had the same problem with react native camera

First make sure the version is up to date.Either latest or next. Unless update it as

npm install npm@latest -g

Then reinstall camera again(No need to uninstall anything, because it is not installed yet)

Here is the same issue that i opened in github now Closed because it solved the problem :)

EDIT:

i'm sure you got this error when you start to run

npm install react-native-camera@https://github.com/lwansbrough/react-native-camera.git --save

command right ? so it failed and never installed so, what you have to do is run command

npm install npm@latest -g

then run

npm install react-native-camera@https://github.com/lwansbrough/react-native-camera.git --save

back again

Comments

Popular posts from this blog

Meaning of `{}` for return expression

Get current scroll position of ScrollView in React Native

flutter websocket connection issue