Move toast showing function to helper

This commit is contained in:
MariaZ committed 2021-08-29 14:03:29 +02:00
1 parent 233d14968d
commit 4bff5a3d68
2 files changed
+7 -2

No files matched your search

+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']
)