callstack / callstack/react-native-slider

Error when putting children inside `<Slider/>` component

Open
#512 3 comments 0 reactions 0 assignees View on GitHub
bug report platform: Android
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.

![Screenshot 2023-05-25 at 9 36 22 PM](https://github.com/callstack/react-native-slider/assets/75346996/52b62c86-59bc-4fba-a21c-2dc745196ccc)
![Screenshot 2023-05-25 at 9 37 36 PM](https://github.com/callstack/react-native-slider/assets/75346996/8227fc59-fb71-41d4-85fe-d084a8f58e24)

## Reproducible Demo
`
{`${playBackTime.hour}:${playBackTime.min}:${playBackTime.sec}``

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.