@fto-consult/expo-ui
Version:
Bibliothèque de composants UI Expo,react-native
13 lines (11 loc) • 548 B
JavaScript
import showConfirmOrAlertOrPrompt from "./showConfirmOrAlertOrPrompt";
export const showAlert = (props,cb)=>{
return showConfirmOrAlertOrPrompt({...defaultObj(props),alert:true,confirm:false,prompt:false},cb)
}
export const showConfirm = (props,cb)=>{
return showConfirmOrAlertOrPrompt({...defaultObj(props),alert:false,confirm:true,prompt:false},cb)
}
export const showPrompt = (props,cb)=>{
return showConfirmOrAlertOrPrompt({...defaultObj(props),prompt:true,alert:false,confirm:false},cb)
};
export default showConfirm;