react-native/Libraries/Components/ProgressViewIOS/ProgressViewIOS.android.js

50 lines
1.1 KiB
JavaScript
Raw Normal View History

2015-06-03 16:49:22 +00:00
/**
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
2015-06-03 23:07:39 +00:00
* @providesModule ProgressViewIOS
2015-06-03 16:49:22 +00:00
*/
'use strict';
var React = require('React');
var StyleSheet = require('StyleSheet');
var Text = require('Text');
var View = require('View');
class DummyProgressViewIOS extends React.Component {
render() {
2015-06-03 16:49:22 +00:00
return (
<View style={[styles.dummy, this.props.style]}>
<Text style={styles.text}>
ProgressViewIOS is not supported on this platform!
</Text>
</View>
);
}
}
2015-06-03 16:49:22 +00:00
var styles = StyleSheet.create({
dummy: {
width: 120,
height: 20,
backgroundColor: '#ffbcbc',
borderWidth: 1,
borderColor: 'red',
alignItems: 'center',
justifyContent: 'center',
},
text: {
color: '#333333',
margin: 5,
fontSize: 10,
}
});
2015-06-03 23:07:39 +00:00
module.exports = DummyProgressViewIOS;