beefe / react-native-picker

A Native Picker with high performance.
1.75k stars 785 forks source link

react-native-picker 找不到_init方法 #128

Open victor-dev opened 7 years ago

victor-dev commented 7 years ago

7779aed6-a1a8-434e-b59c-0d47555712a4 d5a8a1c8-7bc4-4d77-8ab1-9e4aab4bfecb

codenamenebula commented 7 years ago

请问有解决方案没

xwenliang commented 7 years ago

确认执行react-native link了吗

codenamenebula commented 7 years ago

确实是这样,之前执行了无意中unlink了,多谢

lixingdecai commented 7 years ago

image 也是同样的问题,也执行了react-native link。但是没有找到_init()方法

lixingdecai commented 7 years ago

image it can use in android platform, but can not use in IOS

bingxin-xia commented 7 years ago

Same issue occurred in my project, it works well in Android but not in IOS

kcmars commented 7 years ago

请问这个问题解决了没有,我也遇到了,不知道怎么办呢

kcmars commented 7 years ago

@lixingdecai

kcmars commented 7 years ago

@lixingdecai 请问你的问题解决了没,我现在也遇见了这个问题,不知道怎么办,ios报错,android是正常的

liukefu2050 commented 7 years ago

may be native module not register

huyanghu commented 7 years ago

原生没有引入库的原因,

Sura-zm commented 7 years ago

求解,我也遇到相同的问题了,执行了react-native link的

Sura-zm commented 7 years ago

已解决!! 可以参照这个

Sura-zm commented 7 years ago

http://www.cnblogs.com/shaoting/p/6148085.html

huyanghu commented 7 years ago

你原生代码的引用相应的库了,你看下example\PickerTest目录下的示例代码 ,android引用react-native-picker库; ISO 把react-native-picker-master\ios\RCTBEEPickerManager目录下的四个文件复制到你原生的工程目录

15801682338@126.com

发件人: ZM 发送时间: 2017-06-14 09:51 收件人: beefe/react-native-picker 抄送: huyanghu; Comment 主题: Re: [beefe/react-native-picker] react-native-picker 找不到_init方法 (#128) 求解,我也遇到相同的问题了,执行了react-native link的 — You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.

PengSiSi commented 7 years ago

到底怎么解决了?我也遇到这问题..

Sura-zm commented 7 years ago

http://www.cnblogs.com/shaoting/p/6148085.html 这个地址 不要通过github访问 讲解的是image-picker 和picker类似

PengSiSi commented 7 years ago

可以了,解决了

hejianqi commented 7 years ago

你们是怎么解决这个问题的

ocswor commented 7 years ago

哈哈

Cassie-Yu commented 7 years ago

react-native link之后依旧报错 到底怎么解决的啊?

Flynana commented 6 years ago

同样的问题 求解

cyhandwqq commented 6 years ago

怎么解决的,求救啊

shenzhenSk commented 6 years ago

react-native link and run-android again

chaoming007 commented 6 years ago

朋友们我也遇到了ios报 "Cannot read property '_init' of undefined" 请问你们是如何解决的?

shenzhenSk commented 6 years ago

我也是刚开始的项目,目前都是在ANDROID设备上调试,一般引入这种带原生依赖的组件,你yarn add后,需要link一下,然后过入android目录下clean一下:gradlew clean;然后再重新run-android @chaoming007

bluewater0015 commented 5 years ago

到底怎么解决了?我也遇到这问题..

怎么解决的?加你QQ也加不了,看到能否加我微信bluewater0015,谢谢

reng99 commented 5 years ago

Mac机子上执行react-native link 命令之后再运行react-native run-ios就行啦😄