diff --git a/example/App.js b/example/App.js index 42a4857..b327350 100644 --- a/example/App.js +++ b/example/App.js @@ -30,21 +30,33 @@ const styles = StyleSheet.create({ }, }); +// use to test customStyles +const customStyles = StyleSheet.create({ + dayButton: { + padding: 10, + }, + dayButtonFiller: { + padding: 10, + }, +}); + class App extends Component { constructor(props) { super(props); this.state = { - selectedDate: moment().format(), + selectedDate: moment().format('YYYY-MM-DD'), }; } render() { + let eventDates = [moment().format('YYYY-MM-DD'), moment().add(1, "day").format('YYYY-MM-DD'), + moment().add(14, "day").format('YYYY-MM-DD'), moment().add(1, "month").format('YYYY-MM-DD')]; + return ( console.log('onTouchNext: ', e)} onSwipePrev={(e) => console.log('onSwipePrev: ', e)} onSwipeNext={(e) => console.log('onSwipeNext', e)} + selectedDate={this.state.selectedDate} + showEventIndicators={true} /> Selected Date: {moment(this.state.selectedDate).format('MMMM DD YYYY')}