0.0.1 • Published 6 years ago

@kiwicom/react-native-app-relay v0.0.1

Weekly downloads
20
License
-
Repository
-
Last release
6 years ago

This package allows you to render Kiwi.com Frontend GraphQL queries and mutations.

<PublicApiRenderer
  query={graphql`...`}
  render={(propsFromRenderer: Object) => <Component />}
  cacheConfig={{
    force: true, // do not cache the request (default: false)
  }}
/>
<PrivateApiRenderer
  // same props as PublicApiRenderer + these:
  accessToken="..." // this means user is logged in
  render={<LoginComponent />}  // component to render if user not logged in
/>
commitMutation({
  // see config object: https://facebook.github.io/relay/docs/en/mutations.html
})