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.
Why does the getRowTitle() method take the userInfo object? It's not being used at all.
Thanks
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 :)
For anyone who may have missed the Profile route:
this.props.navigator.push({
component: Profile,
title: 'Profile Page',
passProps: {userInfo: this.props.userInfo}
})
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
If you're getting "Can't find variable: Profile," you'll need to require the Profile file on Dashboard.js.
var Profile = require('./Profile');
Thanks! Definitely missed this
Thanks! Definitely missed this
there's no need for the userInfo parameter in the getRowTitle function