peggyrayzis/react-native-create-bridge

Problem with sign to more than one event listener

oron11 opened this issue · 0 comments

Dev setup:

  • react-native-create-bridge version: 2.0.1
  • react-native version: 0.55.4

I am using create-bridge in a:

  • standalone library
  • existing React Native project

What you did:

Hi, After successfully installing the bridge and making an activity on android I need that my app
Will listen to 3 events from the activity(ACTION_SCREEN_OFF, ACTION_USER_PRESENT, ACTION_USER_ON). And I understand that there is a problem to listen in react native in one var to more than one event listeners.
How can I get over it?
*I saw that there is guides that saying to do global event listener but how I cant write it with the bridge(on the function the componentWillMount())?