verdnatura-chat/index.js

38 lines
1.1 KiB
JavaScript

import 'react-native-gesture-handler';
import 'react-native-console-time-polyfill';
import { AppRegistry } from 'react-native';
import { connectToDevTools } from 'react-devtools-core';
import { name as appName, share as shareName } from './app.json';
if (__DEV__) {
require('./app/ReactotronConfig');
connectToDevTools({
host: 'localhost',
port: 8097
});
} else {
console.log = () => {};
console.time = () => {};
console.timeLog = () => {};
console.timeEnd = () => {};
console.warn = () => {};
console.count = () => {};
console.countReset = () => {};
console.error = () => {};
console.info = () => {};
}
AppRegistry.registerComponent(appName, () => require('./app/index').default);
AppRegistry.registerComponent(shareName, () => require('./app/share').default);
// For storybook, comment everything above and uncomment below
// 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);