Skip to content

Instantly share code, notes, and snippets.

@haruelrovix
Last active December 13, 2018 01:13
Show Gist options
  • Save haruelrovix/1c3affbfd585c3b8acfc1c156164fd1f to your computer and use it in GitHub Desktop.
Save haruelrovix/1c3affbfd585c3b8acfc1c156164fd1f to your computer and use it in GitHub Desktop.
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