mirror of
https://github.com/status-im/react-native.git
synced 2025-01-27 01:40:08 +00:00
[ReactNative] Rename Slider to SliderIOS
This commit is contained in:
parent
8b2e79dc68
commit
8cb6dc2ff6
@ -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}
|
||||
/>
|
||||
|
@ -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 />; }
|
||||
}
|
||||
];
|
@ -37,7 +37,7 @@ var EXAMPLES = [
|
||||
require('./GeolocationExample'),
|
||||
require('./TabBarExample'),
|
||||
require('./SwitchExample'),
|
||||
require('./SliderExample'),
|
||||
require('./SliderIOSExample'),
|
||||
require('./AsyncStorageExample'),
|
||||
require('./CameraRollExample.ios'),
|
||||
require('./MapViewExample'),
|
||||
|
@ -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;
|
2
Libraries/react-native/react-native.js
vendored
2
Libraries/react-native/react-native.js
vendored
@ -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'),
|
||||
|
Loading…
x
Reference in New Issue
Block a user