diff --git a/packages/exampleReactNative/android/app/build.gradle b/packages/exampleReactNative/android/app/build.gradle index 9a239fd1..953f218a 100755 --- a/packages/exampleReactNative/android/app/build.gradle +++ b/packages/exampleReactNative/android/app/build.gradle @@ -77,6 +77,7 @@ import com.android.build.OutputFile project.ext.react = [ entryFile: "index.js", + nodeExecutableAndArgs : ["node","--max_old_space_size=8192"], enableHermes: false, // clean and rebuild if changing ] diff --git a/packages/exampleReactNative/ios/exampleReactNative.xcodeproj/project.pbxproj b/packages/exampleReactNative/ios/exampleReactNative.xcodeproj/project.pbxproj index d54d2f91..1453a378 100644 --- a/packages/exampleReactNative/ios/exampleReactNative.xcodeproj/project.pbxproj +++ b/packages/exampleReactNative/ios/exampleReactNative.xcodeproj/project.pbxproj @@ -161,7 +161,6 @@ 7DE1F6B3025518D718441D67 /* Pods-exampleReactNativeTests.debug.xcconfig */, FD82CB3C48B719DCC61D04D7 /* Pods-exampleReactNativeTests.release.xcconfig */, ); - name = Pods; path = Pods; sourceTree = ""; }; @@ -308,6 +307,7 @@ developmentRegion = English; hasScannedForEncodings = 0; knownRegions = ( + English, en, Base, ); @@ -371,7 +371,7 @@ ); runOnlyForDeploymentPostprocessing = 0; shellPath = /bin/sh; - shellScript = "export NODE_BINARY=node\n../node_modules/react-native/scripts/react-native-xcode.sh"; + shellScript = "export NODE_BINARY=node\nexport NODE_ARGS=--max_old_space_size=8192\n../node_modules/react-native/scripts/react-native-xcode.sh\n"; }; 1F39ED716AE6354C4F187983 /* [CP] Check Pods Manifest.lock */ = { isa = PBXShellScriptBuildPhase; diff --git a/packages/exampleReactNative/nodeGlobalsShim.js b/packages/exampleReactNative/nodeGlobalsShim.js index aba329ce..5e718e07 100644 --- a/packages/exampleReactNative/nodeGlobalsShim.js +++ b/packages/exampleReactNative/nodeGlobalsShim.js @@ -2,7 +2,7 @@ // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. /* eslint-disable no-global-assign */ - +import 'fast-text-encoding'; import AsyncStorage from '@react-native-community/async-storage'; class Storage { diff --git a/packages/exampleReactNative/package.json b/packages/exampleReactNative/package.json index 50b45492..1b7845d8 100644 --- a/packages/exampleReactNative/package.json +++ b/packages/exampleReactNative/package.json @@ -34,7 +34,8 @@ "react-native": "^0.61.4", "react-native-crypto": "^2.2.0", "react-native-randombytes": "^3.5.3", - "stream-http": "^3.1.0" + "stream-http": "^3.1.0", + "fast-text-encoding": "^1.0.0" }, "devDependencies": { "@babel/core": "^7.7.7",