정적 기본 스타일 시트 스타일로 동적 인라인 스타일을 지정해야합니다. 어떻게해야합니까?기본 스타일 시트가있는 동적 인 스타일 기본 기본 스타일
<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을 사용하면 모든 파일을 하나의 파일에 결합합니다. – abhirathore2006