Skip to content

Commit e5b78bc

Browse files
author
bd-arc
committed
doc(README): update documentation for version 3.3.4
1 parent b7b4ed1 commit e5b78bc

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ Prop | Description | Type | Default
182182
`enableSnap` | If enabled, releasing the touch will scroll to the center of the nearest/active item | Boolean | `true`
183183
`firstItem` | Index of the first item to display | Number | `0`
184184
`hasParallaxImages` | Whether the carousel contains `<ParallaxImage />` components or not. Required for specific data to be passed to children. | Boolean | `false`
185-
`lockScrollWhileSnapping` | Prevent the user from swiping again while the carousel is snapping to a position. This prevents miscellaneous minor issues (inadvertently tapping an item while scrolling, stopping the scrolling animation if the carousel is tapped in the middle of a snap, clunky behavior on Android when short snapping quickly in opposite directions). On iOS, it will also make the carousel snaps to the immediate previous or next item as soon as it becomes active. The only drawback is that enabling the prop hinders the ability to swipe quickly between items as a little pause between swipes is needed. **Note that the prop won't have any effect if `enableMomentum` is set to `true`, since it would otherwise impede the natural and expected behavior.** | Boolean | `false`
185+
`lockScrollWhileSnapping` | Prevent the user from swiping again while the carousel is snapping to a position. This prevents miscellaneous minor issues (inadvertently tapping an item while scrolling, stopping the scrolling animation if the carousel is tapped in the middle of a snap, clunky behavior on Android when short snapping quickly in opposite directions). The only drawback is that enabling the prop hinders the ability to swipe quickly between items as a little pause between swipes is needed. **Note that the prop won't have any effect if `enableMomentum` is set to `true`, since it would otherwise impede the natural and expected behavior.** | Boolean | `false`
186186
`shouldOptimizeUpdates` | Whether to implement a `shouldComponentUpdate` strategy to minimize updates | Boolean | `true`
187187
`swipeThreshold` | Delta x when swiping to trigger the snap | Number | `20`
188188
`vertical` | Layout slides vertically instead of horizontally | Boolean | `false`

example/README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
## Example
22

3+
:warning: **Before anything, make sure to read [this note](https://github.com/archriss/react-native-snap-carousel/#important-note-regarding-android) regarding Android.**
4+
35
![react-native-snap-carousel](http://i.imgur.com/m0297Ys.gif)
46

5-
The example is a basic React Native app, which means you should follow [the official doc](https://facebook.github.io/react-native/docs/getting-started.html) to get started with it. Make sure to read the instructions found in tab "Building Projects with Native Code".
7+
The example is a basic React Native app, which means you should follow [the official doc](https://facebook.github.io/react-native/docs/getting-started.html) to get started with it. Make sure to read the instructions found in tab "**Building Projects with Native Code**".
68

79
To sum up:
810
- make sure that everything you need has been properly installed (Node, Watchman, RN command line interface, XCode...)

0 commit comments

Comments
 (0)