diff --git a/Libraries/Components/Slider/Slider.js b/Libraries/Components/Slider/Slider.js index 3ace87615..df2ff8bfc 100644 --- a/Libraries/Components/Slider/Slider.js +++ b/Libraries/Components/Slider/Slider.js @@ -23,6 +23,9 @@ var requireNativeComponent = require('requireNativeComponent'); type Event = Object; +/** + * A component used to select a single value from a range of values. + */ var Slider = React.createClass({ mixins: [NativeMethodsMixin], diff --git a/Libraries/Components/SliderIOS/SliderIOS.ios.js b/Libraries/Components/SliderIOS/SliderIOS.ios.js index d85ebfddd..acc4c3224 100644 --- a/Libraries/Components/SliderIOS/SliderIOS.ios.js +++ b/Libraries/Components/SliderIOS/SliderIOS.ios.js @@ -22,6 +22,12 @@ var requireNativeComponent = require('requireNativeComponent'); type Event = Object; +/** + * **Note:** SliderIOS is deprecated and will be removed in the future. Use the cross-platform + * Slider as a drop-in replacement with the same API. + * + * An iOS-specific component used to select a single value from a range of values. + */ var SliderIOS = React.createClass({ mixins: [NativeMethodsMixin], diff --git a/website/server/extractDocs.js b/website/server/extractDocs.js index 5d3a9fec6..6b8c14ad5 100644 --- a/website/server/extractDocs.js +++ b/website/server/extractDocs.js @@ -209,7 +209,7 @@ var components = [ '../Libraries/Components/RefreshControl/RefreshControl.js', '../Libraries/Components/ScrollView/ScrollView.js', '../Libraries/Components/SegmentedControlIOS/SegmentedControlIOS.ios.js', - '../Libraries/Components/SliderIOS/Slider.js', + '../Libraries/Components/Slider/Slider.js', '../Libraries/Components/SliderIOS/SliderIOS.ios.js', '../Libraries/Components/StatusBar/StatusBar.js', '../Libraries/Components/Switch/Switch.js',