-
Notifications
You must be signed in to change notification settings - Fork 134
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to get the screen name on which the error occurs #153
Comments
Did you find anything on this issue?, i am looking for the same. |
Not by this library. But got a workflow for this by using react-navigation. So, whenever the error occurs I am getting the screen from the react-navigation. This screen would be prior to the error screen. Hope this would help you! |
In case you use react navigation (v6 but might work also in v5) you can use global variable. //function
//in your navigation container
Then you can access your current route name from global variable |
@ssokhavirith but this return the second last screen not the current screen on which error has occured. For instance; I have a stack screen inside a bottom navigation and error occurs on the stack screen. So the currentscreen always points to the bottom tab in which the stack screen (error occured screen) lies. |
I would also like to know how to get the name of the screen on which the error occured. |
HI,
How can we get the screen name on which the error occurs?
It is only returning the error message.
The text was updated successfully, but these errors were encountered: