Skip to content

Commit 586e31d

Browse files
troZeePiotr Trocki
andauthored
chore: add new version section to readme (#374)
Co-authored-by: Piotr Trocki <[email protected]>
1 parent 07a175f commit 586e31d

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

README.md

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,12 @@ This component allows the user to swipe left and right through pages of data. Un
2121
| iOS | iOS support |
2222
| ViewPager1 | ViewPager2 |
2323

24+
## Next version
25+
26+
Lazy page loading has been added to the `next` version. If you would like to test lazy apporach in your app, you can try next version using below command:
27+
28+
`yarn add @react-native-community/viewpager@next`
29+
2430
## Migration
2531

2632
`"@react-native-community/viewpager"` library has been changed to `react-native-pager-view`. Here you can find more information, how to migrate pager view to the latest [version](https://github.com/callstack/react-native-pager-view/blob/master/MIGRATION.md)
@@ -128,7 +134,6 @@ const styles = StyleSheet.create({
128134

129135
## Advanced usage
130136

131-
//TODO
132137
For advanced usage please take a look into our [example project](https://github.com/callstack/react-native-pager-view/blob/master/example/src/BasicPagerViewExample.tsx)
133138

134139
## API
@@ -161,7 +166,7 @@ See the [contributing guide](CONTRIBUTING.md) to learn how to contribute to the
161166

162167
## Known Issues
163168

164-
- `flex:1` does not work for child views, please use `width:”100%”, height:”100%” ` [instead](https://github.com/callstack/react-native-pager-view/issues/186#issuecomment-675320732)
169+
- `flex:1` does not work for child views, please use `width:”100%”, height:”100%”` [instead](https://github.com/callstack/react-native-pager-view/issues/186#issuecomment-675320732)
165170

166171
- [iOS]: In case of `UIViewControllerHierarchyInconsistency` error, please use below fix:
167172

@@ -189,4 +194,4 @@ requestAnimationFrame(() => refPagerView.current?.setPage(index));
189194

190195
## License
191196

192-
MIT
197+
MIT

0 commit comments

Comments
 (0)