42 lines
826 B
JavaScript
42 lines
826 B
JavaScript
/**
|
|
* Copyright 2004-present Facebook. All Rights Reserved.
|
|
*
|
|
* @providesModule SwitchIOS
|
|
*/
|
|
|
|
'use strict';
|
|
|
|
var React = require('React');
|
|
var StyleSheet = require('StyleSheet');
|
|
var Text = require('Text');
|
|
var View = require('View');
|
|
|
|
var DummySwitchIOS = React.createClass({
|
|
render: function() {
|
|
return (
|
|
<View style={[styles.dummySwitchIOS, this.props.style]}>
|
|
<Text style={styles.text}>SwitchIOS is not supported on this platform!</Text>
|
|
</View>
|
|
);
|
|
},
|
|
});
|
|
|
|
var styles = StyleSheet.create({
|
|
dummySwitchIOS: {
|
|
width: 120,
|
|
height: 50,
|
|
backgroundColor: '#ffbcbc',
|
|
borderWidth: 1,
|
|
borderColor: 'red',
|
|
alignItems: 'center',
|
|
justifyContent: 'center',
|
|
},
|
|
text: {
|
|
color: '#333333',
|
|
margin: 5,
|
|
fontSize: 10,
|
|
}
|
|
});
|
|
|
|
module.exports = DummySwitchIOS;
|