/** * Created by zack on 2018/4/29. */ import { View, Text, StyleSheet, FlatList } from 'react-native' import React, {Component} from 'react' import {NavigationBarHeight, TabBarHeight, ScreenDimensions} from '../../../utils/DimensionsTools' import FindSearchResultItem from './View/FindSearchResultItem' import BaseNavigationBarStyle from '../../base/BaseNavigationBarStyle' export default class FindViewController extends Component { constructor(props) { super(props) this.state = { } this.props.navigator.setStyle({ navBarCustomView: 'FindSearchTitleView', }) } renderItem() { return( { this.props.navigator.push({ screen: 'AnswerDetailViewController', title: '问答', backButtonTitle: '', passProps: { }, navigatorStyle: BaseNavigationBarStyle }) }} /> ) } render() { return( this.renderItem(item)} keyExtractor = {(item,index) =>{ return 'key' + item.key + index }} ListFooterComponent = {() => { return( ) }} /> ) } } const styles = StyleSheet.create({ View: { width: ScreenDimensions.width, height: ScreenDimensions.height - NavigationBarHeight.height, backgroundColor: 'white' }, ListView: { marginTop: NavigationBarHeight.height, width: ScreenDimensions.width, height: ScreenDimensions.height - NavigationBarHeight.height, backgroundColor: 'white' } })