Johan-dutoit / react-native-movesense

React Native Movesense library
MIT License
1 stars 0 forks source link

ReactMds has not linked successfull #11

Open kyesw opened 3 years ago

kyesw commented 3 years ago

Hello,

I followed your instructions (expo eject, pod installs.... and stuff). I was successful in building the app to my device.. however I get an Exception of "ReactMds has not linked successfull"..

Do you have any idea what could have caused this?

Thanks in advance

kyesw commented 3 years ago

Does it have something to do with library search path..? Sorry for the basic question but could you provide more explanation on add library search path?

Johan-dutoit commented 3 years ago

Generally after installing a native module (and linking with pod install), you need to rebuild the app and sometimes restart the bundler.

Give that a go and let me know if you face any further issues.

kyesw commented 3 years ago

Just to share an update, I am stuck with the below error

"Error: EMFILE: too many open files, watch"

I have mac mini m1 and I am looking into the problem whether it is related to using "watchman" in mac m1

kyesw commented 3 years ago

Sorry for posting some basic debugging informations...

I was able to successfully build the app and import the movesense module. However, when I call "scan" function, it's not displaying any names or addresses of a device (which is right next to my phone).

Is there any way that I could check if swift lib provided by movesense is working properly?

scanHandler = (name, address) =>{ console.log(name, address) } onScan = () =>{ console.log("pressed") movesense.scan((name, address) => { this.scanHandler(name, address); }); }

this code only logs "pressed" but no other messages.

Johan-dutoit commented 3 years ago

I haven't used this in a while, did you make sure the movesense device was on? touching the two contacts on the back should start it up (note the LED indicators)