React-Native nwitter [ #2 ]
3798 ワード
React Nativeを使用してnwitterを作成する
App.整理js
まずは複雑に書かれたアプリjsファイルを整理します!/**
* Sample React Native App
* https://github.com/facebook/react-native
*
* @format
* @flow strict-local
*/
import React from 'react';
import { StyleSheet, View, Text, StatusBar } from 'react-native';
const App = () => {
return (
<>
<View style={styles.continer}>
<Text style={styles.text}>Hello</Text>
</View>
</>
);
};
const styles = StyleSheet.create({
continer: {
flex:1,
backgroundColor: '#fff',
},
text : {
color: 'blue',
},
});
export default App;
結果の表示
Reference
この問題について(React-Native nwitter [ #2 ]), 我々は、より多くの情報をここで見つけました
https://velog.io/@zopall0000/React-Native-nwitter-2
テキストは自由に共有またはコピーできます。ただし、このドキュメントのURLは参考URLとして残しておいてください。
Collection and Share based on the CC Protocol
/**
* Sample React Native App
* https://github.com/facebook/react-native
*
* @format
* @flow strict-local
*/
import React from 'react';
import { StyleSheet, View, Text, StatusBar } from 'react-native';
const App = () => {
return (
<>
<View style={styles.continer}>
<Text style={styles.text}>Hello</Text>
</View>
</>
);
};
const styles = StyleSheet.create({
continer: {
flex:1,
backgroundColor: '#fff',
},
text : {
color: 'blue',
},
});
export default App;
Reference
この問題について(React-Native nwitter [ #2 ]), 我々は、より多くの情報をここで見つけました https://velog.io/@zopall0000/React-Native-nwitter-2テキストは自由に共有またはコピーできます。ただし、このドキュメントのURLは参考URLとして残しておいてください。
Collection and Share based on the CC Protocol