opentok-react-native
Advanced tools
Comparing version 0.3.6 to 0.4.0
{ | ||
"name": "opentok-react-native", | ||
"version": "0.3.6", | ||
"version": "0.4.0", | ||
"description": "React Native components for OpenTok iOS and Android SDKs", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -51,12 +51,12 @@ import React, { Component } from 'react'; | ||
OT.destroyPublisher((error) => { | ||
if (!error) { | ||
if (error) { | ||
handleError(error); | ||
} else { | ||
this.sessionConnected.remove(); | ||
this.streamDestroyed.remove(); | ||
OT.removeJSComponentEvents(this.componentEventsArray); | ||
const events = sanitizePublisherEvents(this.props.eventHandlers); | ||
removeNativeEvents(events); | ||
} else { | ||
handleError(error); | ||
} | ||
}); | ||
OT.removeJSComponentEvents(this.componentEventsArray); | ||
this.sessionConnected.remove(); | ||
} | ||
@@ -63,0 +63,0 @@ sessionConnectedHandler = () => { |
@@ -61,7 +61,3 @@ import React, { Component, Children, cloneElement } from 'react'; | ||
OT.disconnectSession((disconnectError) => { | ||
if (!disconnectError) { | ||
this.setState({ | ||
sessionInfo: null, | ||
}); | ||
} else { | ||
if (disconnectError) { | ||
handleError(disconnectError); | ||
@@ -68,0 +64,0 @@ } |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
92214
620