The ability to reply to discussions is limited to PRO members. Want to join in the discussion? Click here to subscribe now.

Create a Scrollable React Native Component with ScrollView

Create a Scrollable React Native Component with ScrollView

7:20
To show a list of unchanging data in React Native you can use the scroll view component. In this lesson, we'll `map` through the data we got back from the Github API, and fill complete ScrollView component for the user profile.
Watch this lesson now
Avatar
egghead.io

To show a list of unchanging data in React Native you can use the scroll view component. In this lesson, we'll map through the data we got back from the Github API, and fill complete ScrollView component for the user profile.

Avatar
JP

Why does the getRowTitle() method take the userInfo object? It's not being used at all.

Thanks

Avatar
Jason

FYI, it seems like part of this video is missing. 4:40 has no return
statement
but it's there at 4:51. Also, Dashboard's goToProfile
method
wasn't completed on camera.

But hey, it was a good test to do on my own :)

Avatar
nader dabit

For anyone who may have missed the Profile route:
this.props.navigator.push({
component: Profile,
title: 'Profile Page',
passProps: {userInfo: this.props.userInfo}
})

Avatar
Marty

For anyone who may have missed the Profile route:
this.props.navigator.push({
component: Profile,
title: 'Profile Page',
passProps: {userInfo: this.props.userInfo}
})

Which goes on Dashboard.js

In reply to nader dabit
Avatar
Marty

If you're getting "Can't find variable: Profile," you'll need to require the Profile file on Dashboard.js.

var Profile = require('./Profile');

In reply to nader dabit
Avatar
Jaclyn

Thanks! Definitely missed this

In reply to Marty
Avatar
Jaclyn

Thanks! Definitely missed this

In reply to Marty
Avatar
Florian Vallen

there's no need for the userInfo parameter in the getRowTitle function

HEY, QUICK QUESTION!
Joel's Head
Why are we asking?