react-native-photo-view
react-native-photo-view copied to clipboard
can't find podspec in node_module/react-native-photo-view
package version:
{
"name": "react-native-photo-view",
"version": "1.5.2",
"description": "Displaying photos with pinch-to-zoom",
"main": "index.js",
"author": {
"name": "Alexander Pantyukhov",
"email": "[email protected]"
},
"license": "MIT",
"keywords": [
"react-native",
"react-component",
"ios",
"android",
"gallery",
"lightbox",
"pinch",
"pinch-to-zoom",
"mobile"
],
"homepage": "https://github.com/alwx/react-native-photo-view",
"bugs": {
"url": "https://github.com/alwx/react-native-photo-view/issues"
},
"repository": {
"type": "git",
"url": "git://github.com/alwx/react-native-photo-view.git"
},
"dependencies": {
"prop-types": "^15.5.10"
}
}
I think it requires a release.
until it release, I have to copy the podspec from my project to node_modules
when pod install
.
Podfile
FileUtils.cp './podspec_fake/react-native-photo-view/react-native-photo-view.podspec', '../node_modules/react-native-photo-view/react-native-photo-view.podspec'
I have the same problem, i do the same thing @GitNiko but don't works for me, i'm still getting the error.
hi @david1820 , manually copy the react-native-photo-view.podspec
to `node_modules/react-native-photo-view/' still get the error?
I just create the file with the same name and copy the content and i still getting the same error, any ideas?
directly use git repo like this in your package.json
"dependencies": {
"react-native-photo-view": "https://github.com/alwx/react-native-photo-view",
}
Thanks for your help @GitNiko, i was missing a dot in pod 'react-native-photo-view', path: './node_modules/react-native-photo-view'
in this step from the docs.
i change to pod 'react-native-photo-view', path: '../node_modules/react-native-photo-view'
no chance of a new release being published?
@alwx still getting this error
[!] No podspec found for 'react-native-photo-view' in '../node_modules/react-native-photo-view'
could you please update the npm release?
+1 this error still persists
+1
GitNiko's solution above works but basically version npm sets the version to ^1.5.2 which is
- missing the podspec file
- sets the wrong podspec file location in the Podfile when running
react-native-link
hi @david1820 , manually copy the
react-native-photo-view.podspec
to `node_modules/react-native-photo-view/' still get the error?
check podspec file path
directly use git repo like this in your package.json
"dependencies": { "react-native-photo-view": "https://github.com/alwx/react-native-photo-view", }
Thank you
react-native-photo-view/ios/RNPhotoView.m : 9 : 9 :
fatal error : 'React/RCTImageLoader.h' file not found
#import <React/RCTImageLoader.h>