Skip to content

Commit d8aa1db

Browse files
committed
chore: update components return types for react 19 compatibility
1 parent 62d706e commit d8aa1db

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

src/components/BaseToast.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export function BaseToast({
2222
text2Props,
2323
renderLeadingIcon,
2424
renderTrailingIcon
25-
}: BaseToastProps) {
25+
}: BaseToastProps): React.ReactElement {
2626
return (
2727
<TouchableOpacity
2828
testID={getTestId('TouchableContainer')}

src/components/ErrorToast.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ import React from 'react';
33
import { BaseToastProps } from '../types';
44
import { BaseToast } from './BaseToast';
55

6-
export function ErrorToast(props: BaseToastProps) {
6+
export function ErrorToast(props: BaseToastProps): React.ReactElement {
77
return <BaseToast style={{ borderLeftColor: '#FE6301' }} {...props} />;
88
}

src/components/InfoToast.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ import React from 'react';
33
import { BaseToastProps } from '../types';
44
import { BaseToast } from './BaseToast';
55

6-
export function InfoToast(props: BaseToastProps) {
6+
export function InfoToast(props: BaseToastProps): React.ReactElement {
77
return <BaseToast style={{ borderLeftColor: '#87CEFA' }} {...props} />;
88
}

src/components/SuccessToast.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ import React from 'react';
33
import { BaseToastProps } from '../types';
44
import { BaseToast } from './BaseToast';
55

6-
export function SuccessToast(props: BaseToastProps) {
6+
export function SuccessToast(props: BaseToastProps): React.ReactElement {
77
return <BaseToast style={{ borderLeftColor: '#69C779' }} {...props} />;
88
}

0 commit comments

Comments
 (0)