Only listen to back button on android (#1623)
parent
bd7db8af26
commit
b74a0e0fe2
|
@ -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',
|
||||
() => {
|
||||
|
|
Loading…
Reference in New Issue