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