Skip to content

Error when putting children inside <Slider/> component #512

Open
@JuanMejiaC

Description

@JuanMejiaC

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
Screenshot 2023-05-25 at 9 37 36 PM

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>

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug reportSomething isn't workingplatform: AndroidIssue related to Android platform

    Type

    No type

    Projects

    Status

    To be analyzed

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions