File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -425,6 +425,12 @@ function KeyboardAwareHOC(
425
425
currentlyFocusedField
426
426
)
427
427
}
428
+ } else if ( Platform . OS === 'harmony' ) {
429
+ if ( textInputBottomPosition > keyboardPosition ) {
430
+ this . setState ( { keyboardSpace : keyboardPosition } , ( ) => {
431
+ this . scrollForExtraHeightOnAndroid ( textInputBottomPosition - keyboardPosition + totalExtraHeight )
432
+ } )
433
+ }
428
434
} else {
429
435
// On android, the system would scroll the text input just
430
436
// above the keyboard so we just neet to scroll the extra
@@ -534,7 +540,7 @@ function KeyboardAwareHOC(
534
540
render ( ) {
535
541
const { enableOnAndroid , contentContainerStyle , onScroll } = this . props
536
542
let newContentContainerStyle
537
- if ( Platform . OS === 'android' && enableOnAndroid ) {
543
+ if ( ( Platform . OS === 'android' && enableOnAndroid ) || Platform . OS === 'harmony' ) {
538
544
newContentContainerStyle = [ ] . concat ( contentContainerStyle ) . concat ( {
539
545
paddingBottom :
540
546
( ( contentContainerStyle || { } ) . paddingBottom || 0 ) +
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " react-native-keyboard-aware-scroll-view" ,
3
- "version" : " 0.9.5-0.0.1 " ,
3
+ "version" : " 0.9.5-0.0.2 " ,
4
4
"description" : " A React Native ScrollView component that resizes when the keyboard appears." ,
5
5
"main" : " index.js" ,
6
6
"types" : " index.d.ts" ,
You can’t perform that action at this time.
0 commit comments