TuyaInc / tuyasmart-home-sdk-react-native

MIT License
29 stars 65 forks source link

Type Error: Type Error: null is not an Object #12

Closed THALLIVA closed 5 years ago

THALLIVA commented 5 years ago

While working with React Native SDK, the installation process is completed without any Errors, but when i try to start the app I get this error WhatsApp Image 2019-04-09 at 4 11 13 PM (1)

I followed the following method

I downloaded the Example file from https://github.com/TuyaInc/tuyasmart-home-sdk-react-native/tree/master/Example and while running the file I got this error.. Commands I used for install and running -> cd Example/ -> npm install -> npm eject (after deleting android and iOS folders) -> npm start -> react-native run-android

The app is installed in the Android Device but not working..

Also please do update the NPM packages to latest release.. Im using

-> react-native-cli: 2.0.1 -> react-native: 0.59.4 -> node -v v8.12.0 -> npm -v 6.9.0

hughcoder commented 5 years ago

why you excute the npm eject (after deleting android and iOS folders) ,don‘t delete anything,just -> npm install -> npm start-> react-native run-android ,have a try @THALLIVA

tronginc commented 5 years ago

don't delete anything or manual link tuyasmart-home-sdk-react-native to your project