fix: Remove extra bottom padding on Android (#2915)
This commit is contained in:
committed by
GitHub
parent
74923a1f6b
commit
c52030a525
@@ -14,9 +14,9 @@ export const useAvailableSafeAreaPadding = () => {
|
||||
const [isKeyboardVisible, setIsKeyboardVisible] = useState(false)
|
||||
useEffect(() => {
|
||||
return application.addNativeMobileEventListener((event) => {
|
||||
if (event === ReactNativeToWebEvent.KeyboardWillShow) {
|
||||
if (event === ReactNativeToWebEvent.KeyboardWillShow || event === ReactNativeToWebEvent.KeyboardDidShow) {
|
||||
setIsKeyboardVisible(true)
|
||||
} else if (event === ReactNativeToWebEvent.KeyboardWillHide) {
|
||||
} else if (event === ReactNativeToWebEvent.KeyboardWillHide || event === ReactNativeToWebEvent.KeyboardDidHide) {
|
||||
setIsKeyboardVisible(false)
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user