Android 10 及以上机型存储文件到出错而奔溃

问题描述在 React Native,使用以下代码,实现下载 apk 并安装升级。import RNFetchBlob from 'rn-fetch-blob';let downloadPath = ...
2020-11-28 React Native 评论 0

React Native 0.63 iOS 在 Release 时 报错:YogaKit/YogaKit.modulemap' not found

问题描述Xcode 12,React Native 升级到 0.63.2 时,尝试发布 iOS 项目,但是编译的时候报错了。fatal error: module map file '/Users/c...
2020-11-09 React Native 评论 0

解决 React Native 0.62 安卓打包apk后,index.android.bundle 被修改为二进制文件

问题描述React Naitve 升级到 0.62,打包正式版 apk 前,将 React Naitve 模块的 js 文件捆绑到 index.android.bundle,运行npx react-n...
2020-07-15 React Native 评论 0

翼支付的 React Native 插件

本插件参考了 翼支付 - App支付文档。参考 https://github.com/caipeiming/react-native-bestpay。安装yarn add react-native-b...
2020-05-31 React Native 评论 0

React Native 使用 Hermes 调试 Javascript

Hermes 的出现关于 React Native 的 JS 调试,可以通过浏览器调试器来调试 Javascript。这意味着我们的应用程序无需在设备的 Javascript 引擎中运行代码,而可以在...
2020-05-15 React Native 评论 0

React Native 安卓 OPPO 厂商推送

react-native-oppo-push 使用 OPPO PUSH 客户端SDK接口文档(2.1.0版本),适配最新 Android 10(Android Q)的 OPPO 手机厂商推送,系统级...
2020-05-11 React Native 评论 0

在 React Native 中检测并适配暗黑模式

Android 10 (API 级别 29) 及更高版本中提供 深色主题背景,在iOS 13.0及更高版本中,用户可以选择深色系统的外观,称为 Dark Mode(深色模式)。在 React Nati...
2020-05-09 React Native 评论 0

React Native 0.62 警告 Animated: "useNativeDriver" was not specified

问题描述React Native 项目升级到 0.62,之前写的有关 Animated 方法,出现了警告。WARN Animated: "useNativeDriver" was not specif...
2020-05-07 React Native 评论 0

React Native 0.62 iOS 错误 Undefined symbol: associated type descriptor for FloatLiteralType

问题描述React Native 0.61.5 升级到 0.62.2,Xcode 编译时出现一下错误。ld: warning: Could not find or use auto-linked li...
2020-05-01 React Native 评论 0

升级到 React Native 0.62.2 iOS错误: Undefined symbol _swift_getFunctionReplacement

问题描述将 React Native 从 0.61.5 升级到 0.62.2 时,Xcode 编译时出现错误:Undefined symbols for architecture x86_64: "...
2020-04-29 React Native 评论 0
MIP.watch('startSearch', function (newVal, oldVal) { if(newVal) { var keyword = MIP.getData('keyword'); console.log(keyword); // 替换当前历史记录,新增 MIP.viewer.open('/s/' + keyword, {replace: true}); setTimeout(function () { MIP.setData({startSearch: false}) }, 1000); } }); MIP.watch('goHome', function (newVal, oldVal) { MIP.viewer.open('/', {replace: false}); });