Using GraphQL Inside a React Native App
Published in
1 min readDec 16, 2015
React Native is awesome. If you are trying to use GraphQL inside a React Native app, you can’t use Relay yet.
Therefore you had to connect to a GraphQL endpoint manually to fetch data.
But instead, you can simply use “Lokka” to interact with your GraphQL server.
First, you have to create a Lokka client like this:
Then query as you need:
Clone this repo to run the above app yourself.
Hope you’ll find this useful!