[英]How can I pass username and password in React Native Linking?
I have imported Linking from React Native in my app for opening urls. 我在我的应用程序中导入了来自React Native的链接以打开网址。 But the url which I am using requires username and password, and after using Linking it every-times ask for username and password in my app.
但我使用的网址需要用户名和密码,使用链接后每次都要求我的应用程序中输入用户名和密码。 Is there any way in which I can pass username and password inside my Linking code?
有什么方法可以在我的链接代码中传递用户名和密码吗?
Linking.openURL(url).catch((err) => console.error('An error occurred', err));
您的网址需要包含查询参数,例如:
https://www.google.com/search?q=react+native
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.