Skip to content

Commit

Permalink
minor fix to example
Browse files Browse the repository at this point in the history
  • Loading branch information
fabOnReact committed Oct 25, 2022
1 parent 0fe1e3e commit 4213491
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/rn-tester/js/examples/Modal/ModalPresentation.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@ function ModalPresentation() {
const [action, setAction] = React.useState('None');
let ref = React.useRef(null);
const actions = Platform.OS === 'ios' ? iOSActions : noniOSActions;
let accessibilityEventTimeout;
const onDismiss = () => {
setVisible(false);
setModalOpened(false);
Expand Down Expand Up @@ -114,7 +113,9 @@ function ModalPresentation() {
}

return () => {
if (timer) clearTimeout(timer);
if (timer) {
clearTimeout(timer);
}
};
}, [modalOpened]);

Expand Down

0 comments on commit 4213491

Please sign in to comment.