joeferraro/react-native-env

" Invalid directory /Users/node_modules/NativeModules"

nicholasalanbrown opened this issue · 5 comments

Using React Native 0.14.0, I get the following error:

2015-11-06 16:37:34.882 [error][tid:main][RCTBatchedBridge.m:436] Error while loading: Unable to resolve module NativeModules from /Users/nbrown/Source/<projectname>/react-native/node_modules/react-native-env/index.js: Invalid directory /Users/node_modules/NativeModules

Does this library need to be updated?

+1

+1

@RyGuyM Fixed in my PR, quick & simple change

@mtford90 i have the same inssue but whit other package, like crypto (tryng to use jwt-simple)
do you have a solution?

@Casy

Replace all require('NativeModules') with require('react-native').NativeModules in the codebase.