adds delete app data functionality

This commit is contained in:
mashazyu
2019-01-03 23:37:15 +01:00
parent d7c4932ec2
commit cb95c98031
6 changed files with 205 additions and 28 deletions
@@ -0,0 +1,19 @@
import { Alert } from 'react-native'
import { shared as sharedLabels } from '../../../i18n/en/labels'
import labels from '../../../i18n/en/settings'
export default function showDeleteDialog(okHandler) {
const { question, message, confirmation } = labels.deleteSegment
Alert.alert(
question,
message,
[{
text: confirmation,
onPress: okHandler
}, {
text: sharedLabels.cancel, style: 'cancel', onPress: () => { }
}]
)
}