react-native-spalla-player 0.13.1 → 0.13.3
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.
|
@@ -4,11 +4,7 @@ import android.util.Log
|
|
|
4
4
|
import android.view.View
|
|
5
5
|
import com.facebook.react.bridge.Arguments
|
|
6
6
|
import com.facebook.react.bridge.ReactContext
|
|
7
|
-
import com.facebook.react.bridge.ReadableArray
|
|
8
|
-
import com.facebook.react.bridge.ReadableNativeArray
|
|
9
|
-
import com.facebook.react.bridge.WritableArray
|
|
10
7
|
import com.facebook.react.bridge.WritableMap
|
|
11
|
-
import com.facebook.react.common.MapBuilder
|
|
12
8
|
import com.facebook.react.uimanager.ViewGroupManager
|
|
13
9
|
import com.facebook.react.uimanager.ThemedReactContext
|
|
14
10
|
import com.facebook.react.uimanager.annotations.ReactProp
|
|
@@ -48,15 +44,15 @@ class RNSpallaPlayerManager() : ViewGroupManager<SpallaPlayerContainerView>(),
|
|
|
48
44
|
}
|
|
49
45
|
|
|
50
46
|
override fun getExportedCustomBubblingEventTypeConstants(): MutableMap<String, Any> {
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
MapBuilder.of("bubbled", "onPlayerEvent")
|
|
57
|
-
)
|
|
47
|
+
val eventMap = mutableMapOf<String, Any>()
|
|
48
|
+
|
|
49
|
+
eventMap["onPlayerEvent"] = mapOf(
|
|
50
|
+
"phasedRegistrationNames" to mapOf(
|
|
51
|
+
"bubbled" to "onPlayerEvent"
|
|
58
52
|
)
|
|
59
|
-
|
|
53
|
+
)
|
|
54
|
+
|
|
55
|
+
return eventMap
|
|
60
56
|
}
|
|
61
57
|
|
|
62
58
|
override fun onDropViewInstance(view: SpallaPlayerContainerView) {
|
package/package.json
CHANGED
|
@@ -16,7 +16,7 @@ Pod::Spec.new do |s|
|
|
|
16
16
|
|
|
17
17
|
s.source_files = "ios/**/*.{h,m,mm,swift}"
|
|
18
18
|
|
|
19
|
-
s.dependency "SpallaSDK", "~> 2.2.
|
|
19
|
+
s.dependency "SpallaSDK", "~> 2.2.3"
|
|
20
20
|
|
|
21
21
|
# Use install_modules_dependencies helper to install the dependencies if React Native version >=0.71.0.
|
|
22
22
|
# See https://github.com/facebook/react-native/blob/febf6b7f33fdb4904669f99d795eba4c0f95d7bf/scripts/cocoapods/new_architecture.rb#L79.
|