Last active
December 13, 2018 01:13
-
-
Save haruelrovix/1c3affbfd585c3b8acfc1c156164fd1f to your computer and use it in GitHub Desktop.
RNE x RNW: Add compose and fetch GitHub API
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
import { compose } from 'redux'; | |
import fetch from 'fetch-hoc'; | |
... | |
export default compose( | |
withHeader({ title: 'Commits' }), | |
fetch('https://api.github.com/repos/react-native-training/react-native-elements/commits') | |
)(CommitList); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment