toastify-react-native
Version:
🎉 toastify-react-native allows you to add notifications to your react-native app (ios, android) with ease. No more nonsense!
30 lines (27 loc) • 620 B
text/typescript
import { ToastManagerProps } from './interfaces'
import { SCALE } from './helpers'
const defaultProps: ToastManagerProps = {
theme: 'light',
width: '90%',
minHeight: SCALE(61),
style: {},
textStyle: {},
position: 'top',
duration: 3000,
animationStyle: 'fade',
topOffset: 40,
bottomOffset: 40,
showCloseIcon: true,
showProgressBar: true,
isRTL: false,
iconSize: SCALE(22),
iconFamily: 'Ionicons',
icons: {
success: 'checkmark-circle',
error: 'alert-circle',
info: 'information-circle',
warn: 'warning',
default: 'checkmark-circle',
},
}
export default defaultProps