{ | |
type: 'container', | |
style: { | |
flexDirection: 'row' | |
}, | |
children: [{ | |
type: 'image', | |
attr: { | |
src: 'http://gw.alicdn.com/tfscom/TB1OMfAJFXXXXbfXXXXqVMCNVXX-400-400.jpg' | |
}, | |
style: { | |
width: 200, | |
height: 200 | |
} | |
}, { | |
type: 'text', | |
attr: { | |
value: '一个超赞的宝贝标题' | |
}, | |
style: { | |
flex: 1, | |
color: '#ff0000', | |
fontSize: 48, | |
fontWeight: 'bold', | |
backgroundColor: '#eeeeee' | |
} | |
}] | |
} |