You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
which version of react & react-native are you using?
"react": "18.2.0",
"react-native": "0.71.8",
Description
When running my project in the emulator this error happens: abi48_0_0.com.reactnativecommunity.slider.ReactSlider cannot be cast to android.view.ViewGroup
When running it on a physical iPhone device it just work.
@JuanMejiaC Placing children inside the Slider component was never intentionally supported - it means that by the nature of react-native it may work and it may work not on one version or another, or depending on the platform, or changes implemented to the Slider itself.
If you would like to solve the issue then checking the implementation of children handling on Android would be the first step. If you're willing to give it a try I can assign this issue to you.
Let me know.
BartoszKlonowski
changed the title
abi48_0_0.com.reactnativecommunity.slider.ReactSlider cannot be cast to android.view.ViewGroup
Error when putting children inside <Slider/> component
Jun 30, 2023
Environment
Expo version: 0.7.1
Android Emulator: Pixel_XL_API_30
yes
"react": "18.2.0",
"react-native": "0.71.8",
Description
When running my project in the emulator this error happens: abi48_0_0.com.reactnativecommunity.slider.ReactSlider cannot be cast to android.view.ViewGroup
When running it on a physical iPhone device it just work.
Reproducible Demo
<Slider style={styles.slider} minimumValue={0} maximumValue={120} value={playBackTime.min + playBackTime.sec} minimumTrackTintColor={trackSliderColor} maximumTrackTintColor={textColorWhite} > <Text>{
${playBackTime.hour}:${playBackTime.min}:${playBackTime.sec}</Text></Slider>
The text was updated successfully, but these errors were encountered: