Skip to content

Commit

Permalink
Pass disabled prop down to native implementation
Browse files Browse the repository at this point in the history
Summary:
Changelog:
[iOS] [Fixed] - Slider is now disabled properly on iOS if the disabled prop is set.

Reviewed By: yungsters

Differential Revision: D18758835

fbshipit-source-id: 4850ebf05380f241d49d40107de61fd840049779
  • Loading branch information
Andy Huang authored and facebook-github-bot committed Dec 2, 2019
1 parent 7a42596 commit fa9ff07
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Libraries/Components/Slider/Slider.js
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,9 @@ const Slider = (
return (
<SliderNativeComponent
{...localProps}
// TODO: Reconcile these across the two platforms.
enabled={!disabled}
disabled={disabled}
maximumValue={maximumValue}
minimumValue={minimumValue}
onChange={onChangeEvent}
Expand Down

0 comments on commit fa9ff07

Please sign in to comment.