react-native-macos
Version:
[Microsoft Fork] A framework for building native apps using React
45 lines (38 loc) • 1.02 kB
JavaScript
/**
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
// TODO(macOS ISS#2323203)
;
var React = require('react');
var StyleSheet = require('../../StyleSheet/StyleSheet');
var Text = require('../../Text/Text');
var View = require('../View/View');
class DummyDatePickerMacOS extends React.Component {
render() {
return (
<View style={[styles.dummyDatePickerMacOS, this.props.style]}>
<Text style={styles.datePickerText}>DatePickerMacOS is not supported on this platform!</Text>
</View>
);
}
}
var styles = StyleSheet.create({
dummyDatePickerMacOS: {
height: 100,
width: 300,
backgroundColor: '#ffbcbc',
borderWidth: 1,
borderColor: 'red',
alignItems: 'center',
justifyContent: 'center',
margin: 10,
},
datePickerText: {
color: '#333333',
margin: 20,
},
});
module.exports = DummyDatePickerMacOS;