2015-08-26 01:43:35 -07:00
|
|
|
/**
|
|
|
|
* Copyright (c) 2015-present, Facebook, Inc.
|
|
|
|
*
|
2018-02-16 18:24:55 -08: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 01:43:35 -07:00
|
|
|
*
|
2018-05-10 19:06:46 -07:00
|
|
|
* @format
|
2015-08-26 01:43:35 -07:00
|
|
|
*/
|
|
|
|
|
|
|
|
'use strict';
|
|
|
|
|
2018-03-03 15:04:46 -08:00
|
|
|
const React = require('React');
|
|
|
|
const StyleSheet = require('StyleSheet');
|
|
|
|
const Text = require('Text');
|
|
|
|
const View = require('View');
|
2015-08-26 01:43:35 -07:00
|
|
|
|
2016-07-26 01:00:02 -07:00
|
|
|
class DummyTouchableNativeFeedback extends React.Component {
|
2018-02-21 11:06:19 -08:00
|
|
|
static SelectableBackground = () => ({});
|
|
|
|
static SelectableBackgroundBorderless = () => ({});
|
|
|
|
static Ripple = () => ({});
|
|
|
|
static canUseNativeForeground = () => false;
|
|
|
|
|
2016-07-26 01:00:02 -07:00
|
|
|
render() {
|
2015-08-26 01:43:35 -07:00
|
|
|
return (
|
|
|
|
<View style={[styles.container, this.props.style]}>
|
2018-05-10 19:06:46 -07:00
|
|
|
<Text style={styles.info}>
|
|
|
|
TouchableNativeFeedback is not supported on this platform!
|
|
|
|
</Text>
|
2015-08-26 01:43:35 -07:00
|
|
|
</View>
|
|
|
|
);
|
2016-07-26 01:00:02 -07:00
|
|
|
}
|
|
|
|
}
|
2015-08-26 01:43:35 -07:00
|
|
|
|
2018-03-03 15:04:46 -08:00
|
|
|
const styles = StyleSheet.create({
|
2015-08-26 01:43:35 -07: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-10 19:06:46 -07:00
|
|
|
},
|
2015-08-26 01:43:35 -07:00
|
|
|
});
|
|
|
|
|
|
|
|
module.exports = DummyTouchableNativeFeedback;
|