This package has been deprecated

Author message:

Not maintained

@kiwicom/react-native-app-relay

0.0.1 • Public • Published

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
})

Readme

Keywords

none

Package Sidebar

Install

npm i @kiwicom/react-native-app-relay

Weekly Downloads

1

Version

0.0.1

License

none

Unpacked Size

17.1 kB

Total Files

12

Last publish

Collaborators

  • mvidalgarcia
  • dsil
  • jakubzaba
  • robincsl_kiwi
  • kiwicom.platform
  • dinodsaurus