You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
when ever i pass a code as argument for onHide callback , code get executed before even showing toast message. But when i pass a static code withing onHide callback it does works.
Steps to reproduce
Steps to reproduce the behavior:
function showToast(value1,value2,value3,value4){
Toast.show({
text1:value1,
text2:value2,
position:'top',
type:value3,
onHide:()=>{value4},
})
}
when i passed below argument to showToast function , code props.onPickScreen('Bar') passed as argument execute before even showing toast message. And i never get to see toast message. Actually this code should be fired once toast message is hide.
showToast("Reservation process failed "," please rescan it ","error", props.onPickScreen('Bar'))
Expected behavior
Actually code should be executed once toast message is hide automatically. instead of passing code as argument and adding statiic code for onHide callback , it does work. Screenshots
If applicable, add screenshots to help explain your problem.
Environment (please complete the following information):
OS: [iOS, Android,]
The text was updated successfully, but these errors were encountered:
Describe the bug
when ever i pass a code as argument for onHide callback , code get executed before even showing toast message. But when i pass a static code withing onHide callback it does works.
Steps to reproduce
Steps to reproduce the behavior:
function showToast(value1,value2,value3,value4){
Toast.show({
text1:value1,
text2:value2,
position:'top',
type:value3,
onHide:()=>{value4},
})
}
when i passed below argument to showToast function , code props.onPickScreen('Bar') passed as argument execute before even showing toast message. And i never get to see toast message. Actually this code should be fired once toast message is hide.
showToast("Reservation process failed "," please rescan it ","error", props.onPickScreen('Bar'))
Expected behavior
Actually code should be executed once toast message is hide automatically. instead of passing code as argument and adding statiic code for onHide callback , it does work.
Screenshots
If applicable, add screenshots to help explain your problem.
Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: