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
This commit is contained in:
Andy Huang
2019-12-02 14:21:16 -08:00
committed by Facebook Github Bot
parent 7a42596438
commit fa9ff07017
+2
View File
@@ -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}