On top of the new layouts, we've exposed the logic we used so that users can create their own awesome layouts! If you're interested, take a deep breath and dive into the dedicated documentation. Here are a few examples of what can easily be achieved (you can explorethe source codeand...
History v3.6.0 Add alayoutprop to let users choose between 3 different carousel layouts (seethe documentation) Add the ability to define dynamic styles based on scroll position with propsscrollInterpolatorandslideInterpolatedStyle. This allows implementing custom animations and layouts (seethe dedicated ...
, "main": "src/index.js", "repository": { "type": "git", "url": "github.com/archriss/react-native-snap-carousel" }, "keywords": [ "react", "native", "carousel", "slider", "swiper", "items", "snap", "android", "ios", "simple", "snapping", "component", "rtl" ], "...
Handle device orientation event (see [this note] (https://github.com/archriss/react-native-snap-carousel#handling-device-rotation)) Add RTL support Improve momemtum handling Improve snap on Android Handle passing 1 item only Fix centering
This is pretty easy: in yourpackage.jsonfile, use the GitHub link instead of a version number, and point to the specific commit using#. For example, if the commit reference isfbdb671, you would write: "react-native-snap-carousel":"https://github.com/archriss/react-native-snap-carousel#...
renderItemTakes an item from data and renders it into the list. The function receives one argument{item, index}(seeUsage) and must return a React element.FunctionRequired itemWidthWidth in pixels of carousel's items,must be the same for all of themNumberRequired for horizontal carousel ...
"react-native-snap-carousel": "https://github.com/meliorence/react-native-snap-carousel#fbdb671" Useful threads Some issues stand above the others because a lot of useful information has been shared. In order to make it easier for everyone to find them, they are tagged with an asterisk. ...
github.com/archriss/react-native-snap-carousel Weekly Downloads 70,905 Version 3.9.1 License BSD-3-Clause Unpacked Size 191 kB Total Files 23 Issues 337 Pull Requests 60 Last publish 4 years ago Collaborators Tryon RunKit Reportmalware
github.com/archriss/react-native-snap-carousel Homepage github.com/archriss/react-native-snap-carousel Weekly Downloads 2 Version 3.9.4 License BSD-3-Clause Unpacked Size 11.9 MB Pull Requests 60 Last publish 4 years ago Collaborators Tryon RunKit ...
We've gathered together all the useful tips and tricks. There is a bunch of them, which makesthis section a must-read! 📚Documentation for "Tips and tricks" Make sure to read about the known issues before opening a new one; you may find something useful. ...