Skip to content

Commit

Permalink
fix: variable typo minViewportHeight and styling
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0trpietruszewski committed Aug 7, 2020
1 parent b585a6a commit 756ea48
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/components/ScrollableTabView/ScrollableTabView.js
Expand Up @@ -92,16 +92,17 @@ class ScrollableTabView extends React.Component {
this.children().map((child, idx) => {
const key = this.makeSceneKey(child, idx)
const { currentPage, containerWidth, sceneKeys } = this.state
const {minViewportHeight } = this.props
const { minScrollHeight } = this.props

return (
<SceneComponent
key={child.key}
shouldUpdated={this.shouldRenderSceneKey(idx, currentPage)}
/* eslint-disable-next-line react-native/no-inline-styles */
style={{
width: containerWidth,
minHeight: minViewportHeight,
maxHeight: idx === currentPage ? null : minViewportHeight
minHeight: minScrollHeight,
maxHeight: idx === currentPage ? null : minScrollHeight
}}
>
{this.keyExists(sceneKeys, key) ? child : null}
Expand Down

0 comments on commit 756ea48

Please sign in to comment.