Home.js 1.36 KB
'use strict';

import React from 'react';
import ReactNative from 'react-native';

const {
    View,
    Text,
    ScrollView,
    Platform,
} = ReactNative;

export default class Home extends React.Component {

    static propTypes = {
        section1: React.PropTypes.arrayOf(
            React.PropTypes.shape({
                top: React.PropTypes.string,
                bottom: React.PropTypes.string,
                small: React.PropTypes.string,
                style: View.propTypes.style,
            })
        ),
        section2: React.PropTypes.arrayOf(
            React.PropTypes.shape({
                top: React.PropTypes.string,
                bottom: React.PropTypes.string,
                small: React.PropTypes.string,
                style: View.propTypes.style,
                arrowUp: React.PropTypes.bool,
            })
        ),
        section3: React.PropTypes.arrayOf(
            React.PropTypes.shape({
                type: React.PropTypes.string,
                thumb: React.PropTypes.number,
                title: React.PropTypes.string,
            })
        ),
        onPressCategory: React.PropTypes.func,
    };

	render() {

        return (
            <View style={{flexDirection: 'row', justifyContent: 'center'}}>

                <Text onPress={this.props.testPress}>这是社区首页</Text>

            </View>
        );

    }
}