-
Notifications
You must be signed in to change notification settings - Fork 4
/
App.js
35 lines (31 loc) · 1006 Bytes
/
App.js
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 FightersListNavigator from './src/navigators/FightersListNavigator';
import FighterDetailNavigator from './src/navigators/FighterDetailNavigator';
// 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 UFCFightersApp = StackNavigator(
{
FightersListNavigator: { screen: FightersListNavigator },
FighterDetailNavigator: { screen: FighterDetailNavigator },
},
{
initialRouteName: 'FightersListNavigator',
},
);
export default () => <UFCFightersApp />;