Last active
August 4, 2017 02:28
-
-
Save reyhansofian/fd3e2664432fd3db8fbf9df6ce15898b 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
@graphql(gql` | |
query($id: ID!) { | |
film(id: $id) { | |
title | |
openingCrawl | |
director | |
producers | |
releaseDate | |
} | |
} | |
`, { | |
options: (props) => ({ | |
variables: { | |
id: props.navigation.state.params.id, // navigation object comes from React Navigation | |
}, | |
}), | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment