mirror of
https://github.com/zhigang1992/react-navigation.git
synced 2026-02-09 09:13:32 +08:00
36 lines
686 B
JavaScript
36 lines
686 B
JavaScript
/* eslint-env jest */
|
|
|
|
jest.mock('@react-native-community/masked-view', () => () => null);
|
|
|
|
jest.mock('react-native-safe-area-context', () => {
|
|
const React = require('react');
|
|
|
|
const SafeAreaContext = React.createContext({
|
|
top: 0,
|
|
left: 0,
|
|
right: 0,
|
|
bottom: 0,
|
|
});
|
|
|
|
return {
|
|
__esModule: true,
|
|
|
|
SafeAreaContext,
|
|
SafeAreaProvider: SafeAreaContext.Provider,
|
|
SafeAreaConsumer: SafeAreaContext.Consumer,
|
|
};
|
|
});
|
|
|
|
jest.mock('react-native-gesture-handler', () => ({
|
|
PanGestureHandler: 'PanGestureHandler',
|
|
BaseButton: 'BaseButton',
|
|
State: {
|
|
UNDETERMINED: 0,
|
|
FAILED: 1,
|
|
BEGAN: 2,
|
|
CANCELLED: 3,
|
|
ACTIVE: 4,
|
|
END: 5,
|
|
},
|
|
}));
|