我需要給動態內嵌樣式與靜態默認樣式風格。我該如何做到這一點動態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