Background service on react-native android

Yes, It can be done.

React native operates on top of the native (java/Objc) to JS bridge with a concept of “native” and JS modules (modules can have methods that you may call from the “other” side of the bridge). All the UI stuff is built on top of the bridge (the main “native” module that handles generating views is called “UIManager”). It is possible to use bridge directly the only restriction is that the communication has to be asynchronous.

You can call the javascript function from the JAVA code. Check this link for the documentation.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)