Skip to content

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

Open

Description

@hunterriffic

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?

Activity

  1. alanshaw commented on Oct 15, 2019

    @alanshaw
    Member

    Please open PR with a fix 🙏

  2. ace3 commented on Nov 4, 2019

    @ace3
    <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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions