[ReactNative] Rename Slider to SliderIOS

This commit is contained in:
Tadeu Zagallo 2015-03-18 08:56:49 -07:00
parent 8b2e79dc68
commit 8cb6dc2ff6
5 changed files with 11 additions and 11 deletions

View File

@ -7,7 +7,7 @@ var React = require('react-native');
var {
CameraRoll,
Image,
Slider,
SliderIOS,
StyleSheet,
SwitchIOS,
Text,
@ -35,7 +35,7 @@ var CameraRollExample = React.createClass({
onValueChange={this._onSwitchChange}
value={this.state.bigImages} />
<Text>{(this.state.bigImages ? 'Big' : 'Small') + ' Images'}</Text>
<Slider
<SliderIOS
value={this.state.sliderValue}
onValueChange={this._onSliderChange}
/>

View File

@ -5,7 +5,7 @@
var React = require('react-native');
var {
Slider,
SliderIOS,
Text,
StyleSheet,
View,
@ -24,7 +24,7 @@ var SliderExample = React.createClass({
<Text style={styles.text} >
{this.state.value}
</Text>
<Slider
<SliderIOS
style={styles.slider}
onValueChange={(value) => this.setState({value: value})} />
</View>
@ -45,11 +45,11 @@ var styles = StyleSheet.create({
},
});
exports.title = '<Slider>';
exports.title = '<SliderIOS>';
exports.description = 'Slider input for numeric values';
exports.examples = [
{
title: 'Slider',
title: 'SliderIOS',
render() { return <SliderExample />; }
}
];

View File

@ -37,7 +37,7 @@ var EXAMPLES = [
require('./GeolocationExample'),
require('./TabBarExample'),
require('./SwitchExample'),
require('./SliderExample'),
require('./SliderIOSExample'),
require('./AsyncStorageExample'),
require('./CameraRollExample.ios'),
require('./MapViewExample'),

View File

@ -1,7 +1,7 @@
/**
* Copyright 2004-present Facebook. All Rights Reserved.
*
* @providesModule Slider
* @providesModule SliderIOS
*/
'use strict';
@ -16,7 +16,7 @@ var createReactIOSNativeComponentClass =
require('createReactIOSNativeComponentClass');
var merge = require('merge');
var Slider = React.createClass({
var SliderIOS = React.createClass({
mixins: [NativeMethodsMixin],
propTypes: {
@ -80,4 +80,4 @@ var RCTSlider = createReactIOSNativeComponentClass({
uiViewClassName: 'RCTSlider',
});
module.exports = Slider;
module.exports = SliderIOS;

View File

@ -28,7 +28,7 @@ var ReactNative = {
PickerIOS: require('PickerIOS'),
PixelRatio: require('PixelRatio'),
ScrollView: require('ScrollView'),
Slider: require('Slider'),
SliderIOS: require('SliderIOS'),
StatusBarIOS: require('StatusBarIOS'),
StyleSheet: require('StyleSheet'),
SwitchIOS: require('SwitchIOS'),