Skip to content

Slider manipulation results in crashes for react-native-windows when no step is specified #256

@chrisfromwork

Description

@chrisfromwork

Environment

  • Building on a PC with visual studio 2019
  • Using react-native-windows@0.64.0-preview.5
  • Using @react-native-community/slider@4.0.0-rc.2

Description

If you don't specify a step value, no default is set. This then causes xaml range value component to generate errors

Reproducible Demo

  • Setup a react-native-windows project
  • Add @react-native-community/slider@4.0.0-rc.2 as a dependency and register the package in your project's app.cpp file
  • Add a slider to your app, avoid specifying a step value
  • Manipulate the slider

Observed behavior

The application crashes because no step value is set

Expected behavior

The application falls back to using a default step value

Metadata

Metadata

Labels

bug reportSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions