react-native-facebook-login icon indicating copy to clipboard operation
react-native-facebook-login copied to clipboard

ERROR FLAG

Open MarvinSantos opened this issue 8 years ago • 2 comments

Hi, i can't find a flag on the error tu use in my callback. "error": { "declinedPermissions: [], "provider":"facebook", "type":"error", "eventName":"onError", "message":"CONNECTION_FAILURE: CONNECTION_FAILURE" }

i have to show a modal when the connection fail, but the only information about the reason of the error is on the message property that don't seems so good to use for checking. any help?

MarvinSantos avatar Feb 17 '17 18:02 MarvinSantos

not sure why you need a flag.

when an error happens the onError callback is triggered. once you end up in that callback then only an error could have occurred. you could just trigger your error modal.

Also if error is defined, it means that there is an error

In what scenario would you need the flag?

lwhiteley avatar Feb 17 '17 18:02 lwhiteley

i have to show the modal only if the error is a connection error, cause the modal is specific for reporting connection issues.

MarvinSantos avatar Feb 17 '17 19:02 MarvinSantos