Skip to content

Commit 52d0745

Browse files
committed
📝 Update example app and readme with deprecated syntax
1 parent 5ce1b1d commit 52d0745

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ For FlatList and VirtualizedList:
3939
/>
4040
```
4141

42-
For ListView:
42+
For ListView (deprecated as of React Native v0.59):
4343

4444
```jsx
4545
<ImmutableListView
@@ -89,7 +89,7 @@ if you'd like to see it in action.
8989
For ListView:
9090

9191
```js
92-
import { ImmutableListView } from 'react-native-immutable-list-view';
92+
import { ImmutableListView } from 'react-native-immutable-list-view/lib/ImmutableListView';
9393
```
9494

9595
## Example usage -- replacing FlatList
@@ -147,7 +147,7 @@ You can remove all that boilerplate in your constructor, as well as lifecycle me
147147
```diff
148148
-import { Text, View, ListView } from 'react-native';
149149
+import { Text, View } from 'react-native';
150-
+import { ImmutableListView } from 'react-native-immutable-list-view';
150+
+import { ImmutableListView } from 'react-native-immutable-list-view/lib/ImmutableListView';
151151
152152
import style from './styles';
153153
import listData from './listData';

example/src/ImmutableListViewExample.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import React from 'react';
33

44
// ESLint can't resolve the module location when running on Travis, so ignore these lints.
55
// eslint-disable-next-line import/no-unresolved, import/extensions
6-
import { ImmutableListView } from 'react-native-immutable-list-view';
6+
import { ImmutableListView } from 'react-native-immutable-list-view/lib/ImmutableListView';
77

88
import GenericListExample from './GenericListExample';
99

0 commit comments

Comments
 (0)