摘要: 要实现上述效果需要两个插件第一个插件式rn-fetch-blob,用这个插件实现文件下载的功能第二个插件式react-native-file-viewer,用这个插件实现弹框的效果。 新建DownloadView.js import Permissions from './Permissions'; 阅读全文
posted @ 2025-05-27 17:11 Lemon_123 阅读(63) 评论(0) 推荐(0)
摘要: 有没有大佬知道这种问题怎么解决!!!!! 阅读全文
posted @ 2025-02-20 16:41 Lemon_123 阅读(6) 评论(0) 推荐(0)
摘要: 有没有大佬知道这种问题怎么解决!!!!! 在线等!!! 阅读全文
posted @ 2025-02-20 16:40 Lemon_123 阅读(4) 评论(0) 推荐(0)
摘要: 在android/app/src/main/java/com/platfrom中添加CustomOkHttpClientFactory.java package com.platfrom; import com.facebook.react.modules.network.OkHttpClientF 阅读全文
posted @ 2024-12-10 15:28 Lemon_123 阅读(77) 评论(0) 推荐(0)
摘要: 今天打包app报错显示另一个程序正在使用此文件,进程无法访问 先 ./gradlew clean 清一下缓存 然后 ./gradlew --stop 便可打包成功 阅读全文
posted @ 2024-10-25 10:20 Lemon_123 阅读(35) 评论(0) 推荐(0)
摘要: rn代码是这样的,要在vue页面获取到token vue中是这样写的,安卓9以上都能得到,就是8获取不到 有没有大佬帮忙看看,跪谢!!!! 已解决!!! 在vue获取token处加延迟 阅读全文
posted @ 2024-10-18 17:52 Lemon_123 阅读(7) 评论(0) 推荐(0)
摘要: 先给WebView一个key值 点击刷新时刷新key值 this.setState({ key: this.state.key + 1 }); 阅读全文
posted @ 2024-06-04 10:28 Lemon_123 阅读(32) 评论(0) 推荐(0)
摘要: npm i react-native-camera --save 或 yarn add react-native-camera 在android/app/build.gradle中 添加:missingDimensionStrategy 'react-native-camera', 'general 阅读全文
posted @ 2024-04-18 15:44 Lemon_123 阅读(120) 评论(0) 推荐(0)
摘要: 只需要把config文件夹下的 host改为自己本机的ip就可以了 阅读全文
posted @ 2024-03-15 09:13 Lemon_123 阅读(92) 评论(0) 推荐(0)
摘要: webview组件调用html页面并实现互相传值的功能 1.rn页面 html ——> rn html页面传参 if(window.ReactNativeWebView){ window.ReactNativeWebView.postMessage('值'); } 接收html的数据使用接收 onM 阅读全文
posted @ 2024-02-28 10:34 Lemon_123 阅读(188) 评论(0) 推荐(0)