yz1311 / rn-bugly

bugly for react-native,支持统计,android支持应用全量升级
35 stars 6 forks source link

安装后一打开就闪退了, #3

Closed oMhuAaN closed 4 years ago

oMhuAaN commented 4 years ago

图片

yz1311 commented 4 years ago

麻烦用logcat看下报错信息

yz1311 commented 4 years ago

debug下不报错,就release下报错了?

oMhuAaN commented 4 years ago

debug下也报错,所以我加了一个判断,加了就不报错了。

oMhuAaN commented 4 years ago

图片 像这样没有判断也是报错的

oMhuAaN commented 4 years ago

图片 报错如图

oMhuAaN commented 4 years ago

logcat没用过,需要点时间研究

yz1311 commented 4 years ago

export function checkUpgrade (params:{isManual?: boolean,isSilence?: boolean}): void

这个用法是传递第一个参数是一个对象,里面有isManual和isSilence两个可选属性

你应该没用typescript,不然你那样写会直接报错的

oMhuAaN commented 4 years ago

是的,没用typescript,我现在要怎么办?

yz1311 commented 4 years ago

.checkUpgrade ({isManual: true,isSilence: true}) 这样传值

oMhuAaN commented 4 years ago

非常感谢,我对您的景仰有如滔滔江水,连绵不绝,又如黄河泛滥,一发而不可收拾,听阁下一言,胜读十年寒窗,