Answer the question
In order to leave comments, you need to log in
Is there something like Event Listener, Event Subscriber in React Native?
Good afternoon,
I started a project on React Native. In general, this is a simple API application.
So I wondered if there is something like Event Listener, Event Subscriber in React Native?
That is, I make a request, if my API Token is invalid, then it simply sends for authorization and erases the old API Token from asyncstorage.
To prescribe the same thing in each request is somehow not very (DRY).
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question