2015-09-14 14:35:58 +00:00
|
|
|
/**
|
2018-09-11 22:27:47 +00:00
|
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
2015-09-14 14:35:58 +00:00
|
|
|
*
|
2018-02-17 02:24:55 +00:00
|
|
|
* This source code is licensed under the MIT license found in the
|
|
|
|
* LICENSE file in the root directory of this source tree.
|
2015-09-14 14:35:58 +00:00
|
|
|
*
|
2018-05-11 02:06:46 +00:00
|
|
|
* @format
|
2015-09-14 14:35:58 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
'use strict';
|
|
|
|
|
2018-03-03 23:04:46 +00:00
|
|
|
const React = require('React');
|
|
|
|
const StyleSheet = require('StyleSheet');
|
|
|
|
const Text = require('Text');
|
|
|
|
const View = require('View');
|
2015-09-14 14:35:58 +00:00
|
|
|
|
2016-07-26 08:00:02 +00:00
|
|
|
class DummyDatePickerIOS extends React.Component {
|
|
|
|
render() {
|
2015-09-14 14:35:58 +00:00
|
|
|
return (
|
|
|
|
<View style={[styles.dummyDatePickerIOS, this.props.style]}>
|
2018-05-11 02:06:46 +00:00
|
|
|
<Text style={styles.datePickerText}>
|
|
|
|
DatePickerIOS is not supported on this platform!
|
|
|
|
</Text>
|
2015-09-14 14:35:58 +00:00
|
|
|
</View>
|
|
|
|
);
|
2016-07-26 08:00:02 +00:00
|
|
|
}
|
|
|
|
}
|
2015-09-14 14:35:58 +00:00
|
|
|
|
2018-03-03 23:04:46 +00:00
|
|
|
const styles = StyleSheet.create({
|
2015-09-14 14:35:58 +00:00
|
|
|
dummyDatePickerIOS: {
|
|
|
|
height: 100,
|
|
|
|
width: 300,
|
|
|
|
backgroundColor: '#ffbcbc',
|
|
|
|
borderWidth: 1,
|
|
|
|
borderColor: 'red',
|
|
|
|
alignItems: 'center',
|
|
|
|
justifyContent: 'center',
|
|
|
|
margin: 10,
|
|
|
|
},
|
|
|
|
datePickerText: {
|
|
|
|
color: '#333333',
|
|
|
|
margin: 20,
|
2018-05-11 02:06:46 +00:00
|
|
|
},
|
2015-09-14 14:35:58 +00:00
|
|
|
});
|
|
|
|
|
|
|
|
module.exports = DummyDatePickerIOS;
|