improve network error handling/messaging

This commit is contained in:
austinried
2021-08-23 13:15:30 +09:00
parent f1db1315e0
commit e32d0a7e04
4 changed files with 35 additions and 38 deletions

7
app/util/toast.ts Normal file
View File

@@ -0,0 +1,7 @@
import { ToastAndroid } from 'react-native'
function toast(message: string) {
ToastAndroid.showWithGravityAndOffset(message, ToastAndroid.SHORT, ToastAndroid.BOTTOM, 0, 180)
}
export default toast