React native run code on main thread
Ideally you should do not it. But some Android APIs may need code to be run on main thread. e.g. MediaRouter In that you can use following way to run the code on main thread. Cheers and Peace out !!!
Ideally you should do not it. But some Android APIs may need code to be run on main thread. e.g. MediaRouter In that you can use following way to run the code on main thread. Cheers and Peace out !!!