W
W
Wasya UK2019-05-03 20:33:55
Android
Wasya UK, 2019-05-03 20:33:55

Why is react-native link not working?

I have been studying react-native for a week now. 3 days of which I just tried to install google authentication and a video stream player, today I decided to install react-native-sensors. Everything had to be installed manually because the react-native link didn't work (wanted me to write package in androidManifest.xml). 1 time I was able to normally write a module there and run the command, but for this I needed to know com.(...) . I went to github, there are not the instructions for installing the module. I think: maybe I'm stupid, I'll go look on stackoverflow, and they write install the module and write the command react-native link dependency-name. Well, it doesn’t work, in the console it writes to write to the manifest

react-native link react-native-sensors

rnpm-install ERR! ERRPACKAGEJSON No package found. Are you sure this is a React Native project?

Package name not found in Z:\phone-app\android\app\src\debug\AndroidManifest.xml

What should I do to make everything work properly? For the 3rd day I just sit and try to install the modules I need, which simply do not work at the end. I will be glad to all answers. ATP in advance

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question