E-COM-NET
首页
在线工具
Layui镜像站
SUI文档
联系我们
推荐频道
Java
PHP
C++
C
C#
Python
Ruby
go语言
Scala
Servlet
Vue
MySQL
NoSQL
Redis
CSS
Oracle
SQL Server
DB2
HBase
Http
HTML5
Spring
Ajax
Jquery
JavaScript
Json
XML
NodeJs
mybatis
Hibernate
算法
设计模式
shell
数据结构
大数据
JS
消息中间件
正则表达式
Tomcat
SQL
Nginx
Shiro
Maven
Linux
React-Native
React-Native
进阶_2.加载指示动画 ActivityIndicator
在安卓原始App中使用的加载框ProgressBar在
React-Native
中也是有相对应的视图,叫做ActivityIndicator,对应ios中
React-Native
提供的是ActivityIndicatorIos
CodingForAndroid
·
2020-08-15 19:36
React
Native+Flutter
react-native
热更新(android)
react-native
热更新(android)
react-native
代码分为android部分,js部分,图片资源文件其中android部分代码是不支持热更新的,支持更新的只有js代码和图片资源文件
惟馨
·
2020-08-15 19:30
react
React-Native
中对日期的几种处理
1.格式化日期Date.prototype.Format=function(fmt){varo={"M+":this.getMonth()+1,//月份"d+":this.getDate(),//日"h+":this.getHours(),//小时"m+":this.getMinutes(),//分"s+":this.getSeconds(),//秒"q+":Math.floor((this.ge
CindyBird
·
2020-08-15 19:27
React-Native
中this的带给大家的困惑
转载请标明出处:http://blog.csdn.net/u010046908/article/details/50812572本文出自:【李东的博客】最近在学习
react-native
时候,一直会遇到
请叫我东子
·
2020-08-15 19:18
react
native
react-native
android手机webview加载html不显示
最近遇到个问题就是webview引用的html做的地图,但是Android上面不显示页面:原因:Android需要先把静态资源放到android/app/src/main/assets目录下面(要自己新建assets目录),然后把require('./base/ImportantMap/map.html')换成{uri:'file:///android_asset/base/ImportantMa
小星向上
·
2020-08-15 19:06
ReactNative
React-native
值得收藏的控件大全
rn动画:http://blog.csdn.net/hello_hwc/article/details/51775696股票金融类app:https://github.com/7kfpun/FinanceReactNative图形表:https://github.com/wuxudong/react-native-charts-wrapper好看的日历控件:https://github.com/w
大灰狼的小绵羊哥哥
·
2020-08-15 19:16
】
React-Native
中使用Navigatior和自定义NavigationBar
先来张效果图:http://www.jianshu.com/p/614bca02fc60废话不多说ShowyoutheCode!源码功能还是在原来的项目中实现的,代码可以单独剥离,自己动手丰衣足食源码点击这里文件路径:ListViewLoadMore/app/common/LoadingView.jsimportReact,{Component}from'react';import{View,Im
大灰狼的小绵羊哥哥
·
2020-08-15 19:15
】
react-native
DatePickerAndroid(二)
importReact,{Component}from'react';import{StyleSheet,Text,View,TouchableHighlight,DatePickerAndroid}from'
react-native
曲小强
·
2020-08-15 19:30
reactNative采坑之路
react-native
DatePickerAndroid调起日历(一)
importReact,{Component}from'react';import{StyleSheet,Text,View,TouchableHighlight,DatePickerAndroid}from'
react-native
曲小强
·
2020-08-15 19:30
reactNative采坑之路
react-native
打开一个日期控件
代码:exportdefaultclassXXXextendsComponent{constructor(props){super(props);this.tomorrowDate=this.getTomorrow();this.state={chooseDate:this.tomorrowDate.getFullYear()+'-'+this.tomorrowDate.getMonth()+'-
DeedWang
·
2020-08-15 19:50
手机移动
react-native
试玩(6)-日期选择控件
DatePickerIOSDatePickerIOS日期选择控件属性名称类型意义默认值dateDate当前选择的日期基础无默认值,必须显式设置minimumDateDate选择范围的最小值无maximumDateDate选择范围的最大值无minuteIntervalenum分钟选择的间隔in(1,2,3,4,5,6,10,12,15,20,30)1modeenum选择器的模式(‘date’,‘ti
Q博士
·
2020-08-15 19:03
框架学习[RN]
react-native试玩
React Native基础 - 常用组件
组件的初步认识,父容器需定义好宽高import{View,Text,StyleSheet,ScrollView,Dimensions,Button,TouchableOpacity,Image}from'
react-native
'const
memedadexixaofeifei
·
2020-08-15 19:13
react-native
RN 加载到html
importReact,{Component}from“react”;import{ScrollView,StyleSheet,Dimensions,ActivityIndicator,View,Text}from“
react-native
p_find
·
2020-08-15 19:43
react native webView 加载没反应和基本使用
usestrict';importReact,{Component}from'react';import{AppRegistry,StyleSheet,Text,View,Image,WebView}from'
react-native
meng1128
·
2020-08-15 18:33
react-native
init AwesomeProject 很慢
ReactNative新创建一个项目时很慢很慢,可以这样:先下载一个AwesomeProject源代码(不包含依赖),然后npminstall安装依赖npm使用taobao的依赖npmconfigsetregistryhttps://registry.npm.taobao.orgnpmconfigsetdisturlhttps://npm.taobao.org/dist--------react-
iteye_16691
·
2020-08-15 18:57
react-native
React-Native
Webview引入外部html页面,接收页面点击事件
html页面:其中解决webview报错问题代码:letgetTitle:Function=function(url:string){setTimeout(function(){//防止postMessage崩溃letoriginalPostMessage=window.postMessage;letpatchedPostMessage=function(message:any,targetOri
飞向Hadoop
·
2020-08-15 18:18
React
Native
《
React-Native
系列》29、 RN组件之WebView
说起WebView,我们还是很熟悉的吧。特别是做过Hybrid开发的同学,Web+Native一个很经典的开发模式,包括现在依然很多App上都在使用。我们列举几个比较重要的属性吧source{uri:string,method:string,headers:object,body:string},{html:string,baseUrl:string},number在WebView中载入一段静态的
coder_小刀
·
2020-08-15 18:14
ReactNative
ReactNative实战系列
react-native
页面跳转传值 props 传值和全局传值
关于reactnative传值问题,写的不好地方也请理解,下面开始......插入:一个创建native代码react-nativeinitname--version0.51.0插入:debug调试ctrl+m两次R是刷新插入:连接android设备:adbdevices,如果有问题先命令行输入:adbreversetcp:8081tcp:8081公司RN项目,所负责的模块有一个地方页面传值,碍于
hopefullman
·
2020-08-15 18:42
reactnative
传值
react-native
react-native-datepicker
react-native
时间控件使用react-native-datepickernpminstallreact-native-datepicker–savethis.showDate(date)}/>
fivestar2009
·
2020-08-15 18:16
react-native
解决ReactNative Webview加载时候白屏问题
需要使用一个View包裹Webview,并设置overflow:'hidden'参考https://github.com/facebook/
react-native
/issues/21939转载于:https
chisuiwu1167
·
2020-08-15 18:16
React-Native
: DatePickerIOS设置选择24小时
原帖:https://github.com/mmazzarolo/react-native-modal-datetime-pickerDatePickerIOS选择24小时的方法:Howtoset24hoursiniOS?Theis24HourpropisonlyavailableonAndroidbutyouuseasmallhackforenablingitoniOSbysettingthea
JoXu
·
2020-08-15 18:06
React
Native
React-native
中DatePickerAndroid的使用
在reactnative中,用DatePickerAndroid来打开系统的日期选择器,上图:关于async和await,见阮一峰老师的日志:http://www.ruanyifeng.com/blog/2015/05/async.html不同的手机系统上显示的newDate()是不同的,有的显示的是:2016/4/15,有的是04/15/16,所以将时间用toLocalString()方法转成上
Rlusia
·
2020-08-15 18:04
React
Native
ReactNative might be related to https://github.com/facebook/
react-native
/issues/4968
1.摘要ReactNative在开发的时候,会遇到很多坑。需要我们根据日志来解决。把解决经过记录下来,方便之后的开发人员来搜索解决办法。2.日志Loadingdependencygraph,done.error:bundling:UnableToResolveError:Unabletoresolvemodule`react/lib/ReactDebugCurrentFrame`from`/Use
afunx
·
2020-08-15 18:14
ReactNative
React Native 实现热更新并自动签名打包
项目背景:手动link的安卓App,
react-native
:0.62.2;react-native-code-push:6.2.01.下载react-native-code-pushnpminstall
一条•猪儿虫
·
2020-08-15 18:04
react
native
前端
react-native-webview ios加载本地js、css静态资源
最近用
react-native
做一个学生学习的app,项目当中需要展示pdf,我是用webview加载一个本地html,然后用pdf.js来渲染pdf的。
Ss_Xdh
·
2020-08-15 18:42
React
Native
react-native
webView android使用本地html问题
react-nativeWebView组件使用本地html时候,一般都是这样使用varsource=require('../html/my.html'):在debug模式下,android和ios是没有问题的然而,在release模式下,也就是打包的时候,安卓会无法读取到html路径,导致无法加载成功!在网上查找一番资料之后,得知要把html放在android的资源目录下面,并且使用file://
weixin_30955341
·
2020-08-15 17:07
React-Native
WebView使用本地js,css渲染html
前言最近在使用
React-Native
开发一个App,遇见一个问题,Webview组件根据url来加载页面,但是这样导致的一个问题页面加载的时间有点长,我想优化一下,因为页面只要是一些内容展示,我想将html
weixin_30258027
·
2020-08-15 17:34
React Native WebView使用本地HTML文件
iosPages/b.htmlHTML文件/iosPages/b.html:thisisahtmlfilethisiscontenthelloJS文件:'usestrict';varReact=require('
react-native
iteye_16691
·
2020-08-15 17:05
react-native
Mac 下配置
react-native
安卓环境中遇到的坑
在按照官网配置完开发环境后:第一次react-nativerun-android:Error:Cannotcreatedirectory\app\build\intermediates\incremental\packageDebug\zip-cache原因是:sudo的权限不够解决办法:https://zhidao.baidu.com/question/1240820068009584939.h
SS1111134
·
2020-08-15 16:18
react-native
react-native
使用Swiper在安卓上不显示
在使用swiper的时候,发现在安卓机下,如果用到了可滚动组件(如:FlatList,SectionList,ListView,ScrollView等),swiper无法正常显示。解决方案:constructor(props){super(props);this.state={listData:testData,onRefresh:false,swiperShow:false,};}compone
cielu
·
2020-08-15 15:43
react-native
win7搭建React Native开发环境
参考资料:官方英文:https://facebook.github.io/
react-native
/docs/getting-started.html官方中文:http://reactnative.cn
染火枫林
·
2020-08-15 14:02
React
Native
android
android
studio
react-native
遇到的坑汇总(补充中)
1.CouldnotcreateADBBridge.ADBlocation:**\platform-tools\adb.exeapp:installDebugFAILURE:Buildfailedwithanexception.Whatwentwrong:Executionfailedfortask‘:app:installDebug’.com.android.builder.testing.ap
Study_WangYL
·
2020-08-15 14:20
react-native
react-native
最新版本爬坑经历(unable to load script from assets 和could not connect to development server.)
新建项目react-nativeinitTestApp运行项目react-nativerun-android不好意思,错误马上就到了错误1:unabletoloadscriptfromassets‘index.androidbundle’,makesureyourbundleispackagedcorrectlyoryouu’reruningapackagerserver解决办法1,在androi
_摩西_
·
2020-08-15 14:58
iOS
ui
《
React-Native
系列》34、 ReactNative的那些坑
梳理了下ReactNative中的一些坑,你踩没踩过,它就在那里。1、fetchfetch没有提供超时时间,设置timeout貌似没有作用。标红的地方不能调用response.json()或.text()方法,哪怕是通过console.log()输出也不行,如果想查看数据,只能alert。2、Image标签使用本地资源图片的时候需要制定宽度和高度,使用网络资源没有限制。3、Text标签iOS下的p
coder_小刀
·
2020-08-15 14:21
ReactNative
ReactNative实战系列
React-Native
项目在Android真机上调试
React-Native
在真机上调试的时候遇到了一些坑
React-Native
项目在Android真机上调试?接下来直奔主题,通过USB将手机和电脑连接,打开手机上的USB调试。
augfun
·
2020-08-15 13:57
react
nactive
【REACT NATIVE 系列教程之九】REACT NATIVE版本升级步骤与注意事项!
本站文章均为李华明Himi原创,转载务必在明显处注明:转载自【黑米GameDev街区】原文链接:http://www.himigame.com/
react-native
/2288.htmlwidth="
李华明Himi
·
2020-08-15 09:35
【React
Native
跨平台应用开发】
react-native
init的时候出现问题:npm WARN
[email protected]
requires a peer of react@~15.3.1 but none was
react-nativeinit的时候出现问题:报错信息
[email protected]
@~15.3.1butnonewasinstalled.解决方案:方法一:npminstall-savereact@~15.3.1方法二:在package.json中可以添加依赖"dependencies":{"react":"^15.3.2","re
那些年的代码
·
2020-08-15 09:00
JAVA
react-native
init 项目后出现 unexpected token
在执行react-nativeinitprojectName初始化项目后,通过react-nativerun-android初始启动项目时,出现了"unexpectedtoken<......"的错误我的解决方法:npminstallbabel-loaderbabel-corebabel-preset-es2015babel-preset-react--save-dev然后再通过react-nat
ipuppy
·
2020-08-15 08:57
react-native
安装cocoapods以及正确在
react-native
项目中应用
前言:公司配的mac,由于版本等原因导致podinstall失败,在网上搜索了很多解决方案,也试了很多方法。然而并没有什么卵用,最后只能卸掉cocoapods重新安装属于自己的包管理工具。一,卸载cocoapods1,首先,检查自己是否有没有安装过pod:~whichpod/usr/local/bin/pod2,移除pod,输入密码:➜~sudorm-rf/usr/local/bin/podPas
胖了会变白的莹子
·
2020-08-15 07:49
ios开发遇到的坑
react-native
发送广播和接受事件通知DeviceEventEmitter
在
React-Native
中同样可以用发送和接受通知的方法,实现上面的功能。
胖了会变白的莹子
·
2020-08-15 07:49
ReactNative
React-Native
实践 阶段 总结
一基本语法:1,const{params}=this.props.navigation.state.params,我解释下哈这样是相当于等价先判断this.props.navigation.state中是否有params这个属性,如果没有程序运行时会由警告.2,更多:https://blog.csdn.net/qq_37336604/article/details/80419824二App开发小记
胖了会变白的莹子
·
2020-08-15 07:49
ReactNative
React Native踩坑记录
15.3.1butnonewasinstalled.解决方案:方法一:npminstall-savereact@~15.3.1方法二:在package.json中可以添加依赖"dependencies":{"react":"^15.3.2","
react-native
linshijun33
·
2020-08-15 06:18
React
Native
(Android)
react-native
更改状态栏文字和图标颜色
react-native
中给的StatusBar组件中并不能更改Android的文字颜色,下面是通过Android原生进行更改的,但是并不适用于所有的Android手机。1、初始化一个项目做测试。
看淡江湖
·
2020-08-15 06:19
React
Native
npm WARN
[email protected]
requires a peer of eslint@^3.17.0 || ^4.0.0 but none
react-native
项目npminstall报warning,解决方法:
[email protected]
@^3.17.0
胖了会变白的莹子
·
2020-08-15 05:30
一文解决RN0.58部分安卓手机text显示不全问题
在GitHub上
react-native
项目中搜索相关问题,下面
似水流年
·
2020-08-15 03:37
android
react-native
ios
android-studio
React Native 的未来与React Hooks
近期和一些朋友聊到了
React-Native
的官方重构状态,而刚好近期发布的0.59.x系列版本中,上层设计出现了比较大的调整,结合体验之后的状态,就想聊聊
React-Native
的现状、新版本的升级体验
weixin_34297704
·
2020-08-15 00:12
关于
react-native
上传图片(单张上传)
关于
react-native
上传图片(单张上传)若需要选择,裁剪,压缩等功能可以使用react-native-image-crop-pickergithub地址安装npminstallreact-native-image-picker
我是快乐的搬运工
·
2020-08-15 00:08
react-native
javascript
图片上传
React Native九宫格制作 练习flex 上下 左右居中
importReact,{Component}from'react';import{View,Text,StyleSheet}from'
react-native
';exportdefaultclassDetailextendsComponent
LQW_home
·
2020-08-14 23:27
RN
React Native 之 View 组件的变形
/***SampleReactNativeApp*https://github.com/facebook/
react-native
*@flow*/importReact,{Comp
jlhaoran
·
2020-08-14 23:23
React
Native
React-Native
中导航组件react-navigation的使用
写在开头的话最近使用
React-Native
开发新应用,一开始使用的导航器是navigator,后来发现navigator有很多不足之处,而且官方也建议使用react-navigation来进行开发,所以现在转为使用
YanceChen2013
·
2020-08-14 13:05
React
Native
上一页
43
44
45
46
47
48
49
50
下一页
按字母分类:
A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
P
Q
R
S
T
U
V
W
X
Y
Z
其他