SegmentedControlIOS.android.js 1004 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. /**
  2. * Copyright (c) Facebook, Inc. and its affiliates.
  3. *
  4. * This source code is licensed under the MIT license found in the
  5. * LICENSE file in the root directory of this source tree.
  6. *
  7. * @format
  8. */
  9. 'use strict';
  10. const React = require('react');
  11. const StyleSheet = require('../../StyleSheet/StyleSheet');
  12. const Text = require('../../Text/Text');
  13. const View = require('../View/View');
  14. class DummySegmentedControlIOS extends React.Component {
  15. render() {
  16. return (
  17. <View style={[styles.dummy, this.props.style]}>
  18. <Text style={styles.text}>
  19. SegmentedControlIOS is not supported on this platform!
  20. </Text>
  21. </View>
  22. );
  23. }
  24. }
  25. const styles = StyleSheet.create({
  26. dummy: {
  27. width: 120,
  28. height: 50,
  29. backgroundColor: '#ffbcbc',
  30. borderWidth: 1,
  31. borderColor: 'red',
  32. alignItems: 'center',
  33. justifyContent: 'center',
  34. },
  35. text: {
  36. color: '#333333',
  37. margin: 5,
  38. fontSize: 10,
  39. },
  40. });
  41. module.exports = DummySegmentedControlIOS;