Skip to content

Commit dd55bf2

Browse files
committed
Merge branch '2.0.0-alpha/MOB-9673-new-unit-tests' into 2.0.0-alpha/MOB-10131-remove-duplicate-code
2 parents a179ae9 + 27cb568 commit dd55bf2

19 files changed

+23
-54
lines changed

src/Iterable.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,15 @@ import {
1010
} from 'react-native';
1111

1212
import { IterableAction, IterableActionContext } from './IterableAction';
13-
import IterableConfig, { AuthResponse } from './IterableConfig';
13+
import { IterableConfig, AuthResponse } from './IterableConfig';
1414
import {
1515
IterableInAppCloseSource,
1616
IterableInAppDeleteSource,
1717
IterableInAppLocation,
1818
} from './IterableInAppClasses';
19-
import IterableInAppManager from './IterableInAppManager';
20-
import IterableInAppMessage from './IterableInAppMessage';
19+
20+
import { IterableInAppManager } from './IterableInAppManager';
21+
import { IterableInAppMessage } from './IterableInAppMessage';
2122
import { IterableLogger } from './IterableLogger';
2223

2324
const RNIterableAPI = NativeModules.RNIterableAPI;

src/IterableAction.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,5 +51,3 @@ export class IterableActionContext {
5151
return new IterableActionContext(action, source);
5252
}
5353
}
54-
55-
export default IterableAction;

src/IterableConfig.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import {
55
} from './IterableAction';
66
import { IterableDataRegion } from './IterableDataRegion';
77
import { IterableInAppShowResponse } from './IterableInAppClasses';
8-
import IterableInAppMessage from './IterableInAppMessage';
8+
import { IterableInAppMessage } from './IterableInAppMessage';
99
import { IterablePushPlatform } from './IterablePushPlatform';
1010

1111
// TODO: Add description
@@ -171,5 +171,3 @@ export class AuthResponse {
171171
successCallback?: AuthCallBack;
172172
failureCallback?: AuthCallBack;
173173
}
174-
175-
export default IterableConfig;

src/IterableDataRegion.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,3 @@ export enum IterableDataRegion {
33
US = 0,
44
EU = 1,
55
}
6-
7-
export default IterableDataRegion;

src/IterableInAppManager.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import {
66
IterableInAppDeleteSource,
77
IterableInAppLocation,
88
} from './IterableInAppClasses';
9-
import IterableInAppMessage from './IterableInAppMessage';
9+
import { IterableInAppMessage } from './IterableInAppMessage';
1010

1111
// TODO: Create a loader for this
1212
const RNIterableAPI = NativeModules.RNIterableAPI;
@@ -123,5 +123,3 @@ export class IterableInAppManager {
123123
RNIterableAPI.setAutoDisplayPaused(paused);
124124
}
125125
}
126-
127-
export default IterableInAppManager;

src/IterableInAppMessage.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { type ViewToken } from 'react-native';
22

3-
import IterableUtil from './IterableUtil';
3+
import { IterableUtil } from './IterableUtil';
44

55
import {
66
IterableInAppTrigger,
@@ -152,5 +152,3 @@ export class IterableInAppMessage {
152152
);
153153
}
154154
}
155-
156-
export default IterableInAppMessage;

src/IterableInbox.tsx

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@ import {
1919
IterableInAppLocation,
2020
} from './IterableInAppClasses';
2121
import type { IterableInboxCustomizations } from './IterableInboxCustomizations';
22-
import IterableInboxDataModel from './IterableInboxDataModel';
23-
import IterableInboxEmptyState from './IterableInboxEmptyState';
24-
import IterableInboxMessageDisplay from './IterableInboxMessageDisplay';
25-
import IterableInboxMessageList from './IterableInboxMessageList';
26-
import useAppStateListener from './useAppStateListener';
27-
import useDeviceOrientation from './useDeviceOrientation';
22+
import { IterableInboxDataModel } from './IterableInboxDataModel';
23+
import { IterableInboxEmptyState } from './IterableInboxEmptyState';
24+
import { IterableInboxMessageDisplay } from './IterableInboxMessageDisplay';
25+
import { IterableInboxMessageList } from './IterableInboxMessageList';
26+
import { useAppStateListener } from './useAppStateListener';
27+
import { useDeviceOrientation } from './useDeviceOrientation';
2828

2929
const RNIterableAPI = NativeModules.RNIterableAPI;
3030
const RNEventEmitter = new NativeEventEmitter(RNIterableAPI);
@@ -354,5 +354,3 @@ export const IterableInbox = ({
354354
<View style={container}>{inboxAnimatedView}</View>
355355
);
356356
};
357-
358-
export default IterableInbox;

src/IterableInboxDataModel.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import { Iterable } from './Iterable';
99

1010
import type { InboxImpressionRowInfo } from './InboxImpressionRowInfo';
1111
import type { InboxRowViewModel } from './InboxRowViewModel';
12-
import IterableInAppMessage from './IterableInAppMessage';
12+
import { IterableInAppMessage } from './IterableInAppMessage';
1313

1414
const RNIterableAPI = NativeModules.RNIterableAPI;
1515

@@ -175,5 +175,3 @@ export class IterableInboxDataModel {
175175
};
176176
}
177177
}
178-
179-
export default IterableInboxDataModel;

src/IterableInboxEmptyState.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,5 +68,3 @@ const styles = StyleSheet.create({
6868
color: 'grey',
6969
},
7070
});
71-
72-
export default IterableInboxEmptyState;

src/IterableInboxMessageCell.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import {
1414
import type { InboxRowViewModel } from './InboxRowViewModel';
1515
import type { IterableInboxCustomizations } from './IterableInboxCustomizations';
1616

17-
import IterableInboxDataModel from './IterableInboxDataModel';
17+
import { IterableInboxDataModel } from './IterableInboxDataModel';
1818

1919
// TODO: Change to component
2020
function defaultMessageListLayout(
@@ -327,5 +327,3 @@ export const IterableInboxMessageCell = ({
327327
</>
328328
);
329329
};
330-
331-
export default IterableInboxMessageCell;

0 commit comments

Comments
 (0)