Skip to content

Commit 5ce1b1d

Browse files
committed
🔧 ⚡ Stop exporting deprecated ListView from index.js
1 parent ca94a6a commit 5ce1b1d

File tree

4 files changed

+10
-11
lines changed

4 files changed

+10
-11
lines changed

src/ImmutableListView/index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
1-
export { default } from './ImmutableListView';
1+
import ImmutableListView from './ImmutableListView';
2+
3+
export { ImmutableListView };
24
export * from './EmptyListView';
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
1-
export { default } from './ImmutableVirtualizedList';
1+
import ImmutableVirtualizedList from './ImmutableVirtualizedList';
2+
3+
export { ImmutableVirtualizedList };
24
export * from './EmptyVirtualizedList';

src/index.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,4 @@
11
export {
2-
default as ImmutableListView,
3-
EmptyListView,
4-
} from './ImmutableListView';
5-
6-
export {
7-
default as ImmutableVirtualizedList,
2+
ImmutableVirtualizedList,
83
EmptyVirtualizedList,
94
} from './ImmutableVirtualizedList';

src/test-utils.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ import { Text, ListView } from 'react-native';
55
import renderer from 'react-test-renderer';
66
/* eslint-enable */
77

8-
import ImmutableListView from './ImmutableListView';
9-
import ImmutableVirtualizedList from './ImmutableVirtualizedList';
8+
import { ImmutableListView } from './ImmutableListView';
9+
import { ImmutableVirtualizedList } from './ImmutableVirtualizedList';
1010

1111
/**
1212
* Some common types of data you may want to render with ImmutableListView.
@@ -102,7 +102,7 @@ const mocks = {
102102
jest.doMock('ScrollView', () => mockScrollView);
103103

104104
// eslint-disable-next-line global-require
105-
return require('./ImmutableListView').default;
105+
return require('./ImmutableListView').ImmutableListView;
106106
},
107107
};
108108

0 commit comments

Comments
 (0)