diff options
Diffstat (limited to 'src/view/shell/index.tsx')
-rw-r--r-- | src/view/shell/index.tsx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/view/shell/index.tsx b/src/view/shell/index.tsx index e313450f1..3119715e9 100644 --- a/src/view/shell/index.tsx +++ b/src/view/shell/index.tsx @@ -44,7 +44,10 @@ const ShellInner = observer(function ShellInnerImpl() { ) const canGoBack = useNavigationState(state => !isStateAtTabRoot(state)) React.useEffect(() => { - backHandler.init(store) + const listener = backHandler.init(store) + return () => { + listener() + } }, [store]) return ( @@ -68,7 +71,6 @@ const ShellInner = observer(function ShellInnerImpl() { </View> <Composer active={store.shell.isComposerActive} - onClose={() => store.shell.closeComposer()} winHeight={winDim.height} replyTo={store.shell.composerOpts?.replyTo} onPost={store.shell.composerOpts?.onPost} |