标签:react native

神坑react-native之adb命令无法连接设备(could not read ok from ADB Server * failed to start daemon)的原因和解决方案

神坑react-native之adb命令无法连接设备(could not read ok from ADB Server * failed to start daemon)的原因和解决方案

今天在使用adb connect 127.0.0.1:62001 命令连接夜神模拟器的时候,一直连接不上,提示: adb server version (31) doesn't match this client (39); killing... could not read ok from ADB

admin admin 2018-02-02
1.1W+ 1 0
神坑react-native之黄色警告Remote debugger is in a background tab which may cause apps to perform slowly. Fix this by foregrounding the tab (or opening it in a separate window).

神坑react-native之黄色警告Remote debugger is in a background tab which may cause apps to perform slowly. Fix this by foregrounding the tab (or opening it in a separate window).

在调试react native项目的时候打开 Debug JS Remotely 浏览器远程调试模式后,偶尔会出现黄色警告提示: Remote debugger is in a background tab which may cause apps to perform slowly. Fix th

admin admin 2018-01-30
5.4K+ 0 0
神坑react native之react-native-swiper组件导入react-navigation中不显示文字图片等内容的解决方案

神坑react native之react-native-swiper组件导入react-navigation中不显示文字图片等内容的解决方案

开发环境:react native:0.51  , react-native-swiper:1.5.6 , react-navigation:1.0.0 beta27 APP主要架构使用的是react-navigation组件的TabNavigator实现底部tab切换,但是在首屏中引入封装好的

admin admin 2018-01-22
3.5K+ 0 0
神坑react native之react-navigation组件TabNavigator模式底部图标tabBarIcon不显示的解决方案

神坑react native之react-navigation组件TabNavigator模式底部图标tabBarIcon不显示的解决方案

在react native项目中使用了react-navigation组件的TabNavigator模式,制作tab切换效果很方便,但是按照官方的写法,编译后在tab标题栏并没有显示icon图标,经排查,icon图标配置没有问题,只是写在tabBarIcon属性里会出现不显示的情况。 经过反复

admin admin 2018-01-21
5.2K+ 0 0
神坑React Native之react-native-vector-icons组件报错While resolving module `react-native-vector-icons/MaterialIcons`, the Haste package `react-native-vector-icons` was found. However the module `MaterialIcons` could not be found within the package的解决方案

神坑React Native之react-native-vector-icons组件报错While resolving module `react-native-vector-icons/MaterialIcons`, the Haste package `react-native-vector-icons` was found. However the module `MaterialIcons` could not be found within the package的解决方案

react native项目中使用了大名鼎鼎的图标组件 react-native-vector-icons组件,但是今天测试的时候红屏报错: error: bundling failed: Error: While resolving module `react-native-vector-icon

admin admin 2018-01-20
3.1K+ 0 0
用webstorm写react native JSX代码,取消标签默认灰色背景的方法

用webstorm写react native JSX代码,取消标签默认灰色背景的方法

webstorm的确是款神器。当我们用webstorm开发react native项目,在js文件中写JSX语法时,编辑器中对应的组件标签会有默认的灰色背景,看着别扭,取消方法如下: 1、选择webstorm菜单栏中的 File->Settings  2、在setting窗口中依次选择

admin admin 2018-01-05
3.1K+ 0 0
神坑react native之unable to load script from assets ‘index.android bundle’ ,make sure your bundle is packaged correctly or youu’re runing a packager server

神坑react native之unable to load script from assets ‘index.android bundle’ ,make sure your bundle is packaged correctly or youu’re runing a packager server

最近在react native项目中执行 react-native run-android 命令后,模拟器设备中报错: unable to load script from assets ‘index.android bundle’ ,make sure your bundle is package

admin admin 2018-01-03
3.1K+ 0 0
掰扯掰扯npm、cnpm和yarn

掰扯掰扯npm、cnpm和yarn

模块化当道的今天,做开发离不开npm安装各种依赖模块,但,又是众所周知的网络原因,npm命令在执行的时候并不是那么顺利,要是重试个十次八次就能安装成功,那都得进庙感谢一下菩萨保佑。当然,技术圈里有不少别的方法,比如cnpm和yarn,看官方介绍,如初恋般美好。cnpm是淘宝号称提供npm的完整镜像,

admin admin 2017-12-21
2.3K+ 1 0
神坑react native之Unzipping C:\Users\***\.gradle\wrapper\dists\gradle-2.14.1-all\8bnwg5hd3w55iofp58khbp6yv\gradle-2.14.1-all.zip to …

神坑react native之Unzipping C:\Users\***\.gradle\wrapper\dists\gradle-2.14.1-all\8bnwg5hd3w55iofp58khbp6yv\gradle-2.14.1-all.zip to …

在react antive模拟器调试中,执行 ract-antive run-android 后报错: Unzipping C:\Users\sqz\.gradle\wrapper\dists\gradle-2.14.1-all\8bnwg5hd3w55iofp58khbp6yv\gradle-2.

admin admin 2017-12-20
3.7K+ 0 0
神坑react native之打开SDK Manager.exe闪退无法打开的解决方法

神坑react native之打开SDK Manager.exe闪退无法打开的解决方法

做react native开发难免要鼓捣一下android sdk环境,android sdk manager下载解压后,双击SDK Manager.exe,就可以打开android sdk manager,界面化选择各种需要的sdk接口并安装。但博主老孙遇到了这种情况,之前安装一切正常,几天后要再

admin admin 2017-12-19
2.2K+ 0 0
1 2