|
@@ -3,10 +3,8 @@
|
3
|
3
|
import { useHeaderHeight } from '@react-navigation/stack';
|
4
|
4
|
import React, { useEffect, useState } from 'react';
|
5
|
5
|
import {
|
6
|
|
- Keyboard,
|
7
|
6
|
KeyboardAvoidingView,
|
8
|
|
- Platform,
|
9
|
|
- TouchableWithoutFeedback
|
|
7
|
+ Platform
|
10
|
8
|
} from 'react-native';
|
11
|
9
|
import { useSafeAreaInsets } from 'react-native-safe-area-context';
|
12
|
10
|
|
|
@@ -60,22 +58,18 @@ const JitsiKeyboardAvoidingView = (
|
60
|
58
|
const androidVerticalOffset = headerHeight;
|
61
|
59
|
|
62
|
60
|
return (
|
63
|
|
- <TouchableWithoutFeedback
|
64
|
|
- /* eslint-disable-next-line react/jsx-handler-names */
|
65
|
|
- onPress = { Keyboard.dismiss }>
|
66
|
|
- <KeyboardAvoidingView
|
67
|
|
- behavior = { Platform.OS === 'ios' ? 'padding' : 'height' }
|
68
|
|
- contentContainerStyle = { contentContainerStyle }
|
69
|
|
- enabled = { true }
|
70
|
|
- keyboardVerticalOffset = {
|
71
|
|
- Platform.OS === 'ios'
|
72
|
|
- ? iosVerticalOffset
|
73
|
|
- : androidVerticalOffset
|
74
|
|
- }
|
75
|
|
- style = { style }>
|
76
|
|
- { children }
|
77
|
|
- </KeyboardAvoidingView>
|
78
|
|
- </TouchableWithoutFeedback>
|
|
61
|
+ <KeyboardAvoidingView
|
|
62
|
+ behavior = { Platform.OS === 'ios' ? 'padding' : 'height' }
|
|
63
|
+ contentContainerStyle = { contentContainerStyle }
|
|
64
|
+ enabled = { true }
|
|
65
|
+ keyboardVerticalOffset = {
|
|
66
|
+ Platform.OS === 'ios'
|
|
67
|
+ ? iosVerticalOffset
|
|
68
|
+ : androidVerticalOffset
|
|
69
|
+ }
|
|
70
|
+ style = { style }>
|
|
71
|
+ { children }
|
|
72
|
+ </KeyboardAvoidingView>
|
79
|
73
|
);
|
80
|
74
|
};
|
81
|
75
|
|