Only listen to back button on android (#1623)
This commit is contained in:
@@ -131,6 +131,9 @@ export const ComposePost = observer(function ComposePost({
|
||||
}, [store, onClose, graphemeLength, gallery])
|
||||
// android back button
|
||||
useEffect(() => {
|
||||
if (!isAndroid) {
|
||||
return
|
||||
}
|
||||
const backHandler = BackHandler.addEventListener(
|
||||
'hardwareBackPress',
|
||||
() => {
|
||||
|
||||
Reference in New Issue
Block a user