2015-08-26 08:43:35 +00:00
|
|
|
/**
|
|
|
|
* Copyright (c) 2015-present, Facebook, Inc.
|
|
|
|
*
|
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-08-26 08:43:35 +00:00
|
|
|
*
|
2018-05-11 02:06:46 +00:00
|
|
|
* @format
|
2015-08-26 08:43:35 +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-08-26 08:43:35 +00:00
|
|
|
|
2016-07-26 08:00:02 +00:00
|
|
|
class DummyTouchableNativeFeedback extends React.Component {
|
2018-02-21 19:06:19 +00:00
|
|
|
static SelectableBackground = () => ({});
|
|
|
|
static SelectableBackgroundBorderless = () => ({});
|
|
|
|
static Ripple = () => ({});
|
|
|
|
static canUseNativeForeground = () => false;
|
|
|
|
|
2016-07-26 08:00:02 +00:00
|
|
|
render() {
|
2015-08-26 08:43:35 +00:00
|
|
|
return (
|
|
|
|
<View style={[styles.container, this.props.style]}>
|
2018-05-11 02:06:46 +00:00
|
|
|
<Text style={styles.info}>
|
|
|
|
TouchableNativeFeedback is not supported on this platform!
|
|
|
|
</Text>
|
2015-08-26 08:43:35 +00:00
|
|
|
</View>
|
|
|
|
);
|
2016-07-26 08:00:02 +00:00
|
|
|
}
|
|
|
|
}
|
2015-08-26 08:43:35 +00:00
|
|
|
|
2018-03-03 23:04:46 +00:00
|
|
|
const styles = StyleSheet.create({
|
2015-08-26 08:43:35 +00:00
|
|
|
container: {
|
|
|
|
height: 100,
|
|
|
|
width: 300,
|
|
|
|
backgroundColor: '#ffbcbc',
|
|
|
|
borderWidth: 1,
|
|
|
|
borderColor: 'red',
|
|
|
|
alignItems: 'center',
|
|
|
|
justifyContent: 'center',
|
|
|
|
margin: 10,
|
|
|
|
},
|
|
|
|
info: {
|
|
|
|
color: '#333333',
|
|
|
|
margin: 20,
|
2018-05-11 02:06:46 +00:00
|
|
|
},
|
2015-08-26 08:43:35 +00:00
|
|
|
});
|
|
|
|
|
|
|
|
module.exports = DummyTouchableNativeFeedback;
|