Answer the question
In order to leave comments, you need to log in
How to make it so that you can enter once a day in a react native application?
It is necessary that it be possible to make it so that the user of the application can enter a value only once a day, or once every three hours. If the limit is exceeded, then when you try to enter, an alert appears, which says that it is no longer possible, and nothing is added to the database. Prompt, please, tutorials, articles, documentation on this issue.
Answer the question
In order to leave comments, you need to log in
Remember the input time in AsyncStorage and compare the difference between the time of the last input and the current time when trying a new input. If the time is less than 3 hours, then disable the change. AsyncStorage is the best solution for you.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question