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])
|
}, [store, onClose, graphemeLength, gallery])
|
||||||
// android back button
|
// android back button
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
|
if (!isAndroid) {
|
||||||
|
return
|
||||||
|
}
|
||||||
const backHandler = BackHandler.addEventListener(
|
const backHandler = BackHandler.addEventListener(
|
||||||
'hardwareBackPress',
|
'hardwareBackPress',
|
||||||
() => {
|
() => {
|
||||||
|
|
Loading…
Reference in New Issue