如何设置本机分段多选样式?

时间:2019-05-09 11:09:53

标签: reactjs select native

我在react native中使用react-native-sectioned-multi-select。但是,我对此无能为力。谁能帮助我为此定制和样式化?

https://www.npmjs.com/package/react-native-sectioned-multi-select?activeTab=readme

https://reactnativeexample.com/simple-multi-select-component-for-react-native/

1 个答案:

答案 0 :(得分:0)

 styles={{
            // chipText: {
            //   maxWidth: Dimensions.get('screen').width - 90,
            // },
            // itemText: {
            //   color: this.state.selectedItems.length ? 'black' : 'lightgrey'
            // },
            selectedItemText: {
              color: 'blue',
            },
            // subItemText: {
            //   color: this.state.selectedItems.length ? 'black' : 'lightgrey'
            // },
            selectedSubItemText: {
              color: 'blue',
            },
          }}
  

[https://github.com/renrizzolo/react-native-sectioned-multi-select/blob/9c5f71852aef7a7ac03e7761d5dd810cd2ccef5d/exampleapp/App.js#L322-L397][1]

container
modalWrapper 
backdrop 
listContainer
selectToggle
selectToggleText
item
selectedItem
subItem
itemText selectedItemText
selectedSubItemText selectedSubItem subItemText
searchBar
center
separator
subSeparator
chipsWrapper
chipContainer parentChipContainer parentChipText chipText
chipIcon
searchTextInput
scrollView
button
confirmText
cancelButton
itemIconStyle