import React from 'react'; import { Text, View } from 'react-native'; import { BaseToastProps } from '../types'; import { getTestId } from '../utils/test-id'; import { styles } from './BaseToast.styles'; import { Touchable } from './Touchable'; export function BaseToast({ text1, text2, onPress, activeOpacity, style, touchableContainerProps, contentContainerStyle, contentContainerProps, text1Style, text1NumberOfLines = 1, text1Props, text2Style, text2NumberOfLines = 1, text2Props, renderLeadingIcon, renderTrailingIcon }: BaseToastProps) { return ( {renderLeadingIcon && renderLeadingIcon()} {(text1?.length ?? 0) > 0 && ( {text1} )} {(text2?.length ?? 0) > 0 && ( {text2} )} {renderTrailingIcon && renderTrailingIcon()} ); }