Created
November 9, 2016 22:19
-
-
Save tonysherbondy/ea8003d76b5c1aa75641c950d5ca88bb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 2.2 | |
import { AppRegistry } from 'react-native' | |
import App from './App.react' | |
AppRegistry.registerComponent('YOUR_PROJECT_NAME', () => App) | |
// 4.2 | |
propTypes = { | |
post: PropTypes.shape({ | |
imageURL: PropTypes.string.isRequired, | |
caption: PropTypes.string.isRequired, | |
}) | |
} | |
// 4.3 | |
const rows = json.response.posts.map(post => ({ | |
caption: post.caption, | |
imageURL: post.photos[0].original_size.url, | |
})) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment