You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
import { NativeModules } from 'react-native';
|
|
|
|
// to address https://github.com/facebook/react-native/issues/27721
|
|
jest.mock(
|
|
'react-native/Libraries/Components/Touchable/TouchableOpacity',
|
|
() => {
|
|
const TouchableOpacity = jest.requireActual(
|
|
'react-native/Libraries/Components/Touchable/TouchableOpacity'
|
|
);
|
|
|
|
TouchableOpacity.displayName = 'TouchableOpacity';
|
|
|
|
return TouchableOpacity;
|
|
}
|
|
);
|
|
|
|
NativeModules.ReactLocalization = { language: 'en' };
|