Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
dorkyboi authored Jan 17, 2023
1 parent c5a4b0f commit 5de7e07
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,19 +60,19 @@ export default function App() {
<Timetable
// these two are required
items={items}
cardComponent={MyItemCard}
renderItem={props => <YourComponent {...props}/>}

// provide only one of these if you need to
date={date} // optional
range={range} // optional
// provide only one of these
date={date}
range={range}
/>
</ScrollView>
);
}
```
<br/>

`CardComponent` example
`YourComponent` example

```js
/**
Expand All @@ -82,7 +82,7 @@ export default function App() {
* @param dayIndex For multiday items inicates current day index
* @param daysTotal For multiday items indicates total amount of days
*/
export default function MyItemCard({style, item, dayIndex, daysTotal}) {
export default function YourComponent({style, item, dayIndex, daysTotal}) {
return (
<View style={{
...style, // apply calculated styles, be careful not to override these accidentally (unless you know what you are doing)
Expand Down

0 comments on commit 5de7e07

Please sign in to comment.