DatePickerIOS.android.js 1.0 KB

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 DummyDatePickerIOS extends React.Component {
  15. render() {
  16. return (
  17. <View style={[styles.dummyDatePickerIOS, this.props.style]}>
  18. <Text style={styles.datePickerText}>
  19. DatePickerIOS is not supported on this platform!
  20. </Text>
  21. </View>
  22. );
  23. }
  24. }
  25. const styles = StyleSheet.create({
  26. dummyDatePickerIOS: {
  27. height: 100,
  28. width: 300,
  29. backgroundColor: '#ffbcbc',
  30. borderWidth: 1,
  31. borderColor: 'red',
  32. alignItems: 'center',
  33. justifyContent: 'center',
  34. margin: 10,
  35. },
  36. datePickerText: {
  37. color: '#333333',
  38. margin: 20,
  39. },
  40. });
  41. module.exports = DummyDatePickerIOS;