diff --git a/test/jest/jestSetup.js b/test/jest/jestSetup.js index c8f83c0ee7f6..b788249604f9 100644 --- a/test/jest/jestSetup.js +++ b/test/jest/jestSetup.js @@ -9,7 +9,13 @@ jest.mock('@react-native-async-storage/async-storage', () => mockAsyncStorage); jest.mock('react-native-navigation', () => ({ getNavigationConstants: () => ({ constants: [] }), - Navigation: { constants: async () => {} }, + Navigation: { + constants: async () => ({ + statusBarHeight: 10, + topBarHeight: 10, + bottomTabsHeight: 10, + }), + }, })); jest.mock('react-native-background-timer', () => ({}));