File tree 2 files changed +8
-3
lines changed
2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -6,11 +6,13 @@ const ScreenWrapper = props => (
6
6
< BaseScreenWrapper
7
7
// eslint-disable-next-line react/jsx-props-no-spreading
8
8
{ ...props }
9
- keyboardAvoidingViewBehavior = "height"
10
9
>
11
10
{ props . children }
12
11
</ BaseScreenWrapper >
13
12
) ;
13
+
14
+ defaultProps . keyboardAvoidingViewBehavior = 'height' ;
15
+
14
16
ScreenWrapper . propTypes = propTypes ;
15
17
ScreenWrapper . defaultProps = defaultProps ;
16
18
Original file line number Diff line number Diff line change 1
1
import React from 'react' ;
2
2
import { withOnyx } from 'react-native-onyx' ;
3
3
import PropTypes from 'prop-types' ;
4
- import { Keyboard , View } from 'react-native' ;
4
+ import { Keyboard , Platform , View } from 'react-native' ;
5
5
import lodashGet from 'lodash/get' ;
6
6
import _ from 'underscore' ;
7
7
import lodashFindLast from 'lodash/findLast' ;
@@ -227,7 +227,10 @@ class ReportScreen extends React.Component {
227
227
reportClosedAction = lodashFindLast ( this . props . reportActions , action => action . actionName === CONST . REPORT . ACTIONS . TYPE . CLOSED ) ;
228
228
}
229
229
return (
230
- < ScreenWrapper style = { [ styles . appContent , styles . flex1 , { marginTop : this . state . viewportOffsetTop } ] } >
230
+ < ScreenWrapper
231
+ style = { [ styles . appContent , styles . flex1 , { marginTop : this . state . viewportOffsetTop } ] }
232
+ keyboardAvoidingViewBehavior = { Platform . OS === 'android' ? '' : 'padding' }
233
+ >
231
234
< HeaderView
232
235
reportID = { reportID }
233
236
onNavigationMenuButtonClicked = { ( ) => Navigation . navigate ( ROUTES . HOME ) }
You can’t perform that action at this time.
0 commit comments