ant-design / ant-design-mobile-rn

Ant Design for React Native
https://rn.mobile.ant.design/
MIT License
3.06k stars 612 forks source link

PickerView 的官方文档挂了 单击PickerView后报 create read property 'getPhotos' on undefined 错误 #345

Closed znnnnn closed 5 years ago

znnnnn commented 5 years ago

Reproduction link

https://github.com/znnnnn/weixiao_fe/blob/master/app/page/mine/SetImfomation.tsx

Steps to reproduce

  1. 官方文档挂了 image

  2. 左键点击imagePick便会报错:create read property 'getPhotos' on undefined。 因为文档挂了,所以我即便使用了官方github仓库中的例子:官方Demo传送门,还是会报错:create read property 'getPhotos' on undefined image

What is expected?

点击能够正常选择图片

What is actually happening?

error:create read property 'getPhotos' on undefined

Environment Info
antd 3.1.1
React 16.6.3
System macos 10.13.6
Browser chrome 72.0.3626.109(正式版本) (64 位)
ant-design-bot commented 5 years ago

Ant Design 系列官网由于某些众所周知的原因无法访问,建议翻墙或访问国内镜像站点。

官网

国内镜像

BANG88 commented 5 years ago

有link过吗?

znnnnn commented 5 years ago

是:react-native link @ant-design/icons-react-native吗?这个link过了,在info.plist也有自动生成。 image

BANG88 commented 5 years ago

不是这个,要在iOS项目里面加入RCTCameraRoll https://github.com/ant-design/ant-design-mobile-rn/issues/90

znnnnn commented 5 years ago

非常感谢,已解决,抱歉由于电脑出了问题现在才测试完回复。 给楼下碰到相同问题的兄弟贴两个文档链接:

  1. CameraRoll
  2. 链接原生库