Skip to content

Commit

Permalink
update RN type
Browse files Browse the repository at this point in the history
  • Loading branch information
bgawkuc committed Jun 18, 2024
1 parent c5b93db commit f139618
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions __mocks__/react-native-webview.ts
Original file line number Diff line number Diff line change
@@ -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<ReactNative>('react-native');
const {View} = require<typeof ReactNative>('react-native');
return {
WebView: () => View,
};
Expand Down

0 comments on commit f139618

Please sign in to comment.