使用這個
如何在標簽上添加 paddingTop?
uj5u.com熱心網友回復:
實作自己的組件,并通過屬性<CustomLabel>將其交給組件:<StepIndicator>renderLabel
<StepIndicator
customStyles={customStyles}
currentPosition={this.state.currentPosition}
labels={labels}
renderLabel={<CustomLabel ... style={{paddingTop: x}}>} //x is your padding above the lable
/>
該<CustomLabel>組件可能只是一個<Text>使用組件提供的道具的<StepIndicator>組件。
轉載請註明出處,本文鏈接:https://www.uj5u.com/houduan/431320.html
標籤:反应式
