From f13961867622e5a7ad6d28322063f5357fca68b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Barbara=20Gawe=C5=82-Kucab?= Date: Tue, 18 Jun 2024 12:43:58 +0200 Subject: [PATCH] update RN type --- __mocks__/react-native-webview.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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, };