Skip to content

Commit e390789

Browse files
authored
Merge pull request #90 from Iterable/MOB-2281-fix-archiving
[MOB-2281] remove backgroundAlpha
2 parents e85a064 + 134890b commit e390789

File tree

3 files changed

+1
-6
lines changed

3 files changed

+1
-6
lines changed

android/src/main/java/com/iterable/reactnative/Serialization.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,6 @@ static JSONObject messageContentToJsonObject(IterableInAppMessage.Content conten
9494

9595
JSONObject messageContent = new JSONObject();
9696
try {
97-
messageContent.put("backgroundAlpha", content.backgroundAlpha);
9897
messageContent.put("edgeInsets", content.padding);
9998
messageContent.put("html", content.html);
10099
if (messageContent.length() == 0) {

ios/RNIterableAPI/Serialization.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,6 @@ extension IterableHtmlInAppContent {
143143
var dict = [AnyHashable: Any]()
144144
dict["type"] = type.rawValue
145145
dict["edgeInsets"] = edgeInsets.toDict()
146-
dict["backgroundAlpha"] = backgroundAlpha
147146
dict["html"] = html
148147
return dict
149148
}

ts/IterableInAppClasses.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -85,19 +85,16 @@ export interface IterableInAppContent {
8585
class IterableHtmlInAppContent implements IterableInAppContent {
8686
type: IterableInAppContentType = IterableInAppContentType.html
8787
edgeInsets: IterableEdgeInsets
88-
backgroundAlpha: number
8988
html: string
9089

91-
constructor(edgeInsets: IterableEdgeInsets, backgroundAlpha: number, html: string) {
90+
constructor(edgeInsets: IterableEdgeInsets, html: string) {
9291
this.edgeInsets = edgeInsets
93-
this.backgroundAlpha = backgroundAlpha
9492
this.html = html
9593
}
9694

9795
static fromDict(dict: any): IterableHtmlInAppContent {
9896
return new IterableHtmlInAppContent(
9997
IterableEdgeInsets.fromDict(dict["edgeInsets"]),
100-
dict["backgroundAlpha"] as number,
10198
dict["html"] as string)
10299
}
103100
}

0 commit comments

Comments
 (0)