10 2016 档案

React Native Alert、ActionSheet
摘要:/** * Created by apple on 2016/10/12. *//** Sample React Native App * https://github.com/facebook/react-native * @flow */"use strict"import React, {Component} from 'react'import { AppRegistry... 阅读全文

posted @ 2016-10-13 10:22 马大哈哈 阅读(1360) 评论(0) 推荐(0)

React Native Picker (城市选择器)
摘要:****************************** 知识点 ****************************** 1.读取本地json、json解析 ****************************** 效果图 ****************************** 阅读全文

posted @ 2016-10-12 17:00 马大哈哈 阅读(9127) 评论(3) 推荐(1)

React Native Picker (多列数据)
摘要:/** Sample React Native App * https://github.com/facebook/react-native * @flow */"use strict"import React, {Component} from 'react'import { AppRegistry, View, Text, Picker, StyleS... 阅读全文

posted @ 2016-10-12 11:38 马大哈哈 阅读(819) 评论(0) 推荐(0)

React Native Picker (逐个添加数据、array循环添加数据)
摘要:/** Sample React Native App * https://github.com/facebook/react-native * @flow */"use strict"import React, {Component} from 'react'import { AppRegistry, View, Text, Picker, StyleS... 阅读全文

posted @ 2016-10-11 11:23 马大哈哈 阅读(1133) 评论(0) 推荐(0)

React Native DatePickerIOS (防止滑动后恢复到当前时间)
摘要:"use strict"import React, {Component} from 'react'import { AppRegistry, View, Text, DatePickerIOS, StyleSheet} from 'react-native' let minDate = new D 阅读全文

posted @ 2016-10-10 17:30 马大哈哈 阅读(487) 评论(0) 推荐(0)

React Native ActivityIndicator(菊花组件)
摘要:"use strict"import React, { Component } from 'react';import { AppRegistry, StyleSheet, View, Text, ActivityIndicator, TouchableOpacity} from 'react-native';class HelloWorld extends C... 阅读全文

posted @ 2016-10-09 17:35 马大哈哈 阅读(715) 评论(0) 推荐(0)

React Native 自定义ListView 分区表
摘要:"use strict"import React, { Component } from 'react';import { AppRegistry, // 注册组件,是应用的JS运行入口 StyleSheet, // 样式表, 类似于一个集合包含各个组件的属性 ListView, Dimensions, Text, TouchableOpacity, I... 阅读全文

posted @ 2016-10-08 14:59 马大哈哈 阅读(398) 评论(0) 推荐(0)

React Native 自定义ListView
摘要:2016-10-08 13:32:48.191 [info][tid:com.facebook.react.JavaScript] '1', 's1', '0' 2016-10-08 13:32:48.212 [info][tid:com.facebook.react.JavaScript] '2' 阅读全文

posted @ 2016-10-06 17:01 马大哈哈 阅读(864) 评论(0) 推荐(0)

React Native ListView数据展示
摘要:ListView: 1.一个展示垂直列表,类似于OC中TableView (后续研究 水平列表; 2.并不是立刻渲染所有元素(cell),而是优先渲染屏幕上可见的cell,类似tableview 中 cell的重用; 3.必须的两个属性:dataSource和renderRow,前者是列表数据源,后 阅读全文

posted @ 2016-10-06 11:47 马大哈哈 阅读(1773) 评论(0) 推荐(0)

React Native ScrollView 添加图片数组
摘要:"use strict"import React, { Component } from 'react';import { AppRegistry, // 注册组件,是应用的JS运行入口 StyleSheet, // 样式表, 类似于一个集合包含各个组件的属性 ScrollView, Dimensi 阅读全文

posted @ 2016-10-05 17:12 马大哈哈 阅读(1314) 评论(0) 推荐(0)

模仿UC新闻标签编辑功能
摘要:备注:博文只贴出关键代码,其中涉及到自定义控件、数据model可以忽略。博友使用过程中可以直接用button等替换掉报错的代码即可。 ************************************ h 文件 ************************************ #imp 阅读全文

posted @ 2016-10-05 13:04 马大哈哈 阅读(319) 评论(0) 推荐(0)

React Native ScrollView缩放
摘要:"use strict"import React, { Component } from 'react';import { AppRegistry, // 注册组件,是应用的JS运行入口 StyleSheet, // 样式表, 类似于一个集合包含各个组件的属性 ScrollView, Dimensions, // 规格 TouchableWithoutFeedba... 阅读全文

posted @ 2016-10-05 11:41 马大哈哈 阅读(3426) 评论(0) 推荐(0)

React Native 之 TextInput(多个语法知识)
摘要:RN中TextInput(输入框)使用总结,RN中文网上写的例子涉及到诸多小的知识点,在此做一一解析。 阅读全文

posted @ 2016-10-01 18:03 马大哈哈 阅读(8939) 评论(0) 推荐(0)

导航