Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
android: fix NODE_PATH needed for rn-bridge
safeGetenv() was changed in nodejs/node@3f61940 so now on Android it's returning undefined. With NODE_PATH as undefined, then custom nodejs-mobile-react-native builtins such as don't get found by the cjs loader, which means rn-bridge isn't found. However, it seems like we can safely get NODE_PATH from process.env because NODE_PATH is explicitly overwritten by nodejs-mobile-react-native, so it's not possible that it would take other values by third parties.
- Loading branch information