react-native-horizontal-list
v1.0.3
Published
You can show a horizontal list with the help of this npm. You can show movies list, ranking of something, etc.
Downloads
6
Readme
react-native-horizontal-list
install by npm install --save react-native-horizontal-list
Use this data format to show a list
const listData = [ { id: 1, category: "Super Hero", title: "captain america", image: require("./assets/images/myimg.jpeg"), rating: 3.5 }, { id: 2, category: "Super Hero", title: "captain america", image: { uri: "https://placeimg.com/200/200/any" }, rating: 3.5 }, { id: 3, category: "Super Hero", title: "captain america", image: { uri: "https://placeimg.com/200/200/any" }, rating: 3.5 }, { id: 4, category: "Super Hero", title: "captain america", image: { uri: "https://placeimg.com/200/200/any" }, rating: 3.5 }, { id: 5, category: "Super Hero", title: "captain americacaptain americacaptain americacaptain americacaptain americacaptain america", image: { uri: "https://placeimg.com/200/200/any" }, rating: 3.5 } ];
pass it like
<HorizontalList data={listData}/>
