How to open calendar componet by click on a text
See original GitHub issue<Text onPress={_pressHere} >
Select date
</Text>
var _onPress = () => {
return (
<MyDatePicker/>
)
};
Issue Analytics
- State:
- Created 7 years ago
- Reactions:1
- Comments:15 (1 by maintainers)
Top Results From Across the Web
open a componet by click on text in react native - Stack Overflow
open a componet by click on text in react native ... I want to open a calendar component when I click on a...
Read more >How to show calendar only click on icon using JavaScript
How to show calendar only click on icon using JavaScript ?
Read more >How to click calendar from text - Activities - UiPath Forum
I want to click text from calendar in day = 1 but it error not found. Guide me please.
Read more >Datepicker - Angular Material
The datepicker allows users to enter a date either through text input, or by choosing a date from the calendar. It is made...
Read more >Date picker component — Vuetify
By default the current date is displayed using outlined button - show-current prop allows you to remove the border or select different date...
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
@nimamyscreen @appsthatmatter My example was deleted accidentally…sorry for that here is the code
hide icon by
showIcon={false}
, hide datepicker’s touchable view bystyle={{width: 0, height: 0}}
, hide inputBody view bycustomStyles
and use ref as a hook. (PS. kind of tedious…)@nimamyscreen you can learn more about ref through this document
@nimamyscreen save the ref in a temporary variable will work.
In
onPress
callback, you’d better test whethermyDatepicker
is defined.