2019-09-26 14:59:27 +00:00
|
|
|
import 'react-native-gesture-handler';
|
2019-04-17 18:57:46 +00:00
|
|
|
import 'react-native-console-time-polyfill';
|
2019-03-12 16:23:06 +00:00
|
|
|
import { AppRegistry } from 'react-native';
|
2022-06-13 17:40:36 +00:00
|
|
|
import TrackPlayer from 'react-native-track-player';
|
2021-09-13 20:41:05 +00:00
|
|
|
|
2019-07-18 17:44:02 +00:00
|
|
|
import { name as appName, share as shareName } from './app.json';
|
2022-06-13 17:40:36 +00:00
|
|
|
import { playbackService } from './app/containers/message/Components/Audio/services';
|
2019-03-12 16:23:06 +00:00
|
|
|
|
2019-08-13 13:03:46 +00:00
|
|
|
if (__DEV__) {
|
|
|
|
require('./app/ReactotronConfig');
|
2019-10-02 12:27:40 +00:00
|
|
|
} else {
|
|
|
|
console.log = () => {};
|
|
|
|
console.time = () => {};
|
|
|
|
console.timeLog = () => {};
|
|
|
|
console.timeEnd = () => {};
|
|
|
|
console.warn = () => {};
|
|
|
|
console.count = () => {};
|
|
|
|
console.countReset = () => {};
|
|
|
|
console.error = () => {};
|
|
|
|
console.info = () => {};
|
2019-08-13 13:03:46 +00:00
|
|
|
}
|
|
|
|
|
2019-07-18 17:44:02 +00:00
|
|
|
AppRegistry.registerComponent(appName, () => require('./app/index').default);
|
|
|
|
AppRegistry.registerComponent(shareName, () => require('./app/share').default);
|
2019-03-12 16:23:06 +00:00
|
|
|
|
2022-06-13 17:40:36 +00:00
|
|
|
TrackPlayer.registerPlaybackService(() => playbackService);
|
|
|
|
|
2019-03-12 16:23:06 +00:00
|
|
|
// For storybook, comment everything above and uncomment below
|
2022-08-19 19:53:40 +00:00
|
|
|
// import 'react-native-gesture-handler';
|
|
|
|
// import 'react-native-console-time-polyfill';
|
|
|
|
// import { AppRegistry } from 'react-native';
|
|
|
|
// import { name as appName } from './app.json';
|
|
|
|
|
|
|
|
// require('./app/ReactotronConfig');
|
|
|
|
|
|
|
|
// AppRegistry.registerComponent(appName, () => require('./.storybook/index').default);
|