diff --git a/RNEmarsysWrapper.podspec b/RNEmarsysWrapper.podspec index 37ebe38..352342f 100644 --- a/RNEmarsysWrapper.podspec +++ b/RNEmarsysWrapper.podspec @@ -18,6 +18,6 @@ Pod::Spec.new do |s| s.source_files = "ios/*.{h,m}" s.requires_arc = true s.dependency "React", ">= 0.67.3" - s.dependency "EmarsysSDK", "~> 3.4.0" + s.dependency "EmarsysSDK", "~> 3.5.0" end diff --git a/android/build.gradle b/android/build.gradle index 2ed9ae8..cdfa833 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -46,5 +46,5 @@ repositories { dependencies { implementation "com.facebook.react:react-native:+" - implementation "com.emarsys:emarsys-sdk:3.6.+" + implementation "com.emarsys:emarsys-sdk:3.7.+" } diff --git a/android/src/main/java/com/emarsys/rnwrapper/RNEmarsysInlineInAppViewManager.java b/android/src/main/java/com/emarsys/rnwrapper/RNEmarsysInlineInAppViewManager.java index 264d5c6..2617597 100644 --- a/android/src/main/java/com/emarsys/rnwrapper/RNEmarsysInlineInAppViewManager.java +++ b/android/src/main/java/com/emarsys/rnwrapper/RNEmarsysInlineInAppViewManager.java @@ -1,5 +1,7 @@ package com.emarsys.rnwrapper; +import android.view.ViewGroup; + import androidx.annotation.NonNull; import androidx.annotation.Nullable; @@ -31,7 +33,8 @@ public RNEmarsysInlineInAppViewManager(ReactApplicationContext reactContext) { @Override public InlineInAppView createViewInstance(ThemedReactContext context) { - InlineInAppView view = new InlineInAppView(reactContext); + InlineInAppView view = new InlineInAppView(reactContext, + ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT); view.setOnAppEventListener((property, json) -> { WritableMap event = Arguments.createMap(); event.putString("eventName", property); diff --git a/sample/android/app/build.gradle b/sample/android/app/build.gradle index 8ae66a0..f4c5e11 100644 --- a/sample/android/app/build.gradle +++ b/sample/android/app/build.gradle @@ -109,8 +109,8 @@ dependencies { implementation "androidx.swiperefreshlayout:swiperefreshlayout:1.1.0" implementation "androidx.multidex:multidex:2.0.1" - implementation "com.emarsys:emarsys-sdk:3.6.+" - implementation "com.emarsys:emarsys-firebase:3.6.+" + implementation "com.emarsys:emarsys-sdk:3.7.+" + implementation "com.emarsys:emarsys-firebase:3.7.+" // JSC from node_modules if (useIntlJsc) {