GeekyAnts/NativeBase

need global AlterDialog

Jackwew opened this issue · 0 comments

Description

need global AlterDialog

Problem Statement

Need a global alter similar to toast,This can pop up different error messages in the request interceptor to block user actions

Proposed Solution or API

Alterdialog.Alter({
render: () => CustomAlter // Custom Function Component
placement: 'top' / 'center'
})

or

Dialog.confirm({
title: 'title',
message:
'If the solution is ugly, then there must be a better solution, but it has not been discovered yet.',
})
.then(() => {
// on confirm
})
.catch(() => {
// on cancel
});

Alternatives

No response

Additional Information

No response