import React from 'react';
import {
Text,
View,
} from 'react-native';
const App=()=>{
return (
<>
<View >
<Text>陈东谱</Text>
</View>
<View style={{marginTop:10,padding:10,width:200,backgroundColor:'red'}}>
<Text>陈东谱</Text>
</View>
<View style={{marginTop:10,padding:10,width:200,backgroundColor:'green'}}>
<Text style={{color:'white'}}>陈东谱</Text>
</View>
</>
)
};
export default App;
react native 设置样式
最新推荐文章于 2021-11-08 18:38:45 发布