Mock static methods of TouchableNativeFeedback on iOS
Reviewed By: TheSavior Differential Revision: D7016679 fbshipit-source-id: bd04244eaf876e3ffab4f0c64792769a9ea40abd
This commit is contained in:
parent
4371d1e1d0
commit
7dd12a26b9
|
@ -15,6 +15,11 @@ var Text = require('Text');
|
||||||
var View = require('View');
|
var View = require('View');
|
||||||
|
|
||||||
class DummyTouchableNativeFeedback extends React.Component {
|
class DummyTouchableNativeFeedback extends React.Component {
|
||||||
|
static SelectableBackground = () => ({});
|
||||||
|
static SelectableBackgroundBorderless = () => ({});
|
||||||
|
static Ripple = () => ({});
|
||||||
|
static canUseNativeForeground = () => false;
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
return (
|
return (
|
||||||
<View style={[styles.container, this.props.style]}>
|
<View style={[styles.container, this.props.style]}>
|
||||||
|
|
Loading…
Reference in New Issue