Files
inji-wallet/components/ui/ToastItem.tsx
2022-08-26 10:31:34 +05:30

23 lines
520 B
TypeScript

import React from 'react';
import { View } from 'react-native';
import { Text } from './Text';
import { Theme } from './styleUtils';
export const ToastItem: React.FC<ToastProps> = (props) => {
return (
<View style={Theme.ToastItemStyles.toastContainer}>
<Text
align="center"
margin="8 16"
color={Theme.Colors.ToastItemText}
style={Theme.ToastItemStyles.messageContainer}>
{props.message}
</Text>
</View>
);
};
interface ToastProps {
message: string;
}