Commit 80a3c2b Sankhadeep
committed
1 parent 83bb733 commit 80a3c2b Copy full SHA for 80a3c2b
File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 2
2
'use strict' ;
3
3
4
4
import React from 'react' ;
5
- import { View , Image } from 'react-native' ;
5
+ import { View , Image , ScrollView } from 'react-native' ;
6
6
import ViewNB from './View' ;
7
7
import Header from './Header' ;
8
8
import Content from './Content' ;
@@ -36,15 +36,15 @@ export default class Container extends NativeBaseComponent {
36
36
if ( Array . isArray ( this . props . children ) ) {
37
37
38
38
return _ . filter ( this . props . children , function ( item ) {
39
- if ( item && ( item . type == ViewNB || item . type == Content || item . type == Image || item . type == View ) ) {
39
+ if ( item && ( item . type == ViewNB || item . type == Content || item . type == Image || item . type == View || item . type == ScrollView ) ) {
40
40
41
41
return true ;
42
42
}
43
43
} ) ;
44
44
}
45
45
46
46
else {
47
- if ( this . props . children && ( this . props . children . type == Content || this . props . children . type == ViewNB || this . props . children . type == View || this . props . children . type == Image ) ) {
47
+ if ( this . props . children && ( this . props . children . type == Content || this . props . children . type == ViewNB || this . props . children . type == View || this . props . children . type == Image || this . props . children . type == ScrollView ) ) {
48
48
return this . props . children ;
49
49
}
50
50
}
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ export default class ListItemNB extends NativeBaseComponent {
33
33
return {
34
34
listItem : {
35
35
borderBottomWidth : this . getTheme ( ) . borderWidth ,
36
- height : ( this . inputPresent ( ) ) ? undefined : this . getTheme ( ) . listItemHeight ,
36
+ // height: (this.inputPresent()) ? undefined: this.getTheme().listItemHeight,
37
37
marginLeft : 15 ,
38
38
padding : this . inputPresent ( ) ? 0 : this . getTheme ( ) . listItemPadding ,
39
39
paddingLeft : 2 ,
You can’t perform that action at this time.
0 commit comments