Skip to content

Commit df51ad6

Browse files
authored
Merge branch 'master' into dependabot/npm_and_yarn/tar-7.5.2
2 parents 2adf8d8 + 051c4c6 commit df51ad6

File tree

6 files changed

+427
-26
lines changed

6 files changed

+427
-26
lines changed

CHANGELOG.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
1+
##2.1.0
2+
### Updates
3+
* SDK is now compatible with both New Architecture and Legacy Architecture. Fix
4+
for #691, #602, #563.
5+
6+
### Fixes
7+
* Dependencies update
8+
19
## 2.1.0-beta.1
210

3-
## Fixes
11+
### Fixes
412
- Add Temporary fix for circular paths, which break expo ([9c09743](https://github.com/Iterable/react-native-sdk/commit/9c09743))
513

614
## 2.1.0-beta.0
@@ -14,7 +22,7 @@
1422

1523
## 2.0.4
1624

17-
## Updates
25+
### Updates
1826
- Added API documentation via Netlify([1087275](https://github.com/Iterable/react-native-sdk/commit/1087275))
1927
- Removed dependency on `react-native-vector-icons`, per issues
2028
[#513](https://github.com/Iterable/react-native-sdk/issues/513),

example/ios/ReactNativeSdkExample/Info.plist

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -52,27 +52,5 @@
5252
</array>
5353
<key>UIViewControllerBasedStatusBarAppearance</key>
5454
<false/>
55-
<key>UIAppFonts</key>
56-
<array>
57-
<string>AntDesign.ttf</string>
58-
<string>Entypo.ttf</string>
59-
<string>EvilIcons.ttf</string>
60-
<string>Feather.ttf</string>
61-
<string>FontAwesome.ttf</string>
62-
<string>FontAwesome5_Brands.ttf</string>
63-
<string>FontAwesome5_Regular.ttf</string>
64-
<string>FontAwesome5_Solid.ttf</string>
65-
<string>FontAwesome6_Brands.ttf</string>
66-
<string>FontAwesome6_Regular.ttf</string>
67-
<string>FontAwesome6_Solid.ttf</string>
68-
<string>Foundation.ttf</string>
69-
<string>Ionicons.ttf</string>
70-
<string>MaterialIcons.ttf</string>
71-
<string>MaterialCommunityIcons.ttf</string>
72-
<string>SimpleLineIcons.ttf</string>
73-
<string>Octicons.ttf</string>
74-
<string>Zocial.ttf</string>
75-
<string>Fontisto.ttf</string>
76-
</array>
7755
</dict>
7856
</plist>

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@iterable/react-native-sdk",
3-
"version": "2.1.0-beta.1",
3+
"version": "2.1.0",
44
"description": "Iterable SDK for React Native.",
55
"source": "./src/index.tsx",
66
"main": "./lib/module/index.js",

src/__mocks__/MockRNIterableAPI.ts

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,25 @@ export class MockRNIterableAPI {
8282
});
8383
}
8484

85+
static async getInboxMessages(): Promise<IterableInAppMessage[] | undefined> {
86+
return await new Promise((resolve) => {
87+
// Filter messages that are marked for inbox
88+
const inboxMessages = MockRNIterableAPI.messages?.filter(msg => msg.saveToInbox) || [];
89+
resolve(inboxMessages);
90+
});
91+
}
92+
93+
static async getHtmlInAppContentForMessage(messageId: string): Promise<unknown> {
94+
return await new Promise((resolve) => {
95+
// Mock HTML content for testing
96+
const mockHtmlContent = {
97+
edgeInsets: { top: 10, left: 20, bottom: 30, right: 40 },
98+
html: `<div>Mock HTML content for message ${messageId}</div>`,
99+
};
100+
resolve(mockHtmlContent);
101+
});
102+
}
103+
85104
static setAutoDisplayPaused = jest.fn();
86105

87106
static async showMessage(

0 commit comments

Comments
 (0)