摘要: initialRoute={{ component: Home, // 要跳转的页面 title:'首页', // 跳转页面导航栏标题 leftButtonTitle:'左边', // 实例化左边按钮 onLeftButtonPress:() => {alert('左边')}, // 左边按钮点击事 阅读全文
posted @ 2017-12-05 23:35 Da雪山 阅读(467) 评论(0) 推荐(0) 编辑
摘要: import React, { Component } from 'react';import { Platform, StyleSheet, Text, View, ListView} from 'react-native';//从文件中读取数据(ES5)var movieData = requi 阅读全文
posted @ 2017-12-05 23:15 Da雪山 阅读(374) 评论(0) 推荐(0) 编辑
摘要: import React, { Component } from 'react';import { Platform, StyleSheet, Text, View, ListView} from 'react-native';/** ListView 数据列表** ListView最重要的是设置每 阅读全文
posted @ 2017-12-05 22:39 Da雪山 阅读(262) 评论(0) 推荐(0) 编辑
摘要: ScrollView 的使用import React, { Component } from 'react';import { Platform, StyleSheet, Text, View, ScrollView, RefeshControl, Image} from 'react-native 阅读全文
posted @ 2017-12-05 22:14 Da雪山 阅读(230) 评论(0) 推荐(0) 编辑
摘要: import React, { Component } from 'react';import { Platform, StyleSheet, Text, View, ScrollView, RefeshControl} from 'react-native';/** ScrollView的简单实现 阅读全文
posted @ 2017-12-05 21:43 Da雪山 阅读(250) 评论(0) 推荐(0) 编辑
摘要: /* Image* 用于显示图片的组件,包括网络图片,静态资源 * 常用性能: * resizeMode 图片适应模式 cover , contain , stretch * source 图片的引用地址 * * iOS支持的属性: onLoad , onLoadEnd ,onLoadStart, 阅读全文
posted @ 2017-12-05 21:20 Da雪山 阅读(343) 评论(0) 推荐(0) 编辑