react-native-daro 1.0.3 → 1.0.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.
@@ -95,5 +95,5 @@ dependencies {
95
95
  //noinspection GradleDynamicVersion
96
96
  implementation "com.facebook.react:react-native:+"
97
97
  implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
98
- implementation "so.daro:daro-core:1.2.14"
98
+ implementation "so.daro:daro-core:1.3.2"
99
99
  }
@@ -76,7 +76,10 @@ class DaroMAdNativeViewContainer(val context: ReactContext) : ReactViewGroup(con
76
76
  DaroNativeAdUnit(
77
77
  key = adUnitId,
78
78
  placement = adUnitId,
79
- adBinder = DaroNativeAdBinder
79
+ )
80
+ ).also { view ->
81
+ view.setAdBinder(
82
+ DaroNativeAdBinder
80
83
  .Builder(adViewContainer)
81
84
  .let { if (titleViewId != null) it.setTitleViewId(titleViewId!!) else it }
82
85
  .let { if (bodyViewId != null) it.setBodyTextViewId(bodyViewId!!) else it }
@@ -85,7 +88,7 @@ class DaroMAdNativeViewContainer(val context: ReactContext) : ReactViewGroup(con
85
88
  .let { if (callToActionViewId != null) it.setCallToActionViewId(callToActionViewId!!) else it }
86
89
  .build()
87
90
  )
88
- ).also { view ->
91
+
89
92
  view.setListener(this)
90
93
  view.setOnHierarchyChangeListener(
91
94
  object : OnHierarchyChangeListener {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-daro",
3
- "version": "1.0.3",
3
+ "version": "1.0.5",
4
4
  "description": "Daro React Native Module for Android and iOS",
5
5
  "source": "./src/index.tsx",
6
6
  "main": "./lib/commonjs/index.js",