crazycodeboy
react-native-event-bus
JavaScript

Event bus for react native, cross-interface communication solution, it works on iOS and Android.

Last updated May 4, 2026
48
Stars
7
Forks
1
Issues
0
Stars/day
Attention Score
3
Language breakdown
No language data available.
โ–ธ Files click to expand
README

react-native-event-bus

release PRs Welcome NPM version License MIT

Event bus for react native, cross-interface communication solution, it works on iOS and Android.

Content

Installation

  • 1.Run npm i react-native-event-bus --save
  • 2.import EventBus from 'react-native-event-bus'

Getting started

Add react-native-event-bus to your js file.

import EventBus from 'react-native-event-bus'

Inside your component's render method, use CheckBox:

fireEvent

EventBus.getInstance().fireEvent("your event name", {
    ...params
})

//

addListener

componentDidMount() {
    EventBus.getInstance().addListener("your event name", this.listener = data => {
        // handle the event
    })
}

componentWillUnmount() { EventBus.getInstance().removeListener(this.listener); }

Contribution

Issues are welcome. Please add a screenshot of bug and code snippet. Quickest way to solve issue is to reproduce it on one of the examples.

Pull requests are welcome. If you want to change API or making something big better to create issue and discuss it first.


MIT Licensed

ยฉ 2026 GitRepoTrend ยท crazycodeboy/react-native-event-bus ยท Updated daily from GitHub