@@ -490,21 +490,22 @@ export default class ScrollableTabView extends React.Component {
490490 }
491491
492492 _renderItem ( { item, index } ) {
493+ const { enableCachePage, fillScreen, fixedTabs, mappingProps } = this . props ;
493494 const screenHeight = this . _getScreenHeight ( ) ;
494495 return (
495- ( this . props . enableCachePage ? this . props . enableCachePage : this . state . checkedIndex == index ) &&
496+ ( enableCachePage ? enableCachePage : this . state . checkedIndex == index ) &&
496497 ( this . getCurrentRef ( index ) || this . getCurrentRef ( index ) == undefined ) &&
497498 this . _getLazyIndexs ( index ) && (
498499 < View
499500 style = { [
500501 { flex : 1 } ,
501- this . props . enableCachePage && this . state . checkedIndex != index && { maxHeight : screenHeight } ,
502- this . props . enableCachePage && this . state . checkedIndex == index && this . props . fillScreen && { minHeight : screenHeight } ,
503- this . props . enableCachePage && this . state . checkedIndex == index && this . props . fixedTabs && { minHeight : this . _getMaximumScreenHeight ( ) } ,
504- ! this . props . enableCachePage && this . state . checkedIndex == index && { minHeight : screenHeight }
502+ enableCachePage && this . state . checkedIndex != index && { maxHeight : screenHeight } ,
503+ enableCachePage && this . state . checkedIndex == index && fillScreen && { minHeight : screenHeight } ,
504+ enableCachePage && this . state . checkedIndex == index && fixedTabs && { minHeight : this . _getMaximumScreenHeight ( ) } ,
505+ ! enableCachePage && this . state . checkedIndex == index && { minHeight : screenHeight }
505506 ] }
506507 >
507- < item . screen { ...this . _getProps ( this . props . mappingProps ) } { ...( item . toProps || { } ) } />
508+ < item . screen { ...this . _getProps ( mappingProps ) } { ...( item . toProps || { } ) } />
508509 </ View >
509510 )
510511 ) ;
0 commit comments