react-native-select-multiple icon indicating copy to clipboard operation
react-native-select-multiple copied to clipboard

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

Open hunterriffic opened this issue 6 years ago • 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?

hunterriffic avatar Aug 05 '19 19:08 hunterriffic

Please open PR with a fix 🙏

alanshaw avatar Oct 15 '19 11:10 alanshaw

<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

ace3 avatar Nov 04 '19 06:11 ace3