0
点赞
收藏
分享

微信扫一扫

react-创建组件

慕犹清 2022-05-17 阅读 229

//定义组件

class InputControlES6 extends React.Component{

render (){

return (<View style="{sty.container}"></View>);

}

};

//定义样式

var sty=StyleSheet.create({

container:{

backgroundColor:"yellow",

width:300,

height:200,

}

});

export default InputControlES6; //




举报

相关推荐

0 条评论