react-native-create-bridge icon indicating copy to clipboard operation
react-native-create-bridge copied to clipboard

Problem with sign to more than one event listener

Open oron11 opened this issue 7 years ago • 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
  • [x] 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())?

oron11 avatar May 24 '18 00:05 oron11