Skip to content

Instantly share code, notes, and snippets.

@nikolal
nikolal / gist:bb667b0948977f56ba10718c81e936a5
Created January 18, 2017 16:56
Copy this file instead of your: node_module/react-native-maps/android/build.gradle
// Top-level build file where you can add configuration options common to all sub-projects/modules.
apply plugin: 'com.android.library'
apply from: 'gradle-maven-push.gradle'
buildscript {
repositories {
mavenLocal()
jcenter()
maven {
// NOT WORKING EXAMPLE
export class SportunityPageRoute extends Relay.Route {
static routeName = 'SportunityPageRoute';
static queries = {
all_sportunities: Component => Relay.QL`
query {
viewer {
// working example
export class NewActivityRoute extends Relay.Route {
static routeName = 'NewActivityRoute';
static queries = {
all_sports: Component => Relay.QL`
query {
viewer {
${Component.getFragment('all_sports')}
}