react-创建组件

慕犹清

关注

阅读 229

2022-05-17

//定义组件

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)

0 0 举报