We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
set placement to top is not usefull
no link
{"bottom": [], "top": [{"component": <Memo … />, "config": [Object], "id": "498416516"}, {"component": <Memo … />, "config": [Object], "id": "498416516"}]} const isActive = React.useCallback( (id: any) => { console.log(toastInfo); for (const toastPosition of Object.keys(toastInfo)) { const positionArray: Array = toastInfo[toastPosition]; console.log("positionArray",positionArray) // [],because "bottom": [], so toast.isActive()==>false return positionArray.findIndex((toastData) => toastData.id === id) > -1; } return false; }, [toastInfo] );
3.4.25
No response
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Description
set placement to top is not usefull
CodeSandbox/Snack link
no link
Steps to reproduce
{"bottom": [], "top": [{"component": <Memo … />, "config": [Object], "id": "498416516"}, {"component": <Memo … />, "config": [Object], "id": "498416516"}]}
const isActive = React.useCallback(
(id: any) => {
console.log(toastInfo);
for (const toastPosition of Object.keys(toastInfo)) {
const positionArray: Array = toastInfo[toastPosition];
console.log("positionArray",positionArray) // [],because "bottom": [], so toast.isActive()==>false
return positionArray.findIndex((toastData) => toastData.id === id) > -1;
}
return false;
},
[toastInfo]
);
NativeBase Version
3.4.25
Platform
Other Platform
No response
Additional Information
No response
The text was updated successfully, but these errors were encountered: