Skip to content

Commit bfcff26

Browse files
react-native-webview version updated to latest to support rn 0.77 (#259)
2 parents cbfc810 + dae01b9 commit bfcff26

File tree

13 files changed

+485
-4317
lines changed

13 files changed

+485
-4317
lines changed

packages/pluggableWidgets/signature-native/CHANGELOG.md

+2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66

77
## [Unreleased]
88

9+
- Updated react-native-webview from version v13.12.5 to latest
10+
911
## [2.2.0] - 2025-3-31
1012

1113
### Changed

packages/pluggableWidgets/signature-native/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "signature-native",
33
"widgetName": "Signature",
4-
"version": "2.2.0",
4+
"version": "2.3.0",
55
"license": "Apache-2.0",
66
"repository": {
77
"type": "git",
@@ -28,7 +28,7 @@
2828
"@mendix/piw-native-utils-internal": "*",
2929
"@mendix/piw-utils-internal": "*",
3030
"react-native-signature-canvas": "3.4.0",
31-
"react-native-webview": "13.8.6"
31+
"react-native-webview": "13.13.2"
3232
},
3333
"devDependencies": {
3434
"@mendix/pluggable-widgets-tools": "~10.0.1",

packages/pluggableWidgets/signature-native/src/__tests__/Signature.android.spec.tsx

+10
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,16 @@ jest.mock("react-native/Libraries/Utilities/Platform", () => {
1818
return Platform;
1919
});
2020

21+
jest.mock("react-native-webview", () => {
22+
const { View } = require("react-native");
23+
24+
const WebView = (props: any) => {
25+
return <View {...props} testID="mockWebView" />;
26+
};
27+
28+
return { WebView };
29+
});
30+
2131
jest.mock("react-native/Libraries/Components/Touchable/TouchableNativeFeedback", () => {
2232
const TouchableNativeFeedback = (touchableNativeFeedback: any): ReactElement => {
2333
const { children, ...rest } = touchableNativeFeedback;

packages/pluggableWidgets/signature-native/src/__tests__/Signature.ios.spec.tsx

+10
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,16 @@ const defaultProps: Props = {
2525
buttonCaptionSave: dynamicValue<string>("Save")
2626
};
2727

28+
jest.mock("react-native-webview", () => {
29+
const { View } = require("react-native");
30+
31+
const WebView = (props: any) => {
32+
return <View {...props} testID="mockWebView" />;
33+
};
34+
35+
return { WebView };
36+
});
37+
2838
describe("Signature iOS", () => {
2939
it("renders with default styles", () => {
3040
const component = render(<Signature {...defaultProps} />);

packages/pluggableWidgets/signature-native/src/__tests__/__snapshots__/Signature.android.spec.tsx.snap

+185-2,071
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)