博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
[RN]component 模板
阅读量:4229 次
发布时间:2019-05-26

本文共 675 字,大约阅读时间需要 2 分钟。

import React, {
Component } from "react"import {
View, Text } from "react-native"import PropTypes from "prop-types"class ${
NAME} extends Component {
constructor(props) {
super(props) this.state = {
} } static propTypes = {
//define the prop types // tempStr: PropTypes.string, // tempMethod: PropTypes.object // onClickRightIcon: PropTypes.func.isRequired } static defaultProps = {
//default values for props } render() {
const {
...props } = this.props return (
hello word
) }}const styles = StyleSheet.create({
xxx: {
}})export default ${
NAME}

转载地址:http://gccqi.baihongyu.com/

你可能感兴趣的文章
VC中常用数据类型转换
查看>>
VC中常用类型转换2
查看>>
windows变量前缀总结(转载)
查看>>
UNICODE编程
查看>>
LPTSTR、LPCSTR、LPCTSTR、LPSTR的意义
查看>>
Visual C++中的ODBC编程
查看>>
AD590的引脚使用
查看>>
VC++工程文件下的各个文件说明
查看>>
VC中常用调试技巧
查看>>
WINCE的内存配置
查看>>
如何通过命令行方式修改XWindows的分辨率和刷新频率
查看>>
qtopia 4.2.3 移植 交叉编译记录&总结
查看>>
如何指定GCC的默认头文件路径
查看>>
QT网站收集
查看>>
基于嵌入式的温室测试系统
查看>>
光照强度测量
查看>>
qtopia-opensource-4.2.2在arm上的移植
查看>>
linux开发环境的快速搭建
查看>>
Tslib的编译和触摸屏测试
查看>>
基于Qt/Embedded的物流信息终端导航定位功能设计
查看>>