Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix moved EventEmitter in RN-0.48.x #10

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
7 changes: 7 additions & 0 deletions README.md
Expand Up @@ -5,6 +5,13 @@ Add sibling elements after your app root element.
The created sibling elements are above the rest of your app elements.
This can be used to create a `Modal` component or something should be over your app.

### Version

Use correct version for your react native installation.

- 2.0.0: React Native >= 0.48.x
- 1.x.x: React Native < 0.48.x

### Add it to your project

Run `npm install react-native-root-siblings --save`
Expand Down
2 changes: 1 addition & 1 deletion lib/AppRegistryInjection.js
@@ -1,7 +1,7 @@
import { StyleSheet, View, AppRegistry } from 'react-native';
import React, { Component } from 'react';
import StaticContainer from 'static-container';
import EventEmitter from 'react-native/Libraries/EventEmitter/EventEmitter';
import EventEmitter from 'react-native/Libraries/vendor/emitter/EventEmitter';

const styles = StyleSheet.create({
container: {
Expand Down
2 changes: 1 addition & 1 deletion package.json
@@ -1,5 +1,5 @@
{
"version": "1.2.1",
"version": "2.0.0",
"name": "react-native-root-siblings",
"repository": {
"type": "git",
Expand Down