andreyvital / react-native-android-sms-listener

Allows you to listen for incoming SMS messages using React Native
MIT License
358 stars 99 forks source link

Compile Error : new smslistener() in MainApplication.js #16

Closed ramancodians closed 7 years ago

ramancodians commented 7 years ago

asdasd3333

here is the error. I followed the installations steps. Please help.

andreyvital commented 7 years ago

cc @julianocomg

Do you have any thoughts on this one?

flaviosbert commented 7 years ago

I followed all the instructions and faced the same problem.

Got it to work following the instructions to RN < 0.28:

import com.centaurwarchief.smslistener.SmsListenerPackage; @Override protected List getPackages() { return Arrays.asList( new MainReactPackage(), new SmsListenerPackage() // (...) ); }

andreyvital commented 7 years ago

Thanks for the feedback, @flaviosbert.

semiautomatix commented 7 years ago

Still an issue. Will try @flaviosbert's suggestion.

andreyvital commented 7 years ago

Hey @semiautomatix — still an issue after attempting @flaviosbert's suggestion?

semiautomatix commented 7 years ago

Thanks @centaurwarchief. @flaviobert's suggestion worked a charm :-)

andreyvital commented 7 years ago

Thanks @semiautomatix. And sorry for the delayed reply.