Open mc13an opened 6 years ago
I have the same problem.
I am find one solution:
<PlaidAuth
onMessage={ scope.onMessage }
publicKey={ config.key }
env={ config.env }
product={ config.product }
clientName="CoinVest"
onShouldStartLoadWithRequest={ (request) => this.onShouldStartLoadWithRequest(request) } // add this line
/>
onShouldStartLoadWithRequest = (request) => {
if (request.navigationType != undefined && request.navigationType != 'other') {
// If user click in reset password, the webview return nothing, and react open the
// uri in default device browser, "Import Linking of react-native"
Linking.canOpenURL(request.url).then(supported => {
if (supported) {
Linking.openURL(request.url);
}
else {
console.log("Don't know how to open URI: " + request.url);
}
});
}
else
return true;
}
I am find one solution:
<PlaidAuth onMessage={ scope.onMessage } publicKey={ config.key } env={ config.env } product={ config.product } clientName="CoinVest" onShouldStartLoadWithRequest={ (request) => this.onShouldStartLoadWithRequest(request) } // add this line /> onShouldStartLoadWithRequest = (request) => { if (request.navigationType != undefined && request.navigationType != 'other') { // If user click in reset password, the webview return nothing, and react open the // uri in default device browser, "Import Linking of react-native" Linking.canOpenURL(request.url).then(supported => { if (supported) { Linking.openURL(request.url); } else { console.log("Don't know how to open URI: " + request.url); } }); } else return true; }
Confirmed working in XCode in a sandbox enviroment.
Thanks so much!
If you select Reset Password after you select your bank the web view thows: