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

React Native Android / iOS call function on app start

$
0
0

I am new to React Native.

I am trying to call a react native method from native code without having any UI components from RN.

The idea is to add a DeviceEmitter listener at application start and later on post events from Native code.

The question is where should I put JS code to add DeviceEmitter listener at app start?


Viewing all articles
Browse latest Browse all 28469

Trending Articles



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