Closed RicardoBrito1938 closed 4 years ago
in case someone came here by googling, jest was not getting TouchableOpacity, this workaround i found in another forun fixed the issue
'react-native/Libraries/Components/Touchable/TouchableOpacity.js',
() => {
const { TouchableHighlight } = require('react-native');
const MockTouchable = (props) => {
return <TouchableHighlight {...props} />;
};
MockTouchable.displayName = 'TouchableOpacity';
return MockTouchable;
}
);
Hello team, i am trying to implement a test in a simple code but i am getting the following error: