Skip to content

Commit

Permalink
fix(rn): console.error crash in prod
Browse files Browse the repository at this point in the history
Signed-off-by: Godefroy Ponsinet <godefroy.ponsinet@outlook.com>
  • Loading branch information
90dy committed Sep 21, 2018
1 parent 732274a commit 3fbada7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions client/react-native/common/index.js
@@ -1,8 +1,14 @@
/* eslint-disable */
if (!__DEV__) {
console.error = console.warn
}

import 'babel-polyfill'
import React from 'react'
import ReactDOM from 'react-dom'
import { NativeModules, Platform, AppRegistry } from 'react-native'
import App from './components/App'
/* eslint-enable */

if (Platform.OS === 'web') {
NativeModules.CoreModule = {
Expand Down

0 comments on commit 3fbada7

Please sign in to comment.