Skip to content

Commit fa9ff07

Browse files
Andy Huangfacebook-github-bot
Andy Huang
authored andcommitted
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
1 parent 7a42596 commit fa9ff07

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Libraries/Components/Slider/Slider.js

+2
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,9 @@ const Slider = (
237237
return (
238238
<SliderNativeComponent
239239
{...localProps}
240+
// TODO: Reconcile these across the two platforms.
240241
enabled={!disabled}
242+
disabled={disabled}
241243
maximumValue={maximumValue}
242244
minimumValue={minimumValue}
243245
onChange={onChangeEvent}

0 commit comments

Comments
 (0)