[英]How to format code of react native in atom
我正在研究react-native
app。 我正在使用atom
文本編輯器來開發react-native
應用程序。
我沒有找到任何在atom中格式化react-native
代碼的快捷方式。 我試過美化包https://atom.io/packages/atom-beautify,但它無法正常工作。
import React, {
Component
} from 'react';
import {
AppRegistry,
Image,
View,
Text,
Button,
StyleSheet
} from 'react-native';
class SplashScreen extends Component {
render() {
return ( <
View style = {
styles.container
} >
<
Image source = {
require('./img/talk_people.png')
}
style = {
{
width: 300,
height: 300
}
}
/> <
Text style = {
{
fontSize: 22,
textAlign: 'center',
marginTop: 30
}
} > Never forget to stay in touch with the people that matter to you. < /Text> <
View style = {
{
marginTop: 30
}
} > < Button title = "CONTINUE"
color = "#FE434C" / > < /View> <
/View>
);
}
}
const styles = StyleSheet.create({
container: {
backgroundColor: '#FFFFFF',
margin: 50,
alignItems: 'center',
flex: 1,
flexDirection: 'column'
}
})
AppRegistry.registerComponent('Scheduled', () => SplashScreen);
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.