找到myproject/node_modules/react-native/React/Base/RCTModuleMethod.mm. 【或者(.m)】文件 修改static BOOL RCTParseUnused 方法如下: static BOOL RCTParseUnused(const char **input) { return ...
ReactNative
React Native解决Android的WebView执行injectedJavaScript慢的问题
注入的js代码超行的问题,把js代码压缩成一行就好了。
React native WebView 适配Android 和 Ios缩放问题
import { Platform, } from 'react-native'; scalesPageToFit={Platform.OS === 'ios'? false : true}
react native fetch TypeError: Network request failed
ios正常,android模拟器提示TypeError: Network request failed。 fetch的地址是localhost报错的,换个ip解决问题。
laravel timestramp react native new date invalid date
new Date(item.created_at.replace(new RegExp(/-/gm) ,"/"))
react-native ios启动设备
模拟器 react-native run-ios --simulator "iPhone 7" 真机 react-native run-ios --device "lm"
RN-常用第三方组件
ListView的优化 https://github.com/sghiassy/react-native-sglistview 调用系统打电话、发短信、发邮件、打开网址功能 https://github.com/anarchicknight/react-native-communications 图表...
在 MAC OS X 安装 ADB (Android调试桥)
什么是 ADB? Android调试桥( adb )是一个开发工具,帮助安卓设备和个人计算机之间的通信。 这种通信大多是在USB电缆下进行,但是也支持Wi-Fi连接。 adb 还可被用来与电脑上运行的安卓模拟器交流...
react-native错误
xcrun: error: unable to find utility "instruments", not a developer tool or in PATH 在终端执行如下命令 sudo xcode-select -s /Applications/Xcode.app/Contents/Developer/ 'config.h' file not found...
react project init
npm config set registry https://registry.npm.taobao.org --global npm config set disturl https://npm.taobao.org/dist --global npm install -g yarn react-native-cli yarn config set registry htt...