File tree Expand file tree Collapse file tree 4 files changed +4
-4
lines changed
Expand file tree Collapse file tree 4 files changed +4
-4
lines changed Original file line number Diff line number Diff 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' ) }
Original file line number Diff line number Diff line change @@ -3,6 +3,6 @@ import React from 'react';
33import { BaseToastProps } from '../types' ;
44import { 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}
Original file line number Diff line number Diff line change @@ -3,6 +3,6 @@ import React from 'react';
33import { BaseToastProps } from '../types' ;
44import { 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}
Original file line number Diff line number Diff line change @@ -3,6 +3,6 @@ import React from 'react';
33import { BaseToastProps } from '../types' ;
44import { 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}
You can’t perform that action at this time.
0 commit comments