11# react-native-graphql-transformer
2+
23[ ![ All Contributors] ( https://img.shields.io/badge/all_contributors-1-orange.svg?style=flat-square )] ( #contributors )
34
45Seamlessly use GraphQL files with react-native >= 0.45
56
67## Foreword
78
89This package is inspired by the
9- [ react-native-typescript-transform] ( https://github.com/ds300/@bam.tech/ react-native-graphql -transformer )
10+ [ react-native-typescript-transform] ( https://github.com/ds300/react-native-typescript -transformer )
1011repository.
1112
1213## Goal
@@ -30,7 +31,7 @@ query PostListItemQuery($id: ID) {
3031
3132### Step 1: Install
3233
33- yarn add -D @bam.tech/ react-native-graphql-transformer
34+ yarn add -D react-native-graphql-transformer
3435
3536### Step 2: Configure the react native packager
3637
@@ -39,28 +40,31 @@ Add this to your rn-cli.config.js (make one if you don't have one already):
3940``` js
4041module .exports = {
4142 getTransformModulePath () {
42- return require .resolve (" @bam.tech/ react-native-graphql-transformer" );
43+ return require .resolve (' react-native-graphql-transformer' );
4344 },
4445 getSourceExts () {
45- return [" gql" , " graphql" ];
46+ return [' gql' , ' graphql' ];
4647 }
4748};
4849```
4950
5051If you need to run the packager directly from the command line, run the
5152following
5253
53- react-native start --transformer node_modules/@bam.tech/ react-native-graphql-transformer/index.js --sourceExts gql,graphql
54+ react-native start --transformer node_modules/react-native-graphql-transformer/index.js --sourceExts gql,graphql
5455
5556### Step 3: Write GraphQL code!
5657
5758## Contributors
5859
5960<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->
61+
6062<!-- prettier-ignore -->
6163| [ <img src =" https://avatars1.githubusercontent.com/u/16262904?v=4 " width =" 100px; " /><br /><sub ><b >Thomas Pucci</b ></sub >] ( https://github.com/tpucci ) <br />[ 💻] ( https://github.com/bamlab/react-native-graphql-transformer/commits?author=tpucci " Code ") [ 📖] ( https://github.com/bamlab/react-native-graphql-transformer/commits?author=tpucci " Documentation ") [ 💡] ( #example-tpucci " Examples ") |
6264| :---: |
65+
6366<!-- ALL-CONTRIBUTORS-LIST:END -->
67+
6468## License
6569
6670MIT
0 commit comments