RNE x RNW: Add compose and fetch GitHub API
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