TuyaInc / tuyasmart-home-sdk-react-native

MIT License
29 stars 65 forks source link

null is not an object(evaluating 'CoreNativeApi.initWithOptions') #31

Closed Mohaiyo closed 4 years ago

Mohaiyo commented 4 years ago

我直接从项目仓库clone下来的文件,按照readme的指引 添加了appKey、appScrect以及安全图片,安装相关的依赖之后,react-native run-ios直接报这个错误,原生模块引不进来是啥原因? ps:中间react-native upgrade了一次。 企业微信截图_79360cae-aad5-4c6a-ac64-67a5c2c39fc6

linqwFmt commented 4 years ago

0.59

adnan1naeem commented 4 years ago

i am facing same error on react-native v0.61.0 on ios can you please explain how to resolve it

linqwFmt commented 4 years ago

I'm sorry. I'll check if there's a problem. I'll reply later

linqwFmt commented 4 years ago

Can you describe the operation steps in detail

adnan1naeem commented 4 years ago

Can you describe the operation steps in detail

i added latest version of react-native 0.61.5 and followed the documentation with the following steps for ios: link

when i call method nativemodules.TuyaCoreApi .it provides empty object of nativemodules.There is no module tuyaCoreApI inside the sdk in ios but android works fine. please see line number 2 of following url.It provides empty nativemodules object in ios link