callstack / callstack/react-native-slider
Error when putting children inside `<Slider/>` component
- Dominant language
- TypeScript
- Stars
- 1.4k
- Forks
- 295
- Avg merge
- 5m
- Merged PRs (30d)
- 1
Description
## Environment
Expo version: 0.7.1
Android Emulator: Pixel_XL_API_30
* react-native info output:
```
// react-native info
```
* are you using the new architecture?
yes
* 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.


## Reproducible Demo
`
{`${playBackTime.hour}:${playBackTime.min}:${playBackTime.sec}``
Contributor guide
Research direction
Start by reproducing the provided Slider-with-Text example on the Android emulator, then trace how Slider handles children and where the ReactSlider view is treated as a ViewGroup. Done means the example runs on Android without the cast error while preserving the existing iPhone behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react-native, typescript
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100