自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(62)
  • 收藏
  • 关注

转载 使用application loader上传app,且生成构建版本

1.填写构建版本2.修改release最底部3.4.打包接下来都是下一步直至导出成功会提示的,后面苹果会发邮件到邮箱,这个邮件非常重要,如果不成功会告诉你需要修改什么。...

2019-09-28 11:58:00 250

转载 react native ios键盘遮挡

参考原文:https://www.jianshu.com/p/1c6602f9dbd7转载于:https://www.cnblogs.com/lude1994/p/11374279.html

2019-08-18 22:27:00 248

转载 swiper移动端上左右滑动不了

var swiper = new Swiper('.swiper-container', { mode: 'horizontal', pagination: '.swiper-pagination', loop: true, observer: true,//修改swiper自己或子元素时,自动初始化swiper observeParents: true//...

2019-08-16 16:18:00 1703

转载 react native 安卓(android)支持webp,亲测

在app/build.gradle中dependencies中添加implementation 'com.facebook.fresco:webpsupport:1.11.0'// 如果你需要支持WebP格式,包括WebP动图compile 'com.facebook.fresco:animated-webp:1.3.0'compile 'com.facebook.fres...

2019-07-30 07:17:00 352

转载 react-native-swiper滑动问题

情况:react-native-swiper轮播循环便利的内容时,有时候dots走不了且点击的内容都不对,然后我找了官方检测索引变化的函数(onMomentumScrollEnd),发现索引是乱的,对不上。解决方法:  在使用循环的时候将循环遍历来的索引值,直接传给函数,然后给轮播图的索引赋值转载于:https://www.cnblogs...

2019-07-24 15:30:00 798

转载 react native 识别html组件可以控制内容文字样式包括行高

推荐组件识别html:react-native-render-html试过了原生webView,react-native-htmlwiew还有其他的我设置不成功,解决不了我的问题转载于:https://www.cnblogs.com/lude1994/p/11236411.html...

2019-07-24 10:34:00 178

转载 react native 热更新

-------------------热更新-----------------------------------------------是热更新还是打新的包给后台进行重新下载// 获取后台的版本号,如果本地的版本号大于后台的版本号就下载新包,否则就是热更新getNowAppVersion().then(res => { console.log(res,'re...

2019-07-20 20:09:00 107

转载 react native 权限获取

当进入软件时就要求用户必须通过一定的权限,这个时候可以在App.js的compoentDidMount中(即根目录中):写入需要用户通过的权限   async function requestCameraPermission() { try {// 这里写的都是已进入软件就要获取的权限 const granted =...

2019-07-17 22:21:00 536

转载 react-native-router-flux物理返回键

1.引入BackHandler 从react-native中2.在componentDidMount中添加下面那行监听代码this.backHandler = BackHandler.addEventListener('hardwareBackPress', this.handleBackPress);3.在componentWillUnmount添加componentW...

2019-07-14 19:21:00 464

转载 react native 安卓打测试包后闪退

用adb logcat AndroidRuntime:E *:S 指令可以显示错误信息原因:我在修改安卓包名的时候,没有修改com下的文件的名称(应该和包名一致),报的错是类找不到转载于:https://www.cnblogs.com/lude1994/p/11181588.html...

2019-07-13 18:08:00 223

转载 invalid regular expression:range out of order in character class

可以打测试包在手机上,但是打开就报这个错。报错原因是项目中使用了错误的正则表达式转载于:https://www.cnblogs.com/lude1994/p/11179700.html

2019-07-13 10:36:00 1999

转载 Task :app:processDebugManifest FAILED

Task :app:processDebugManifest FAILEDExecution failed for task ':app:processDebugManifest'.> Manifest merger failed with multiple errors, see logs解决方法:查看AndroidM...

2019-07-11 16:23:00 1921

转载 react native 打包后微信签名不一致

重新用签名生成器生成应用签名,看看是否与微信开放平台中的应用的签名一致,不一致修改最新生成的签名即可转载于:https://www.cnblogs.com/lude1994/p/11141605.html...

2019-07-06 09:23:00 381

转载 fatal error: 'CodePush/CodePush.h' file not found

原文参考:https://blog.csdn.net/u013530539/article/details/79107810$(SRCROOT)/../node_modules/react-native-code-push/ios转载于:https://www.cnblogs.com/lude1994/p/11125724.html...

2019-07-03 12:35:00 564

转载 使用react-native-blur

1.npm install react-native-blur --savereact-native link react-native-blur2.在安卓上只是link还是不够,还要配置,否则安装成功后还是闪退  打开android/app/build.gradle,添加加黑的代码  android { // make sure to us...

2019-07-01 11:36:00 840

转载 react native仿企查查地区下拉

只写了2级,三级同理  {/*筛选地区*/} <View style={[{backgroundColor: 'pink', height: 300, flexDirection: 'row',},]}> <View style={{w...

2019-06-28 13:33:00 121

转载 react native 安卓生产包无法获取线上数据

android:usesCleartextTraffic="true"转载于:https://www.cnblogs.com/lude1994/p/11079922.html

2019-06-24 22:25:00 137

转载 > Task :app:transformDexArchiveWithExternalLibsDexMergerForDebug FAILED

> Task :app:transformDexArchiveWithExternalLibsDexMergerForDebug FAILEDD8: Cannot fit requested classes in a single dex file (# methods: 70644 > 65536FAILURE: Build failed with an e...

2019-06-24 22:01:00 393

转载 react native ios打包,即生产包

参考文章:http://www.devio.org/2017/02/09/React-Native%E5%8F%91%E5%B8%83APP%E4%B9%8B%E6%89%93%E5%8C%85iOS%E5%BA%94%E7%94%A8/1.在根目录中创建release_ios文件夹2.通过以下指令打包静态资源及部分js代码到release_ios文件夹re...

2019-06-24 17:19:00 138

转载 react native ios打包到真机,即生产包

参考文章:http://www.devio.org/2017/02/09/React-Native%E5%8F%91%E5%B8%83APP%E4%B9%8B%E6%89%93%E5%8C%85iOS%E5%BA%94%E7%94%A8/1.在根目录中创建release_ios文件夹2.通过以下指令打包静态资源及部分js代码到release_ios文件夹re...

2019-06-24 17:19:00 92

转载 react native项目在ios上运行测试,亲测

参考文章:https://segmentfault.com/a/1190000014416132说明:参考文章中有对AppDelegate.m文件的操作,我的RN版本是0.57.8未设置,也可成功运行1.2.3.,可以搜索找到设置真机版本的位置4., test也需要设置5.6.7.CMD + R 运行转载于:https:...

2019-06-24 17:01:00 288

转载 Could not find iPhone X simulator

Could not find iPhone X simulatorError: Could not find iPhone X simulator at resolve (/Users/zhouenxiao/Desktop/MeiTuan/node_modules/react-native/local-cli/runIOS/runIOS.js:149:13...

2019-06-24 11:31:00 597

转载 Task :rn-splash-screen:verifyReleaseResources FAILED

Execution failed for task ':rn-splash-screen:verifyReleaseResources'.> java.util.concurrent.ExecutionException: com.android.builder.internal.aapt.v2.Aapt2Exception: Android resource linking ...

2019-06-24 10:26:00 294

转载 Android: requires android.permission.READ_EXTERNAL_STORAGE, or grantUriPermission()

在安卓上使用组件react-native-contacts报错,是需要添加联系人的时候,说是权限问题,配置了manifest文件后依然不起效果,解决方法:  在需要引入react-native-contacts组件的页面,添加如下代码 componentDidMount = () => { //Checking for the permiss...

2019-06-13 16:52:00 1368

转载 mac上gradle升级版本

参考:https://www.jianshu.com/p/9fa9d2b4dbc9 http://www.gradle.org/downloads下载gradle终端输入:open .bash_profile 打开环境变量配置打开后配置:export GRADLE_HOME=/Users/gradle-4.4.1 // 这里的路径是当前电脑gradle文件所在的位置...

2019-06-07 09:02:00 543

转载 Error: Attribute application@allowBackup value=(false) from AndroidManifest.xml:14:7-34 is also pres...

解决方法:修改文件:  在manifest标签中添加 xmlns:tools="http://schemas.android.com/tools"  在application标签中添加tools:replace="android:allowBackup"转载于:https://www.cnblogs.com/lude1994/p...

2019-06-06 16:33:00 640

转载 git回退版本,已经commit过的文件丢了

参考:https://blog.csdn.net/qq_33877149/article/details/79705611可以用git reset --hard fa8694b回退到以上相应的位置git reflog 查看所有提交的状态转载于:https://www.cnblogs.com/lude1994/p/10985185.html...

2019-06-06 15:24:00 309

转载 null is not an object (evaluating 'Picker._init')

安装完react-native-picker后,init出现报错,其实是原生配置还没完全生效,重启项目就可以了转载于:https://www.cnblogs.com/lude1994/p/10969018.html

2019-06-03 17:41:00 1004

转载 react native 使用iconfont

安卓的配置:  1.在android/app/src/assets/fonts文件夹下复制从iconfont下载的 (下载后的icon名称可以在下载来的文件中的html文件中)  2.在android/app/build.gradle中添加project.ext.vectoricons = [ iconFontNames: [ 'iconfont.ttf...

2019-05-24 22:21:00 110

转载 react-native-video的使用

/** * Sample React Native App * https://github.com/facebook/react-native * * @format * @flow */import React, {Component} from 'react';import {TouchableOpacity, Platform, Style...

2019-05-19 17:55:00 288

转载 react-native-syan-image-picker的使用

传送门第一种方式:link  第一步:安装  1.npm install react-native-syan-image-picker --save  2.react-native link react-native-syan-image-picker  第二步:原生配置iosTARGETS -> Build Phases -> Co...

2019-05-13 17:16:00 1732

转载 com.android.builder.testing.api.DeviceException: com.android.ddmlib.InstallException: INSTALL_FAILED...

原因是连接了两个设备,所以无法启动,关掉一个即可转载于:https://www.cnblogs.com/lude1994/p/10852011.html

2019-05-12 13:39:00 438

转载 values.xml:3:5-58:857: AAPT: error: resource android:attr/fontVariationSettings not found.

修改app/build.gradle中的版本compileSdkVersion 28targetSdkVersion 28具体不知道为何要修改为28,但在android/build.gradle的版本转载于:https://www.cnblogs.com/lude1994/p/10847937.html...

2019-05-11 10:45:00 552

转载 react-native-contact 安卓已测试,

1. 下载模块 npm install react-native-contacts --save2.安卓配置:  a.在android/settings.gradle    include':react-native-contacts'    project(':react-native-contacts').projectDir=newFile(rootP...

2019-05-08 18:05:00 1074

转载 Invalid YGDirection 'vertical'. should be one of: ( inherit, ltr, rtl )

react native 路由(react-native-router-flux)跳转页面一直都报错本项目解决方法:不是路由的问题,是跳转的页面有有问题,删除下图标记的红色即可(解决方法是排除法进行定位)转载于:https://www.cnblogs.com/lude1994/p/10818264.html...

2019-05-06 10:41:00 197

转载 react native 双平台日期组件,不用link

react-native-modal-datetime-picker转载于:https://www.cnblogs.com/lude1994/p/10800114.html

2019-05-01 16:41:00 111

转载 react-native-wechat微信组件的使用

对我来说link没有成功过,所以参考了其他人的文章,原文:https://www.jianshu.com/p/6a792118fae4第一步:要去:https://open.weixin.qq.com(微信开发平台)注册账号并且创建一个移动应用。创建应用的时候需要填写Bundle ID(ios)和包名(安卓)Bundle ID在哪里?原文:https://blog....

2019-04-28 15:56:00 524

转载 [!] No `Podfile' found in the project directory.

1.cd ios/2.vim Podfile(创建Podfile)且输入内容source'https://github.com/CocoaPods/Specs.git'platform:ios,'8.0'inhibit_all_warnings!target 'testDemo' dopod 'AFNetworking', '~> 2.6.0'end3.按esc4....

2019-04-19 14:59:00 5031

转载 rn-splash-screen 启动页 ios

1.删除iOS工程文件夹下的LaunchScreen.xib 文件2.3. 如果第4步不一样的样式,可以重新走这个图片的步骤就行4.进入iOS工程的AppDelegate.m中做如下修改:#import <RCTSplashScreen/RCTSplashScreen.h> - (BOOL)application:(UIApplication *)ap...

2019-04-19 14:35:00 154

转载 rn-splash-screen 启动页 安卓

1. 进入项目npm install --save rn-splash-screen2.react-native link rn-splash-screen3.在项目android/app/src/main/res/ 路径下创建一个名称为drawable的文件夹,并在该文件夹下放置一个名称为splash的png格式的图片(用于启动页面的图片)4.在android/app/s...

2019-04-19 14:03:00 179

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除