-
Notifications
You must be signed in to change notification settings - Fork 6k
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
Slider does not work on Expo apps #4300
Comments
Hi @ahmedu007! Unfortunately, CRNA and I suggest using the |
Hi @cruzach , I came across the same issue using expo client on iOS simulator. Is there any way I can possibly use |
Yes you can, just follow the instructions in their readme |
@cruzach the repo mentioned by @ahmedu007 is this one though: https://github.com/react-native-community/react-native-slider |
Ah you're right @emac3, sorry for my misunderstanding. Unfortunately, you can't use that library in the managed workflow (which means you can't use it in the iOS Expo Client) |
https://docs.expo.io/versions/latest/react-native/slider/
@cruzach Do you mean that with expo managed apps we need to stick to the deprecated slider or is there a better alternative ? |
For now, yes, you'll have to remain using the deprecated React Native version (unless you move to the bare workflow) |
@cruzach is there a plan to integrate it into the |
This is a problem as the deprecated slider used in Expo apps has issues on iOS 13 and there is currently no way for managed Expo apps to use the react-native-community slider. Any idea on when the independent react-native-community slider package will be integrated into Expo? |
I made a snack to test this on my iphone (iOS 13), and didn't see that behavior -> https://snack.expo.io/@charliecruzan/slider-example If you do see that behavior, can you open a new issue with a repro? |
@cruzach
|
Instead of RNC slider: I tried https://github.com/jeanregisser/react-native-slider and it worked great: |
🐛 Bug Report
Trying to use
react-native-slider
and it doesn't work, neither on Android nor iOS.Environment
create-react-native-app
Android and iOS bugSteps to Reproduce
Create a fresh repo using
create-react-native-app testApp
.install slider
yarn add @react-native-community/slider
import it in the file as per the documentation
yarn ios
oryarn android
Expected Behavior
Expecting it to work and show a slider on the page
Actual Behavior
App crashes with the error:
Reproducible Demo
https://snack.expo.io/@umair170/funny-donut
I've also tried this in a bare
react-native init test
project and I can confirm it works out of the box, following the instructionsThe text was updated successfully, but these errors were encountered: