Skip to content

Commit

Permalink
fix buffer issue in mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisnojima committed Nov 15, 2017
1 parent 1cdd98f commit 4b147b7
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions shared/app/globals.native.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
// @flow
/* eslint-disable no-native-reassign, no-global-assign, no-extend-native */
import 'core-js/es6/reflect' // required for babel-plugin-transform-builtin-extend in RN iOS and Android
import '../dev/user-timings'
import {isStoryBook} from '../constants/platform.native'
// DO NOT REORDER THIS LIST OF IMPORTS
require('core-js/es6/reflect') // required for babel-plugin-transform-builtin-extend in RN iOS and Android
// Needed for purepack
window.Buffer = require('buffer').Buffer
require('../dev/user-timings')
const {isStoryBook} = require('../constants/platform.native')

// __DEV__
// set by react-native to true if the app is being run in a simulator, false otherwise
Expand All @@ -23,9 +26,6 @@ if (typeof __SCREENSHOT__ === 'undefined') {
__SCREENSHOT__ = false
}

// Needed for purepack
window.Buffer = require('buffer').Buffer

// Native String.startswith() sometimes incorrectly returns false on Android!
// See https://github.com/facebook/react-native/issues/11370 for a report.
// $FlowIssue redefining startsWith
Expand Down

0 comments on commit 4b147b7

Please sign in to comment.