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

Scroll Not Working #44

Open
jasonmcaffee opened this issue Nov 19, 2022 · 15 comments
Open

Scroll Not Working #44

jasonmcaffee opened this issue Nov 19, 2022 · 15 comments

Comments

@jasonmcaffee
Copy link

When using the code provided in the readme, nothing happens when I attempt to scroll.

The list renders as expected, but nothing happens on press
image

const [selectedIndex, setSelectedIndex] = useState(0);
...
<WheelPicker
                selectedIndex={selectedIndex}
                options={['Berlin', 'London', 'Amsterdam']}
                onChange={(index) => setSelectedIndex(index)}
            />
"dependencies": {
    "@fortawesome/fontawesome-svg-core": "^6.2.0",
    "@fortawesome/free-brands-svg-icons": "^6.2.0",
    "@fortawesome/free-regular-svg-icons": "^6.2.0",
    "@fortawesome/free-solid-svg-icons": "^6.2.0",
    "@fortawesome/react-native-fontawesome": "^0.3.0",
    "@react-navigation/bottom-tabs": "^6.4.0",
    "@react-navigation/native": "^6.0.13",
    "@react-navigation/native-stack": "^6.9.1",
    "node-sass": "^7.0.3",
    "react": "18.1.0",
    "react-native": "0.70.4",
    "react-native-fs": "^2.20.0",
    "react-native-gesture-handler": "^2.8.0",
    "react-native-safe-area-context": "^4.4.1",
    "react-native-sass-transformer": "^2.0.0",
    "react-native-screens": "^3.18.2",
    "react-native-sound": "^0.11.2",
    "react-native-star-rating-widget": "^1.3.1",
    "react-native-svg": "^13.5.0",
    "react-native-track-player": "^3.2.0",
    "react-native-wheely": "^0.6.0"
  },
@erksch
Copy link
Owner

erksch commented Nov 20, 2022

Do you use the WheelPicker within a ScrollView or component that uses a ScrollView internally?

@emami7495
Copy link

Do you use the WheelPicker within a ScrollView or component that uses a ScrollView internally?

Hi, i have same issue
i want to use WheelPicker in ScrollView but not work,
how can i fix it?

@tsheaff
Copy link

tsheaff commented Jan 21, 2023

I'm having the same issue. @jasonmcaffee did you find a solution? @erksch are you saying it should NOT be inside a scroll view? For me it's not inside a scrollview but no touches work.

@jasonmcaffee
Copy link
Author

No, sorry, ended up just using a dropdown

@erksch
Copy link
Owner

erksch commented Jan 21, 2023

@tsheaff The picker does not work within a ScrollView. Can you share a reproducer for your specific problem?

@tuantvk
Copy link

tuantvk commented Feb 24, 2023

@jasonmcaffee @emami7495 @tsheaff it's work for on android

import React from 'react'
import { View, Text } from 'react-native'
import WheelPicker from 'react-native-wheely'; // v0.6.0

const App = () => {
  return (
    <View style={{ flex: 1 }}>
      <ScrollView>
        <WheelPicker
          flatListProps={{ nestedScrollEnabled: true }} // add line
        />
        <Text>Something here</Text>
      </ScrollView>
    </View>
  )
}

export default App

@minisk93
Copy link

No solution for this? Just showing list and scroll is freezed

@minisk93
Copy link

Actually by some reason scrolling didn't work within a react-native Modal component

@minisk93
Copy link

Actually by some reason scrolling didn't work within a react-native Modal component

Okay, I found the problem - its a Pressable component. When WheelPicker is inside of it, it's not responsive. Maybe some props may change it, but not sure about it

@minisk93
Copy link

minisk93 commented Aug 1, 2023

Inside react-native-bottomsheet scroll won't work as well

@bmitioglov
Copy link

scroll doesn't work inside modal :(

@omercandemir
Copy link

Inside react-native-bottomsheet scroll won't work as well

Same issue, is there any solution?

@Donghyun-git
Copy link

I have Same issue, no props about this issue in d.ts...

@mydesweb
Copy link

set enableContentPanningGesture to false

@TonyFTannous-Byd
Copy link

hello everyone. the issue still, any news

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