我需要给动态内嵌样式与静态默认样式风格。我该如何做到这一点动态inilne风格阵营本地
<View
style={[styles.card,{{width:width, height: height}}]}>
<View style={styles.card}>
<Text>
<Image
source={{uri: this.props.media.image_url}}
style={{width:width, height: this.props.media.height}}/>
</Text>
</View>
</View>
上面的代码不适合我。
,如果你会去服务器渲染,你可能不得不改变未来的事情,因为风格加载器未通过服务器渲染 – abhirathore2006
什么可以为服务器渲染解决方案支持? –
使用https://github.com/webpack/extract-text-webpack-plugin这将结合在一个文件中的所有CSS。 – abhirathore2006