renderArrow and clickable area
See original GitHub issueDescription
I have add renderArrow but click area don’t match with arrow
Expected Behavior
I have add this code at <Calendar />
:
renderArrow={(direction) => {
if (direction == "left")
return (
<IconButton icon="arrow-left-bold-circle-outline" color='#291D89' size={30} />
);
if (direction == "right")
return (
<IconButton icon="arrow-right-bold-circle-outline" color='#291D89' size={30} />
);
}}
Observed Behavior
Red is clickable area…
If I click on arrow, the month doesn’t change
Environment
react-native-calendars
: 1.1260.0react-native
: 0.64.1
I use expo web to try it
Issue Analytics
- State:
- Created 2 years ago
- Comments:5
Top Results From Across the Web
How to increase the clickable area of a nested clickable Text
<Text onPress={() => alert('Hit')}> I can create a nested ... However, the clickable area of this hyperlink is tiny, which leads to bad...
Read more >renderArrow · Issue #877 · wix/react-native-calendars - GitHub
Description I am using renderArrow in Calendar component to render ... area where the right arrow renders the months are getting changed ...
Read more >When should I use arrow functions with React?
Arrow functions are a lot of fun, but they can sometimes slow down your React app. So let's find out when they make...
Read more >renderArrow | React Elastic Carousel - GitHub Pages
A flexible and responsive carousel component for react.
Read more >react-native-calendars - npm
This module includes various customizable React-Native calendar components. The package is both Android and iOS compatible. See our new Docs site. Try it...
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 Free
Top 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
This issue is still there ! anyone got something on it!
EDITED: at first i was using the touchableopactity on top of Icon. But then i realized it does not needed it. then i removed it. now its working fine.
Hi @ahmad6242 , I have try 1.1277.0 and I still have this problem.