摘要:
TextInput /** TextInput 是一个允许用户在应用中通过键盘输入文本的基本组件* 本组件的属性提供了多种特性的配置,如自动完成,自动大小写,占位文字,键盘类型等* 常用:* placeholder 占位符* value 输入框的值* password 是否密文输入* editabl 阅读全文
摘要:
Touchable /* * React Native中提供3个组件用于给其他没有触摸事件的组件,绑定触摸事件 * TouchableOpacity 透明触摸,点击时,组件会出现透明过渡的效果 * TouchableHighlight 高亮触摸,点击时,组件会出现高亮效果 * TouchableWi 阅读全文
摘要:
Text 组件/** 常用属性:* onPress 手指触摸时间* numberOfLines 显示多少行** 可以设置字体颜色,大小,对齐方式等*** *//** 在单独的一个文件中定义子组件,使用Module.exports 将组建导出为独立的模块,可以在其他文件中引用** 新建.js文件* 引 阅读全文
摘要:
export default class App extends Component<> { render() { return ( <View style={[styles.container,styles.flex]}> <View style={styles.item}> <View styl 阅读全文
摘要:
flex布局export default class App extends Component<> { render() { return ( <View sytle={styles.container}> <View style={styles.child1}> </View> <View st 阅读全文
摘要:
StyleSheet.create()方法 //定义组件 var App = React.createClass({ render:function () { return( <View style={styles.container}> /*拼接样式,使用数组的方式,使用多个样式 */ <View 阅读全文
该文被密码保护。 阅读全文