Skip to content

feat(react): fixing support for react 19, adding test app for react 19 #30217

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 11 commits into from
Mar 3, 2025
Merged
Prev Previous commit
Next Next commit
fix(lint): Running lint
  • Loading branch information
ShaneK committed Feb 27, 2025
commit b5165be8bf9be19e62768271c2cf846b7d9bb01d
9 changes: 6 additions & 3 deletions packages/react/src/components/IonApp.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,12 @@ import { IonOverlayManager } from './IonOverlayManager';
import type { IonicReactProps } from './IonicReactProps';
import { IonAppInner } from './inner-proxies';

type Props = PropsWithChildren<LocalJSX.IonApp & IonicReactProps & {
ref?: React.Ref<HTMLIonAppElement>;
}>;
type Props = PropsWithChildren<
LocalJSX.IonApp &
IonicReactProps & {
ref?: React.Ref<HTMLIonAppElement>;
}
>;

export class IonApp extends React.Component<Props> {
addOverlayCallback?: (id: string, overlay: ReactComponentOrElement, containerElement: HTMLDivElement) => void;
Expand Down
9 changes: 6 additions & 3 deletions packages/react/src/components/navigation/IonBackButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,12 @@ import { NavContext } from '../../contexts/NavContext';
import type { IonicReactProps } from '../IonicReactProps';
import { IonBackButtonInner } from '../inner-proxies';

type Props = PropsWithChildren<LocalJSX.IonBackButton & IonicReactProps & {
ref?: React.Ref<HTMLIonBackButtonElement>;
}>;
type Props = PropsWithChildren<
LocalJSX.IonBackButton &
IonicReactProps & {
ref?: React.Ref<HTMLIonBackButtonElement>;
}
>;

export class IonBackButton extends React.Component<Props> {
context!: React.ContextType<typeof NavContext>;
Expand Down
Loading