Skip to content

Commit

Permalink
fix: reverted removed commented code
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0trpietruszewski committed Aug 17, 2020
1 parent af9268e commit 0247a0a
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions example/src/screens/CardScreen/CardScreen.js
Expand Up @@ -183,6 +183,14 @@ class CardScreen extends React.Component {
</View>
)

renderContent = user => (
<View style={styles.content}>
{user.cards.map((data, i, arr) => (
<QuizCard data={data} num={i} key={data.question} cardsAmount={arr.length} />
))}
</View>
)

stickyHeaderEndReached = () => {
this.setState({
stickyHeaderEndReached: true,
Expand Down Expand Up @@ -215,6 +223,7 @@ class CardScreen extends React.Component {
background={this.renderBackground(user)}
onEndReached={this.stickyHeaderEndReached}
onTopReached={this.stickyHeaderTopReached}>
{/* {this.renderContent(user)} */}
{this.renderFlatlistContent(user)}
</StickyParallaxHeader>
</React.Fragment>
Expand Down

0 comments on commit 0247a0a

Please sign in to comment.