Skip to content

Commit a5ec713

Browse files
authored
Merge pull request #357 from alex-a-pereira/fix/missing-iterable-and-iterableconfig-exports
ready: Add missing Iterable and IterableConfig exports back to index.ts
2 parents 34dbd87 + 2692d4a commit a5ec713

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

ts/__tests__/Iterable.spec.ts

+5-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,13 @@ import { MockLinking } from '../__mocks__/MockLinking'
33
import { TestHelper } from './TestHelper'
44
import { NativeEventEmitter } from 'react-native'
55

6+
// import from the same location that consumers import from
67
import {
78
Iterable,
9+
IterableConfig
10+
} from '../index'
11+
12+
import {
813
IterableAttributionInfo,
914
IterableCommerceItem,
1015
IterableActionContext,
@@ -13,8 +18,6 @@ import {
1318
IterableActionSource
1419
} from '../Iterable'
1520

16-
import IterableConfig from '../IterableConfig'
17-
1821
beforeEach(() => {
1922
jest.clearAllMocks()
2023
})

ts/index.ts

+6
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
* @module react-native-iterable-sdk
66
*/
77

8+
import { Iterable } from './Iterable'
9+
810
import {
911
IterableAction,
1012
IterableActionContext,
@@ -34,7 +36,11 @@ import useAppStateListener from './useAppStateListener'
3436
import useDeviceOrientation from './useDeviceOrientation'
3537
import InboxImpressionRowInfo from './InboxImpressionRowInfo'
3638

39+
import IterableConfig from './IterableConfig'
40+
3741
export {
42+
Iterable,
43+
IterableConfig,
3844
IterableAction,
3945
IterableActionContext,
4046
IterableLogLevel,

0 commit comments

Comments
 (0)