daySelectionAnimation applying border to all days
See original GitHub issueHi there,
I am following your examples on the components documentation. When I run the code for having a border around the selected day, all of days of such week get the border.
<View>
<CalendarStrip
calendarAnimation={{type: 'sequence', duration: 30}}
daySelectionAnimation={{type:'border', duration: 200, borderWidth: 1, borderHighlightColor: 'white'}}
style={{height: 100, paddingTop: 20, paddingBottom: 10}}
calendarHeaderStyle={{color: 'white'}}
calendarColor={'#7743CE'}
dateNumberStyle={{color: 'white'}}
dateNameStyle={{color: 'white'}}
highlightDateNumberStyle={{color: 'yellow'}}
highlightDateNameStyle={{color: 'yellow'}}
disabledDateNameStyle={{color: 'grey'}}
disabledDateNumberStyle={{color: 'grey'}}
iconContainer={{flex: 0.1}}
/>
</View>
I also have added the prop ‘selectedDate’ but no difference on the result. Am I missing something?
Issue Analytics
- State:
- Created 3 years ago
- Comments:8
Top Results From Across the Web
react-native-calendar-strip/README.md - UNPKG
69, daySelectionAnimation={{type: 'border', duration: 200, borderWidth: 1, ... It will override all of the other styles applied to icons.
Read more >BugiDev/react-native-calendar-strip - GitHub
It recycles days using RecyclerListView, shifting the dates as the ends are reached. ... It will override all of the other styles applied...
Read more >react-native-calendar-strip - Bountysource
When I run the code for having a border around the selected day, all of days of such week get the border. <View>...
Read more >react-native-calendar-strip returns last day's date on ...
I'm using react-native-calendar-strip within my react-native application. ... duration: 30}} daySelectionAnimation={{type: 'border', ...
Read more >react-native-calendar-strip .Easy to use and visually stunning ...
dateNumberStyle, Style for the number of the day on work days in dates strip. Any ... It will override all of the other...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
looks like I had them cached. Deleted node_modules, cleaned the cache and installed all dependencies again.
2.1.7 is working fine.
Thanks!
I tested 2.1.7 in the sample project in this repo using the
<CalendarStrip>
props you provided. You may need to delete node_modules to ensure that you’re getting the latest version.Try the sample project in this repo: https://github.com/BugiDev/react-native-calendar-strip#development-with-sample-application