如何设置 react-native-sectioned-multi-select 样式?

Sen*_*ida 1 select native reactjs

我在 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/

小智 5

 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',
            },
          }}
Run Code Online (Sandbox Code Playgroud)

[ 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
Run Code Online (Sandbox Code Playgroud)