#わからないこと
シュミレーターに下記に記入したコードを反映させたいのですが
反応がありません。
import React from 'react'; import { StyleSheet, Text, View } from 'react-native'; const styles = StyleSheet.create({ container: { flex: 1, backgroundColor: '#fff', alignItems: 'center', justifyContent: 'center', }, memoList: { backgroundColor: '#eee', width: '100%', }, memoListItem: { padding: 16, borderBottomWidth: 1, borderBottomColor: '#ddd', }, memoTitle: { fontSize: 18, marginBottom: 4, }, header: { position: 'absolute', top: 0, right: 0, left: 0, height: 78, paddingTop: 30, backgroundColor: '#23202080', justifyContent: 'center', alignItems: 'center', }, headerTitle: { color: '#f3d703d6', fontSize: 18, }, memoDate: { fontSize: 12, color: '#1515154a', }, }); export default class App extends React.Component { render() { return ( <View style={styles.container}> <View style={styles.header}> <View> <Text>MEMOT</Text> </View> </View> <View stlye={styles.memoList}> <View style={styles.memoListItem}> <Text style={styles.memoTitle}>反省文</Text> <Text style={styles.memoDate}>2018/7/28</Text> </View> <View style={styles.memoListItem}> <Text style={styles.memoTitle}>反省文</Text> <Text style={styles.memoDate}>2018/7/28</Text> </View> </View> <View> <Text>+</Text> </View> </View> ); } }
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。