首页
统计
墙纸
留言
Search
1
PVE8优化
19 阅读
2
mysql创建数据库
12 阅读
3
jenkins根据分支、文件夹打包
12 阅读
4
vue-cli注册全局方法
7 阅读
5
开心的加班
7 阅读
web前端
Vue
CSS
javascript
React
那些年爬过过的坑
ES6
TypeScrippt
ES7
javascript图灵 - 总结
Node
面试总结
React-Native
Web优化
基础
AngularJS
拍摄
Flutter
Dart
Docker
Linux
mysql
PVE
登录
/
注册
Search
标签搜索
vue+elementui
Cicaba
累计撰写
146
篇文章
累计收到
13
条评论
首页
栏目
web前端
Vue
CSS
javascript
React
那些年爬过过的坑
ES6
TypeScrippt
ES7
javascript图灵 - 总结
Node
面试总结
React-Native
Web优化
基础
AngularJS
拍摄
Flutter
Dart
Docker
Linux
mysql
PVE
页面
统计
墙纸
留言
搜索到
2
篇与
的结果
2018-11-12
Reaact-Native环境搭建
环境依赖Node, Python2, JDK1.8npm install -g react-native-clireact-native init '项目名称'react-native run-androidAndroid Studio安装SDK环境可选自定义安装, 建议不使用Android Studio的模拟器(性能底下).JDK环境配置 (1)新建->变量名"JAVA_HOME",变量值"C:\Java\jdk1.8.0_05"(即JDK的安装路径) (2)编辑->变量名"Path",在原变量值的最后面加上“;%JAVA_HOME%\bin;%JAVA_HOME%\jre\bin” (3)新建->变量名“CLASSPATH”,变量值“. %JAVA_HOME%\lib;%JAVA_HOME%\lib\dt.jar;%JAVA_HOME%\lib\tools.jar SDK环境配置 在环境变量Path添加adb,android路径
2018年11月12日
2 阅读
0 评论
0 点赞
2018-11-08
React-Native Text
Text嵌套文本主件可以继承fontFamily样式.在IOS端文本主件可以嵌套容器.Propsselectable 决定用户是否可以长按选择文本,以便复制和粘贴。falsenumberOfLines 用来当文本过长的时候裁剪文本。包括折叠产生的换行在内,总的行数不会超过这个属性的限制。此属性一般和ellipsizeMode搭配使用。 NumberonLayout 在加载时或者布局变化以后调用,参数为如下的内容:FunctiononLongPress 当文本被长按以后调用此回调函数。FunctiononPress 当文本被点击以后调用此回调函数。FunctionallowFontScaling 控制字体是否要根据系统的“字体大小”辅助选项来进行缩放。默认值为trueselectionColor 文本选中的颜色styletextShadowOffset: object: {width: number,height: number}color: colorfontSize: numberfontStyle: enum('normal', 'italic')fontWeight: enum('normal', 'bold', '100', '200', '300', '400', '500', '600', '700', '800', '900')指定字体的粗细。大多数字体都支持'normal'和'bold'值。并非所有字体都支持所有的数字值。如果某个值不支持,则会自动选择最接近的值。lineHeight: numbertextAlign: enum('auto', 'left', 'right', 'center', 'justify')指定文本的对齐方式。其中'justify'值仅iOS支持,在Android上会变为left。textDecorationLine: enum('none', 'underline', 'line-through', 'underline line-through')textShadowColor: colorfontFamily: stringtextShadowRadius: numberincludeFontPadding: bool (Android)Android在默认情况下会为文字额外保留一些padding,以便留出空间摆放上标或是下标的文字。对于某些字体来说,这些额外的padding可能会导致文字难以垂直居中。如果你把textAlignVertical设置为center之后,文字看起来依然不在正中间,那么可以尝试将本属性设置为false。默认值为true。textAlignVertical: enum('auto', 'top', 'bottom', 'center') (Android)fontVariant: array of enum('small-caps', 'oldstyle-nums', 'lining-nums', 'tabular-nums', 'proportional-nums') (iOS)letterSpacing: numberIncrease or decrease the spacing between characters. The default is 0, for no extra letter spacing.iOS: The additional space will be rendered after each glyph.Android: Only supported since Android 5.0 - older versions will ignore this attribute. Please note that additional space will be added around the glyphs (half on each side), which differs from the iOS rendering. It is possible to emulate the iOS rendering by using layout attributes, e.g. negative margins, as appropriate for your situation.textDecorationColor: color (iOS)textDecorationStyle: enum('solid', 'double', 'dotted', 'dashed') (iOS)textTransform: enum('none', 'uppercase', 'lowercase', 'capitalize')writingDirection: enum('auto', 'ltr', 'rtl') (iOS)
2018年11月08日
0 阅读
0 评论
0 点赞