Skip to content
Permalink
Browse files
Pass disabled prop down to native implementation
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 fa9ff07017edbc76595fe2f2d964ee13c5f4088a
Showing 1 changed file with 2 additions and 0 deletions.
@@ -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}

0 comments on commit fa9ff07

Please sign in to comment.