forked from Abdulrahman-Khalid/nabd-react-native
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
22 lines (19 loc) · 911 Bytes
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import { AppRegistry, ToastAndroid, YellowBox } from 'react-native';
import axios from 'axios';
import App from './src/App';
import { name as appName } from './app.json';
import Config from 'react-native-config';
YellowBox.ignoreWarnings([
'Warning: componentWillMount is deprecated',
'Warning: componentWillUpdate is deprecated',
'Setting a timer for a long period',
'Unrecognized WebSocket connection option(s) `agent`, `perMessageDeflate`, `pfx`, `key`, `passphrase`, `cert`, `ca`, `ciphers`, `rejectUnauthorized`. Did you mean to put these under `headers`?',
'Warning: componentWillReceiveProps is deprecated',
'Module RCTImageLoader requires'
]);
console.disableYellowBox = true;
axios.defaults.baseURL = Config.API_URL;
// axios.defaults.baseURL = 'http://cbbe9b25.ngrok.io/api/';
axios.defaults.timeout = 5000;
global.deepLinking = true;
AppRegistry.registerComponent(appName, () => App);