react-native-calendar-strip icon indicating copy to clipboard operation
react-native-calendar-strip copied to clipboard

Is it possible to get week days on left or right icon?

Open ganesh-papola opened this issue 5 years ago • 3 comments

I wanted to fetch current starting week day date or name, or if we can add any action for the first day of week on left / right button?

ganesh-papola avatar Jan 09 '21 14:01 ganesh-papola

A new method will need to be added to get the state variable startingDate. Please submit a PR.

There is a prop you could try onWeekChanged https://github.com/BugiDev/react-native-calendar-strip#props

peacechen avatar Jan 09 '21 22:01 peacechen

@peacechen I tried with onWeekChanged prop. It is giving me wrong startDate/endDate

ganesh-papola avatar Jan 09 '21 22:01 ganesh-papola

Read the documentation thoroughly. It will help to debug this if you post a sample project on Expo Snack or CodeSandbox https://snack.expo.io/ https://codesandbox.io/s/q4qymyp2l6

You can also use the example project in this repo and post the exact code snippet of <CalendarStrip> that recreates the bug.

peacechen avatar Jan 10 '21 00:01 peacechen