Skip to content

Commit 24d183f

Browse files
Upgrade to React 19 and React 0.78 (#365)
2 parents 677d1f9 + a1b4e47 commit 24d183f

File tree

118 files changed

+1005
-937
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

118 files changed

+1005
-937
lines changed

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
20.16.0
1+
v20

package.json

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -42,18 +42,18 @@
4242
"@actions/core": "^1.6.0",
4343
"@commitlint/cli": "^18.6.1",
4444
"@commitlint/config-conventional": "^18.6.3",
45-
"@react-native/babel-preset": "0.77.3",
46-
"@testing-library/react-native": "^13.3.3",
45+
"@react-native/babel-preset": "0.78.2",
46+
"@testing-library/react-native": "^13.2.0",
4747
"@types/big.js": "^6.2.2",
4848
"@types/concurrently": "^6.3.0",
4949
"@types/enzyme": "^3.10.18",
5050
"@types/jasmine": "^3.10.18",
5151
"@types/mime": "^2.0.3",
5252
"@types/node": "^20.16.14",
53-
"@types/react": "~18.0.38",
54-
"@types/react-dom": "~18.0.11",
53+
"@types/react": "~19.0.12",
54+
"@types/react-dom": "~19.0.4",
5555
"@types/react-native-vector-icons": "6.4.12",
56-
"@types/react-test-renderer": "~18.0.7",
56+
"@types/react-test-renderer": "~19.0.0",
5757
"@types/shelljs": "^0.8.15",
5858
"@types/xml2js": "^0.4.14",
5959
"cross-env": "^7.0.3",
@@ -82,15 +82,16 @@
8282
"overrides": {
8383
"@mendix/pluggable-widgets-tools": "10.21.1",
8484
"@rollup/plugin-typescript": "12.1.4",
85-
"mendix": "10.15.46408",
86-
"@types/react": "^18",
87-
"react": "18.2.0",
88-
"react-dom": "18.2.0",
89-
"react-native": "0.77.3",
85+
"mendix": "10.24.81004",
86+
"react": "19.0.0",
87+
"react-dom": "19.0.0",
88+
"react-native": "0.78.2",
89+
"@types/react": "~19.0.12",
90+
"@types/react-dom": "~19.0.4",
9091
"@prettier/plugin-xml": "2.2.0",
91-
"@types/react-native": "0.73.0",
9292
"cheerio": "1.0.0-rc.12",
93-
"typescript": "~5.8.0"
93+
"typescript": "~5.8.3",
94+
"react-test-renderer": "19.0.0"
9495
},
9596
"patchedDependencies": {
9697
"@mendix/pluggable-widgets-tools@10.21.1": "patches/@mendix+pluggable-widgets-tools+10.21.1.patch",

packages/jsActions/mobile-resources-native/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,6 @@
4747
"@types/querystringify": "^2.0.0",
4848
"@types/url-parse": "^1.4.3",
4949
"mendix": "~10.0.9976",
50-
"rimraf": "^5.0.10"
50+
"rimraf": "^6.0.1"
5151
}
5252
}

packages/pluggableWidgets/accordion-native/src/Accordion.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { createElement, ReactElement, useState, useCallback, useEffect } from "react";
1+
import { ReactElement, useState, useCallback, useEffect } from "react";
22
import { View, LayoutAnimation, Platform, UIManager } from "react-native";
33
import { flattenStyles } from "@mendix/piw-native-utils-internal";
44
import { executeAction } from "@mendix/piw-utils-internal";

packages/pluggableWidgets/accordion-native/src/__tests__/Accordion.spec.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import { actionValue, dynamicValue, EditableValueBuilder } from "@mendix/piw-utils-internal";
2-
import { createElement } from "react";
32
import { Pressable, Text } from "react-native";
43
import { fireEvent, render } from "@testing-library/react-native";
54
import { Accordion, Props } from "../Accordion";

packages/pluggableWidgets/accordion-native/src/components/AccordionGroup.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { createElement, ReactElement } from "react";
1+
import { ReactElement } from "react";
22
import { View, Pressable, Text } from "react-native";
33
import { DynamicValue, NativeIcon } from "mendix";
44

packages/pluggableWidgets/accordion-native/src/components/CollapsibleView.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { createElement, ReactElement, ReactNode } from "react";
1+
import { ReactNode, ReactElement } from "react";
22
import { View, ViewStyle } from "react-native";
33

44
interface CollapsibleViewProps {

packages/pluggableWidgets/accordion-native/src/components/GroupIcon.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { createElement, ReactElement, useRef, useEffect } from "react";
1+
import { ReactElement, useRef, useEffect } from "react";
22
import { Animated, Easing, View } from "react-native";
33
import { DynamicValue, NativeIcon } from "mendix";
44
import { Icon } from "mendix/components/native/Icon";

packages/pluggableWidgets/activity-indicator-native/src/ActivityIndicator.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { flattenStyles } from "@mendix/piw-native-utils-internal";
2-
import { Component, createElement } from "react";
2+
import { Component, JSX } from "react";
33
import { ActivityIndicator as RNActivityIndicator, View } from "react-native";
44

55
import { ActivityIndicatorProps } from "../typings/ActivityIndicatorProps";

packages/pluggableWidgets/activity-indicator-native/src/__tests__/ActivityIndicator.spec.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
import { createElement } from "react";
21
import { render } from "@testing-library/react-native";
3-
42
import { ActivityIndicator, Props } from "../ActivityIndicator";
53

64
const defaultProps: Props = {

0 commit comments

Comments
 (0)