Quantcast
Channel: Active questions tagged react-native+android - Stack Overflow
Viewing all articles
Browse latest Browse all 29741

Can I pass a function callback to headless js in react native?

$
0
0

I find I can pass some String or other primitive types by using bundle.putString("foo", "bar"); or putBoolean etc. like below:

Intent service = new Intent(getApplicationContext(), MyTaskService.class);
Bundle bundle = new Bundle();

bundle.putString("foo", "bar");
service.putExtras(bundle);

getApplicationContext().startService(service);

But how can I pass a function call back to the headless js service?

ref. react native headless js page


Viewing all articles
Browse latest Browse all 29741

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>