Skip to content

Cannot read properties of undefined (reading 'toFixed') #617

Closed
@rwilliamson1

Description

@rwilliamson1

Environment

  • which version of react & react-native are you using?
  • react: 18.3.1
  • react-native: 0.74.2
  • react-native-web: 0.19.10

Description

When the slider is used with a step prop, when it is moved down to 0 it causes the error "Cannot read properties of undefined (reading 'toFixed')"


Screenshot 2024-07-10 at 2 09 58 PM

Reproducible Demo

The combination of using the step prop with the value going from a positive value down to 0 causes the error.


https://snack.expo.dev/jlLsyHnEs_ZzE3sODCTSB

Metadata

Metadata

Assignees

Labels

bug reportSomething isn't working

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions