react-native-daro 1.0.0 → 1.0.2

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.9"
98
+ implementation "so.daro:daro-core:1.2.13"
99
99
  }
@@ -43,6 +43,8 @@ class DaroMAdBannerViewManager : SimpleViewManager<DaroMAdBannerViewContainer>()
43
43
 
44
44
  return key.let {
45
45
  viewCache[it + reactContext.hashCode()].let { view ->
46
+ view?.id = reactTag
47
+
46
48
  if(view?.parent == null) view
47
49
  else null
48
50
  }
@@ -37,9 +37,12 @@ class DaroMAdNativeViewManager : ViewGroupManager<DaroMAdNativeViewContainer>()
37
37
 
38
38
  return key.let {
39
39
  viewCache[it + reactContext.hashCode()].let { view ->
40
+ view?.id = reactTag
41
+
40
42
  if(view?.parent == null) view.also {
41
43
  it?.applyPrevSetting()
42
44
  }
45
+
43
46
  else null
44
47
  }
45
48
  } ?: super.createViewInstance(reactTag, reactContext, initialProps, stateWrapper).also {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-daro",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "description": "Daro React Native Module for Android and iOS",
5
5
  "source": "./src/index.tsx",
6
6
  "main": "./lib/commonjs/index.js",