rn-toastify
Version:
A customizable and performant toast notification library for React Native, featuring smooth animations, swipe gestures, and flexible styling options.
27 lines (23 loc) • 590 B
JavaScript
import React from 'react';
import { View, StyleSheet } from 'react-native';
import {
heightPercentageToDP as hp,
widthPercentageToDP as wp,
} from '../utils/Pixel/Index';
const CustomToast = ({ content }) => {
return (
<View style={styles.customToast}>
{content}
</View>
);
};
const styles = StyleSheet.create({
customToast: {
padding: wp(1),
borderRadius: wp(2),
backgroundColor: 'white',
flexDirection: 'row',
alignItems: 'center',
},
});
export default CustomToast;