スタイル内に...
の構文は何ですか?たとえば...StyleSheet.absoluteFillObject
について:...スタイル内の構文
const styles = StyleSheet.create({
container: {
marginLeft: 10,
marginBottom: 10,
height: (height - 20 - 20)/rows - 10,
width: (width - 10)/cols - 10,
},
imageContainer: {
flex: 1, // take up all available space
},
image: {
borderRadius: 10, // rounded corners
...StyleSheet.absoluteFillObject, // fill up all space in a container
},
title: {
...defaultStyles.text,
fontSize: 14,
marginTop: 4,
},
genre: {
...defaultStyles.text,
color: '#BBBBBB',
fontSize: 12,
lineHeight: 14,
},
});
私はしかし、私はtは、たとえばそれを使用するためのロジックを見る「を着用スタイルを、オブジェクトまたは配列のための原理を理解して:... defaultStyles.text } 、 – dtjmsy