{"id":19654795,"url":"https://github.com/react-brasil/reactconfbr-app","last_synced_at":"2025-04-28T17:32:25.208Z","repository":{"id":56620150,"uuid":"86372291","full_name":"react-brasil/reactconfbr-app","owner":"react-brasil","description":"React Conf BR App built with create-react-native-app","archived":false,"fork":false,"pushed_at":"2019-02-14T16:42:13.000Z","size":1560,"stargazers_count":81,"open_issues_count":18,"forks_count":14,"subscribers_count":19,"default_branch":"master","last_synced_at":"2025-04-26T05:24:09.071Z","etag":null,"topics":["create-react-native-app","expo","react","react-native","reactconf","reactconfbr"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/react-brasil.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-03-27T18:50:58.000Z","updated_at":"2025-03-15T23:20:33.000Z","dependencies_parsed_at":"2022-08-15T22:01:13.358Z","dependency_job_id":null,"html_url":"https://github.com/react-brasil/reactconfbr-app","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/react-brasil%2Freactconfbr-app","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/react-brasil%2Freactconfbr-app/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/react-brasil%2Freactconfbr-app/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/react-brasil%2Freactconfbr-app/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/react-brasil","download_url":"https://codeload.github.com/react-brasil/reactconfbr-app/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251355621,"owners_count":21576386,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["create-react-native-app","expo","react","react-native","reactconf","reactconfbr"],"created_at":"2024-11-11T15:18:25.840Z","updated_at":"2025-04-28T17:32:24.686Z","avatar_url":"https://github.com/react-brasil.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# React Native + React-Navigation + Relay Modern\n\nThis is a sample repository that shows how to integrate React Native with [ReactNavigation](https://github.com/react-community/react-navigation) and [Relay Modern](https://facebook.github.io/relay/).\n\nFor the Relay-Classic Version see this [branch](https://github.com/sibelius/ReactNavigationRelayModern/tree/relay-classic) \n\nIt is connecting to this boilerplate code [graphql-dataloader-boilerplate](https://github.com/entria/graphql-dataloader-boilerplate)\n\n![alt tag](./demo/demo.gif)\n\n## Description\n- `data/` contains schema(.json/.graphql) of your GraphQL server. It will be used by Relay to compile your *graphql* queries to code\n- `yarn relay` or `yarn relay:watch` are used to convert *graphql* literals into generated files. The second command watch changes when `data/` files are udpated\n\n[`.babelrc`](.babelrc) for Relay Modern\n```json\n{\n  \"plugins\": [\n    [\"relay\", {\"schema\": \"data/schema.json\"}]\n  ],\n}\n```\n\n### Relay Environment\nThe file [src/createRelayEnvironment.js](src/createRelayEnvironment.js) creates a Relay Environment and a Network instance that configures Relay with a function to fetch queries from the remote server\n\n### ReactNavigation + Relay Modern\n1. You should use a Relay Container such as *[FragmentContainer](https://facebook.github.io/relay/docs/fragment-container.html)*, *[PaginationContainer](https://facebook.github.io/relay/docs/pagination-container.html)* or others in any component that will be `pushed` into a `StackNavigation`\n   - For instance, check [UserList#createPaginationContainer](./src/UserList.js#L111)\n\n- Pushing a route that uses Relay and depends on a parameter [UserList#navigate](./src/UserList.js#L88)\n\n- Define that your route will need a parameter from react-navigation like these [UserDetail#query](./src/UserDetail.js#L57)\n- You also need to define it inside `variables` [UserDetail#variables](./src/UserDetail.js#L63)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freact-brasil%2Freactconfbr-app","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Freact-brasil%2Freactconfbr-app","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freact-brasil%2Freactconfbr-app/lists"}