Usage
let item = { day: "Day 01", image: require("@assets/images/trip-1.jpg"), title: "Getting Started", description: "Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit, sed quia non numquam eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat voluptatem" }; <TourDay image={item.image} day={item.day} title={item.title} description={item.description} style={{ marginLeft: 20 }} onPress={() => { console.log("Tour Day")}} />
Props
day
Type: String | Required
Information or day name
title
Type: String | Required
The title of tour
description
Type: String | Required
The information of tour
onPress
Type: Function
Function to execute on press
style
Type: StyleProp
Customize CSS style ViewStyle