Move toast showing function to helper

This commit is contained in:
MariaZ
2021-08-29 14:03:29 +02:00
parent 233d14968d
commit 4bff5a3d68
2 changed files with 7 additions and 2 deletions
+5
View File
@@ -0,0 +1,5 @@
import Toast from 'react-native-simple-toast'
export const showToast = (text) => Toast.show(
text, Toast.SHORT, ['RCTModalHostViewController', 'UIAlertController']
)