tableflip/react-native-select-multiple

Selections not scrolling on Android (Pixel 2 XL, 3, 3 XL)

hunterriffic opened this issue · 2 comments

The list will render with all possible selections but does not allow the user to scroll through the options when viewed on an Android device (tested with Pixel 2 XL, Pixel 3, Pixel 3 XL). Scrolling works on iOS without issues. Here's a glance at our code:

<View
    style={{
        height: 150,
        borderWidth: 1,
        borderColor: "#e1e8ee",
        margin: 5
     }}>
    <SelectMultiple
       keyExtractor={(item, index) => index.toString()}
       items={this.state.audData[0]}
       selectedItems={this.state.selectedAud}
       onSelectionsChange={this.handleChange}
    />
</View>

Any advice?

Please open PR with a fix 🙏

ace3 commented
<ScrollView nestedScrollEnabled = {true} >
<SelectMultiple
       keyExtractor={(item, index) => index.toString()}
       items={this.state.audData[0]}
       selectedItems={this.state.selectedAud}
       onSelectionsChange={this.handleChange}
    />
</ScrollView >

if you have multiple ScrollView, you can add nestedScrollEnabled to every ScrollView