Working on upgrading our app to Expo 53 and React Native 0.79, with the React 19 upgrade. Bumped `@types/react` and `@types/react-dom` to v19 as well to match, and encountering the following TS error when using Victory components:
TS2786: VictoryChart cannot be used as a JSX component.
Its type (props: VictoryChartProps) => Element is not a valid JSX element type.
Type (props: VictoryChartProps) => Element is not assignable to type
(props: any) => ReactNode | Promise<ReactNode>
Type Element is not assignable to type ReactNode | Promise<ReactNode>
Property children is missing in type ReactElement<any, any> but required in type ReactPortal
This is possibly related to https://github.com/DefinitelyTyped/DefinitelyTyped/issues/66841, though we were previously on `@types/react` 18.3.12 and `@types/react-dom` 18.3.1 and those worked fine.
- Device: Desktop
- OS: MacOS 26
- Node: 22
- Yarn: 1
Is there an existing issue for this?
Code of Conduct
Victory version
37.3.6
Code Sandbox link
No response
Bug report
Steps to reproduce
Expected behavior
Actual behavior
Environment