@fishjam-cloud/react-native-client 0.8.0 → 0.8.1

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.
@@ -26,15 +26,10 @@ class VideoPreviewView(
26
26
  super.setupTrack()
27
27
  }
28
28
 
29
- override fun dispose() {
30
- videoView.let { localVideoTrack?.removeRenderer(it) }
31
- super.dispose()
32
- }
33
-
34
29
  override fun onDetachedFromWindow() {
35
30
  RNFishjamClient.localCameraTracksChangedListenersManager.remove(this)
31
+ videoView.let { localVideoTrack?.removeRenderer(it) }
36
32
  super.onDetachedFromWindow()
37
- dispose()
38
33
  }
39
34
 
40
35
  override fun onAttachedToWindow() {
@@ -47,7 +47,7 @@ class VideoPreviewView: ExpoView, LocalCameraTrackChangedListener {
47
47
 
48
48
  override func layoutSubviews() {
49
49
  super.layoutSubviews()
50
- videoView.frame = self.frame
50
+ videoView.frame = bounds
51
51
  }
52
52
 
53
53
  var videoLayout: String = "FILL" {
@@ -28,7 +28,7 @@ class VideoRendererView: ExpoView, TrackUpdateListener {
28
28
 
29
29
  override func layoutSubviews() {
30
30
  super.layoutSubviews()
31
- videoView.frame = self.frame
31
+ videoView.frame = bounds
32
32
  }
33
33
 
34
34
  func updateVideoTrack() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fishjam-cloud/react-native-client",
3
- "version": "0.8.0",
3
+ "version": "0.8.1",
4
4
  "description": "A React Native client for Fishjam",
5
5
  "author": "Fishjam Team",
6
6
  "license": "Apache-2.0",