react-native-theoplayer 1.1.0 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -53,7 +53,7 @@ React Native works to speed up the way of working with THEOplayer React Native S
53
53
  This section starts with creating a minimal demo app that integrates the `react-native-theoplayer` package,
54
54
  followed by an overview of the available properties and functionality of the THEOplayerView component.
55
55
  An example application including a basic user interface and demo sources is included in the
56
- [git repository](https://github.com/THEOplayer/react-native-theoplayer/example),
56
+ [git repository](https://github.com/THEOplayer/react-native-theoplayer/tree/master/example),
57
57
  and discussed in the next section. Finally, an overview of features, limitations and known issues is listed.
58
58
 
59
59
  - [Creating a minimal demo app](./doc/creating-minimal-app.md)
@@ -33,6 +33,7 @@ class THEOplayerRCTView: UIView {
33
33
  }
34
34
 
35
35
  deinit {
36
+ self.eventHandler.destroy()
36
37
  self.player?.destroy()
37
38
  self.player = nil
38
39
  }
@@ -64,9 +64,9 @@ class THEOplayerRCTViewEventHandler {
64
64
  private var removeCueListeners: [Int:EventListener] = [:]
65
65
 
66
66
 
67
- // MARK: - Initialisation / deinitialisation
68
- deinit {
69
- // detach listeners
67
+ // MARK: - destruction
68
+ func destroy() {
69
+ // dettach listeners
70
70
  self.dettachListeners()
71
71
  }
72
72
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-theoplayer",
3
- "version": "1.1.0",
3
+ "version": "1.2.0",
4
4
  "description": "A THEOplayer video component for react-native.",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",
package/CHANGELOG.md DELETED
@@ -1,12 +0,0 @@
1
- # Changelog
2
-
3
- All notable changes to this project will be documented in this file.
4
-
5
- The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
6
- and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
7
-
8
- ## [1.1.0]
9
-
10
- ### Added
11
-
12
- - Initial release.