From 7dd12a26b9d967cd216d0579c7d893aee7cddcef Mon Sep 17 00:00:00 2001 From: Alex Kotliarskyi Date: Wed, 21 Feb 2018 11:06:19 -0800 Subject: [PATCH] Mock static methods of TouchableNativeFeedback on iOS Reviewed By: TheSavior Differential Revision: D7016679 fbshipit-source-id: bd04244eaf876e3ffab4f0c64792769a9ea40abd --- .../Components/Touchable/TouchableNativeFeedback.ios.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Libraries/Components/Touchable/TouchableNativeFeedback.ios.js b/Libraries/Components/Touchable/TouchableNativeFeedback.ios.js index 9b7ff5e7e..c624cb7fd 100644 --- a/Libraries/Components/Touchable/TouchableNativeFeedback.ios.js +++ b/Libraries/Components/Touchable/TouchableNativeFeedback.ios.js @@ -15,6 +15,11 @@ var Text = require('Text'); var View = require('View'); class DummyTouchableNativeFeedback extends React.Component { + static SelectableBackground = () => ({}); + static SelectableBackgroundBorderless = () => ({}); + static Ripple = () => ({}); + static canUseNativeForeground = () => false; + render() { return (