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

can't find podspec in node_module/react-native-photo-view

Open GitNiko opened this issue 6 years ago • 15 comments

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"
  }
}

image

GitNiko avatar Feb 28 '18 06:02 GitNiko

I think it requires a release.

sroze avatar Mar 01 '18 00:03 sroze

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'

GitNiko avatar Mar 05 '18 05:03 GitNiko

I have the same problem, i do the same thing @GitNiko but don't works for me, i'm still getting the error.

david1820 avatar Mar 11 '18 02:03 david1820

hi @david1820 , manually copy the react-native-photo-view.podspec to `node_modules/react-native-photo-view/' still get the error?

GitNiko avatar Mar 12 '18 01:03 GitNiko

I just create the file with the same name and copy the content and i still getting the same error, any ideas?

david1820 avatar Mar 12 '18 02:03 david1820

directly use git repo like this in your package.json

"dependencies": {
    "react-native-photo-view": "https://github.com/alwx/react-native-photo-view",
}

GitNiko avatar Mar 12 '18 04:03 GitNiko

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'

david1820 avatar Mar 13 '18 04:03 david1820

no chance of a new release being published?

andr3a88 avatar Apr 26 '18 14:04 andr3a88

@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?

elliscwc avatar Jul 20 '18 08:07 elliscwc

+1 this error still persists

audiolion avatar Aug 24 '18 18:08 audiolion

+1

wliadmin avatar Oct 17 '18 09:10 wliadmin

GitNiko's solution above works but basically version npm sets the version to ^1.5.2 which is

  1. missing the podspec file
  2. sets the wrong podspec file location in the Podfile when running react-native-link

umairda avatar Nov 10 '18 14:11 umairda

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

bishwajeet-billme avatar Nov 15 '19 12:11 bishwajeet-billme

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

bishwajeet-billme avatar Nov 15 '19 12:11 bishwajeet-billme

react-native-photo-view/ios/RNPhotoView.m : 9 : 9 :

fatal error : 'React/RCTImageLoader.h' file not found

#import <React/RCTImageLoader.h>

mmorcc avatar Apr 15 '20 09:04 mmorcc