diff --git a/__mocks__/react-native-webview.ts b/__mocks__/react-native-webview.ts index 0b4f07ff98c2..6acf58101b55 100644 --- a/__mocks__/react-native-webview.ts +++ b/__mocks__/react-native-webview.ts @@ -1,9 +1,7 @@ -import type {View as RNView} from 'react-native'; - -type ReactNative = {View: RNView}; +import type ReactNative from 'react-native'; jest.mock('react-native-webview', () => { - const {View} = require('react-native'); + const {View} = require('react-native'); return { WebView: () => View, };