Create react native device event emitter android tutorial

preview_player
Показать описание
Learn how to create device event emitters on react native for android.
We can use these to get real time events from the native side , back to our javascript side . This is good for react native apps connecting to iot devices
for constant changing events.
Рекомендации по теме
Комментарии
Автор

Thanks brother, I read it in the RN documentation, but it's easier to understand with an example.

federicorobledo
Автор

Thank you for this nice and short video. I was following the react native docs for this and couldn't figure the JS part since the docs refer to old architecture.

faizwaghoo
Автор

thank you soo muchh bro you saved my life <3

SS-mfkk
Автор

great video, although he forgot please dont forget to actually remove the listener as well when the process ends.

faisalahmad
Автор

Thanks You are doing wonderful job. :-D

codefriendly
Автор

Hi. It's a great video that I was looking for. But I need it to work in some other ways. How do we send an event from an activity opened from a module.java.

I am having multiple activities inside the native code with corresponding XML. I need to open an activity from module java and that activity does other actions. Can I send repeated events from the activity that I opened, to the react native ? How do I do that ?

Thanks in advance

shahanijaparappil