[RN]一个模版

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/tomlucky1024/article/details/82773024

[RN]一个模版

/**
 * Created by ${USER} on ${DATE} 
 */
 
import React, {Component} from 'react';
import {
    StyleSheet,
    Text,
    View,
    Image,
} from 'react-native';

export default class ${NAME} extends Component {
    static navigationOptions = ({navigation, screenProps}) => ({
        headerTitle: '${NAME}',
    });

    constructor(props) {
        super(props);
        this.state = {};
    }

    render() {
        return (
            <View style={styles.container}>
            </View> );
    }
}
const styles = StyleSheet.create({
    container: {
        flex: 1,
    },
});

猜你喜欢

转载自blog.csdn.net/tomlucky1024/article/details/82773024
今日推荐