forked from jgcmarins/react-native-relay-graphql-example
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.js
More file actions
35 lines (31 loc) · 994 Bytes
/
App.js
File metadata and controls
35 lines (31 loc) · 994 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
import React from 'react';
import { StackNavigator } from 'react-navigation';
import PeopleListNavigator from './src/navigators/PeopleListNavigator';
import PersonDetailNavigator from './src/navigators/PersonDetailNavigator';
// Fix for Android - It wasn't fetching the data properly when NOT in debug mode
// https://github.com/facebook/relay/issues/1704
(function(PolyfillSet) {
if (!PolyfillSet) {
return;
}
var testSet = new PolyfillSet();
if (testSet.size === undefined) {
if (testSet._c.size === 0) {
Object.defineProperty(PolyfillSet.prototype, 'size', {
get: function() {
return this._c.size;
},
});
}
}
})(require('babel-runtime/core-js/set').default);
const SWCharactersApp = StackNavigator(
{
PeopleListNavigator: { screen: PeopleListNavigator },
PersonDetailNavigator: { screen: PersonDetailNavigator },
},
{
initialRouteName: 'PeopleListNavigator',
},
);
export default () => <SWCharactersApp />;