callstack / callstack/react-native-slider

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

オープン
#512 コメント 3 件 リアクション 0 件 担当者 0 名 GitHub で見る
bug report platform: Android
主要言語
TypeScript
スター
1.4k
フォーク
295
平均マージ
5分
マージ済み PR(30日)
1

説明

## 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}``

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

評価

技術スタック
react-native, typescript
領域
mobile
issue の種類
バグ
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。