Skip to content

Commit

Permalink
Add .npmignore
Browse files Browse the repository at this point in the history
  • Loading branch information
magicismight committed Mar 8, 2017
1 parent 6a8473b commit da03334
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .npmignore
@@ -0,0 +1,2 @@
node_modules/
Examples/
2 changes: 2 additions & 0 deletions lib/AppRegistryInjection.js
Expand Up @@ -32,6 +32,8 @@ AppRegistry.registerComponent = function (appKey, getAppComponent) {

componentWillUnmount() {
emitter.removeListener('siblings.update', this._update);
siblings.clear();
updates.clear();
};

_update(id, element, callback) {
Expand Down
4 changes: 2 additions & 2 deletions lib/SiblingsManager.js
Expand Up @@ -21,7 +21,7 @@ export default class {
this.update(element, callback);
};

_offstreamElement(element) {
_offStreamElement(element) {
return cloneElement(element, {
style: [element.props.style, styles.offStream]
});
Expand All @@ -30,7 +30,7 @@ export default class {
_id = null;

update(element, callback) {
emitter.emit('siblings.update', this._id, this._offstreamElement(element), callback);
emitter.emit('siblings.update', this._id, this._offStreamElement(element), callback);
};

destroy(callback) {
Expand Down
2 changes: 1 addition & 1 deletion package.json
@@ -1,5 +1,5 @@
{
"version": "1.1.0",
"version": "1.1.3",
"name": "react-native-root-siblings",
"repository": {
"type": "git",
Expand Down

0 comments on commit da03334

Please sign in to comment.