@react-native-hero/picker 0.1.4 → 0.1.5

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.
@@ -1,7 +1,6 @@
1
1
  package com.github.reactnativehero.picker
2
2
 
3
3
  import com.facebook.react.bridge.*
4
- import com.facebook.react.common.MapBuilder
5
4
  import com.facebook.react.uimanager.SimpleViewManager
6
5
  import com.facebook.react.uimanager.ThemedReactContext
7
6
  import com.facebook.react.uimanager.ViewProps
@@ -48,9 +47,14 @@ class RNTPickerManager(private val reactAppContext: ReactApplicationContext) : S
48
47
  }
49
48
 
50
49
  override fun getExportedCustomBubblingEventTypeConstants(): MutableMap<String, Any> {
51
- return MapBuilder.builder<String, Any>()
52
- .put("onChange", MapBuilder.of("phasedRegistrationNames", MapBuilder.of("bubbled", "onChange")))
53
- .build()
50
+ val baseEventTypeConstants = super.getExportedCustomBubblingEventTypeConstants()
51
+ val eventTypeConstants = baseEventTypeConstants ?: mutableMapOf()
52
+ eventTypeConstants.putAll(
53
+ mapOf(
54
+ "onChange" to mapOf("phasedRegistrationNames" to mapOf("bubbled" to "onChange")),
55
+ )
56
+ )
57
+ return eventTypeConstants
54
58
  }
55
59
 
56
60
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-native-hero/picker",
3
- "version": "0.1.4",
3
+ "version": "0.1.5",
4
4
  "description": "react native picker",
5
5
  "main": "index.js",
6
6
  "scripts": {