yorkie / react-native-wechat

🚀 WeChat login, share, favorite and payment for React-Native on iOS and Android platforms (QQ: 336021910)
https://npmjs.org/package/react-native-wechat
MIT License
2.91k stars 710 forks source link

支持Autolinking? #498

Open lotosbin opened 5 years ago

lotosbin commented 5 years ago

https://github.com/react-native-community/cli/blob/master/docs/autolinking.md

horrorsheep commented 5 years ago

暂时npm install react-native-wechat会缺少react-native-wechat.podspec这个文件。不过只需要在node_modules中找到react-native-wechat这个folder然后把repo中的react-native-wechat.podspec放进去,应该就可以支持Autolinking了。

yorkie commented 5 years ago

暂时npm install react-native-wechat会缺少react-native-wechat.podspec这个文件。不过只需要在node_modules中找到react-native-wechat这个folder然后把repo中的react-native-wechat.podspec放进去,应该就可以支持Autolinking了。

是因为我们没有发布吗?

horrorsheep commented 5 years ago

嗯嗯,发布一下react-native-wechat.podspec会方便需要Autolink iOS的developer。安卓那边应该没问题。

KingAmo commented 5 years ago

react native 0.60 是使用cocoapods,集成react-native-wechat,运行 pod install,报如下的错:

 pod install

Analyzing dependencies
Fetching podspec for `RCTWeChat` from `../node_modules/react-native-wechat`
[!] No podspec found for `RCTWeChat` in `../node_modules/react-native-wechat`

所以,按照楼上说的,这个库需要发布一下最新的代码是吗?请问有计划什么时候发吗?

wanghhh commented 5 years ago

react native 0.60 是使用cocoapods,集成react-native-wechat,运行 pod install,报如下的错:

 pod install

Analyzing dependencies
Fetching podspec for `RCTWeChat` from `../node_modules/react-native-wechat`
[!] No podspec found for `RCTWeChat` in `../node_modules/react-native-wechat`

所以,按照楼上说的,这个库需要发布一下最新的代码是吗?请问有计划什么时候发吗?

目前即使pod install可以成功,运行时还是报错咋弄啊