Merge pull request #5403 from BlueWallet/tooltipcrash

FIX: Cleanup the menu when the view is navigating away
This commit is contained in:
GLaDOS 2023-03-26 10:12:29 +01:00 committed by GitHub
commit 40abfc046e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -64,6 +64,7 @@ const ToolTipMenu = (props, ref) => {
) : (
<ContextMenuView
ref={ref}
internalCleanupMode="viewController"
onPressMenuItem={({ nativeEvent }) => {
props.onPressMenuItem(nativeEvent.actionKey);
}}