Skip to content

Commit 80a3c2b

Browse files
author
Sankhadeep
committed
Lisitem height removed && scrollView added to container
1 parent 83bb733 commit 80a3c2b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Components/Widgets/Container.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
'use strict';
33

44
import React from 'react';
5-
import {View, Image} from 'react-native';
5+
import {View, Image, ScrollView} from 'react-native';
66
import ViewNB from './View';
77
import Header from './Header';
88
import Content from './Content';
@@ -36,15 +36,15 @@ export default class Container extends NativeBaseComponent {
3636
if(Array.isArray(this.props.children)) {
3737

3838
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 )) {
4040

4141
return true;
4242
}
4343
});
4444
}
4545

4646
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)) {
4848
return this.props.children;
4949
}
5050
}

Components/Widgets/ListItem.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export default class ListItemNB extends NativeBaseComponent {
3333
return {
3434
listItem: {
3535
borderBottomWidth: this.getTheme().borderWidth,
36-
height: (this.inputPresent()) ? undefined: this.getTheme().listItemHeight,
36+
// height: (this.inputPresent()) ? undefined: this.getTheme().listItemHeight,
3737
marginLeft: 15,
3838
padding: this.inputPresent() ? 0 : this.getTheme().listItemPadding,
3939
paddingLeft: 2,

0 commit comments

Comments
 (0)