Mock static methods of TouchableNativeFeedback on iOS

Reviewed By: TheSavior

Differential Revision: D7016679

fbshipit-source-id: bd04244eaf876e3ffab4f0c64792769a9ea40abd
This commit is contained in:
Alex Kotliarskyi 2018-02-21 11:06:19 -08:00 committed by Facebook Github Bot
parent 4371d1e1d0
commit 7dd12a26b9
1 changed files with 5 additions and 0 deletions

View File

@ -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]}>