React Native跳转第三方APP
来源:互联网 发布:java调用类的构造器 编辑:程序博客网 时间:2024/05/31 19:46
React Native跳转微信、支付宝等第三方APP
一、常用URL Scheme
QQ: mqq://
微信: weixin://
新浪微博: weibo:// (sinaweibo://)
腾讯微博: tencentweibo://
淘宝: taobao://
支付宝: alipay://
美团: imeituan://
知乎: zhihu://
优酷: youku://
二、配置Scheme白名单
- 在项目的info.plist中添加一LSApplicationQueriesSchemes,类型为Array。
- 添加需要支持的项目,类型为字符串类型;
三、Linking跳转
// 1、导入import { Linking } from 'react-native';// 2、跳转代码Linking.canOpenURL('weixin://').then(supported => { // weixin:// alipay:// if (supported) { Linking.openURL('weixin://'); } else { toastShort(`请先安装XXX`); }});
参考链接
1、react native linking
0 0
- React Native跳转第三方APP
- React Native, IOS跳转第三方APP
- Android第三方应用或者原生app内跳转React native的某个页面
- 【转】 React-Native调用浏览器和第三方APP
- React-native 第三方组件
- 跳转第三方地图app
- React-Native学习--轮播图第三方组件-react-native-swiper
- React-Native学习--轮播图第三方组件-react-native-swiper
- react native第三方组件问题
- React-Native常用第三方库
- 更改React Native第三方组件源码
- React Native引入第三方库
- React Native第三方组件优化精简
- React Native常用第三方组件
- RN-第三方之-react-native-fs
- React native 常用第三方件总结
- react native 怎么引用第三方库
- react native 常用的第三方工具包
- 23种设计模式(12):策略模式
- KMP字符串模式匹配详解
- GitHub使用教程for Eclipse
- HEXO搭建个人博客
- table中元素的border不显示问题
- React Native跳转第三方APP
- inand驱动问题的解决+一些小问题的修补
- hive使用经验总结(持续更新中)
- 约瑟夫环问题——链表
- Android-Button点击事件的四种写法
- 23种设计模式(13):迭代器模式
- 第五届“蓝桥杯”全国软件 校内选拔赛试题(Java组)2。
- spark中的cache() persist() checkpoint()之间的区别
- MySQL查询缓存设置提高MySQL查询性能