MultiSelect React本机应用程序不适用于搜索

时间:2020-05-31 13:56:29

标签: ios react-native react-native-ios

我是React Native的新手。我的MultiSelect搜索仅在输入*时不起作用,其他文本则起作用。应用在*输入上崩溃。

我们将不胜感激。

这是我的代码-

<MultiSelect
                                hideTags={true}
                                ref={(component) => { this.multiSelect = component }}
                                items={this.state.organizations}
                                uniqueKey="id"
                                onSelectedItemsChange={this.onSelectedItemsChange}
                                selectedItems={this.state.selectedItems}
                                selectText="   Select organizations"   
                                searchInputPlaceholderText="Search organization..."
                                onChangeInput={ (text)=> console.log(text)}
                                itemFontFamily="OpenSans-SemiBold"
                                selectedItemTextColor={COLORS.proposal}
                                selectedItemIconColor={COLORS.proposal}
                                displayKey="name"
                                fixedHeight={true}
                                styleInputGroup={{height:40}}
                                submitButtonColor={COLORS.new}
                                submitButtonText="Ok"
                                styleItemsContainer={{borderTopWidth:0.3}}
                                styleMainWrapper={{margin:5}}
                            />

0 个答案:

没有答案