Skip to content

Commit

Permalink
feat: update InlineInAppView LayoutParams
Browse files Browse the repository at this point in the history
chore: update emarsys sdk

MV-332
  • Loading branch information
eduzatoni authored and biancalui-emarsys committed Jan 22, 2024
1 parent a858942 commit 67ae9a5
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion RNEmarsysWrapper.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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.+"
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package com.emarsys.rnwrapper;

import android.view.ViewGroup;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;

Expand Down Expand Up @@ -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);
Expand Down
4 changes: 2 additions & 2 deletions sample/android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 67ae9a5

Please sign in to comment.