-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Open
Labels
Description
Is there an existing issue for this?
- I have searched the existing issues
Explain what you did
useEffect(() => {
const backHandler = BackHandler.addEventListener(
'hardwareBackPress',
() => {
setVisibleDialog(false)
return false
}
)
return () => backHandler.remove()
}, [])
Expected behavior
When press Back button in my device, the overlay is hidden
Describe the bug
Cannot create addEventListener of BackHandler
Steps To Reproduce
- Create BackHandler listener
- render <Overlay fullScreen />Screenshots
No response
Your Environment
`npx @rneui/envinfo`
```
Output from `npx @rneui/envinfo` goes here.
```
Reactions are currently unavailable