catalinmiron / react-native-plaid-link

React Native Plaid authenticator
124 stars 55 forks source link

Accessing the close button within the web view #37

Open mkarazin opened 4 years ago

mkarazin commented 4 years ago

Has anyone figured out how to access the close button (the X in the top right) programmatically within the webview?

I'd like to hook up the Android back button to call this close button. This is to handle the case where the user is on the connected page, after linking their account, but instead of hitting X or Continue, they hit back. As the user has connected their account, the application needs access to the metadata of the successfully linked account. This data is only provided if the user hits X or Continue. If the user closes using the back button, the app never receives this data.