react-native-photo-view icon indicating copy to clipboard operation
react-native-photo-view copied to clipboard

Warning: Native component for "RNPhotoView" does not exist

Open rafameyer opened this issue 7 years ago • 9 comments

Working on Android but not on iOS

screen shot 2017-12-12 at 16 50 39

rafameyer avatar Dec 12 '17 18:12 rafameyer

I had to manually add it to xcode:

  • drag RNPhotoView.xcodeproj from node_modules/react-native-photo-view/ios to your Libraries folder
  • In Build Phases under Link Binary with Libraries use the + icon to add libRNPhotoView.a It would be good to include those steps in the README file

rnowm avatar Dec 14 '17 11:12 rnowm

i use npm link react-native-photo-view again and its success

rafameyer avatar Dec 14 '17 12:12 rafameyer

I have the same problem, "npm link react-native-photo-view" didn't fix it.

@rnowm What do you mean by "Libraries folder"? Can I do it in windows?

shikhovtsov avatar Dec 14 '17 18:12 shikhovtsov

So, i did "npm link react-native-photo-view" and didnt fixed it. then, i removed the RNPhotoView lib in the xcode and tried "npm link..." again, and i fix it!

rafameyer avatar Dec 15 '17 16:12 rafameyer

I had the same issue. The only way I got it run is to change the react-native version. In your package.json :

"react-native": "^0.48.4",

Delete node_modules and install them again. Then link them with react-native link.

juffalow avatar Jan 11 '18 01:01 juffalow

i have this issue on ios too

mohsen0311 avatar Mar 01 '18 09:03 mohsen0311

I'm having this issue, too.

screenshot_error

I've installed the library automatically and I've also installed the pod.

What's next?

jpmazza avatar May 30 '18 17:05 jpmazza

Your package is not linked properly. After linking my error went away

DavitVosk avatar Jan 30 '19 19:01 DavitVosk

@DavitVosk how we can linking

vinaysaini89 avatar Apr 06 '24 09:04 vinaysaini89