Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not being able to drag inside the scrollView #55

Open
Ruzen1 opened this issue Jul 14, 2021 · 4 comments
Open

Not being able to drag inside the scrollView #55

Ruzen1 opened this issue Jul 14, 2021 · 4 comments

Comments

@Ruzen1
Copy link

Ruzen1 commented Jul 14, 2021

Hey @SHISME

Hey , How are you doing?

I am here to ask for a big help.

I am having a problem while dragging. The library works perfectly fine but when the items start increasing , the dragging stops working. I think its due to scroll view. When I pass [ contentContainerStyle={{flex: 1}} ] to the Scroll View, the dragging works fine, but the scrolling doesnt work anymore. When I remove it, the scrolling works but the dragging doesnt.

It would be really ver great help of you if you could give me some guidance, please.

Thank you

<ScrollView
           style={{
          minHeight: Dimensions.get("window").height * 0.85,
            backgroundColor: taknalColors.activeColor
}}>
                    <View
                      style={{
                        minHeight: Dimensions.get("window").height * 0.85,
                        backgroundColor: taknalColors.activeColor
                      }}>
                      <DraggableGrid
                        itemHeight={Dimensions.get("window").height * 0.24}
                        numColumns={3}
                        renderItem={this.render_item}
                       
                       // Rest of the important codes
                      />
                    </View>
 </ScrollView>
@SHISME
Copy link
Owner

SHISME commented Jul 15, 2021

Maybe you should set the children's view height difference with ScrollView

@Ruzen1
Copy link
Author

Ruzen1 commented Jul 16, 2021

@SHISME Thank you for the reply. Can you please give me an example?

@SHISME
Copy link
Owner

SHISME commented Jul 18, 2021

@SHISME Thank you for the reply. Can you please give me an example?

may like this

<ScrollView
           style={{
          minHeight: Dimensions.get("window").height * 0.85,
            backgroundColor: taknalColors.activeColor
}}>
                    <View>
                      <DraggableGrid
                        itemHeight={Dimensions.get("window").height * 0.24}
                        numColumns={3}
                        renderItem={this.render_item}
                       
                       // Rest of the important codes
                      />
                    </View>
 </ScrollView>

@arunvignesh-foodhub
Copy link

The above code isn't working

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants