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

It's not working on react-native-web (react-native-cli, not Expo) #454

Open
fershibli opened this issue Nov 4, 2024 · 0 comments
Open

Comments

@fershibli
Copy link

The component works perfectly on mobile, but it fails to render and function correctly on the web.
While I managed to render it outside of the slider using the current value, there are still issues.
Also the debugTouch area doesn't represent the reality on the web browser.

For reference here's the recording for web version and the mobile version

Mobile:

Screen.Recording.2024-11-04.at.13.48.12.mov

Web:

Screen.Recording.2024-11-04.at.13.48.48.mov

In the browser console, I see the following error:

BackHandler is not supported on web and should not be used.

Additionally, clicking directly on the slider doesn’t work it always identify the click as the initial position, though dragging does work when trackClickable={true} is set, but in the same conditions as clicking (only from the initial position).

Could you suggest a patch or any other workaround for this?

Thank you very much in advance!

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

1 participant