Use require for NativeModules
Use require for NativeModules

Summary:
Not totally sure if this is the best way to handle this. In Venice if a native module is missing I try to log the name of the module, but I noticed that the error I was getting was getting this:

{F161460962}

Presumably this is because importing from NativeModules looks for `__esModule`, but NativeModules uses `module.export`. So it's trying to access that property on my cpp proxy object, which doesn't exist...? Changing TurboModuleProxy to use `require` seems to fix the problem.

Reviewed By: fkgozali

Differential Revision: D15787508

fbshipit-source-id: 4b9df4e3c179117999fe6de6363edbef427a8263

javache/react-native,hammerandchisel/react-native,facebook/react-native,hammerandchisel/react-native,janicduplessis/react-native,javache/react-native,myntra/react-native,hoangpham95/react-native,exponentjs/react-native,hoangpham95/react-native,hoangpham95/react-native,hammerandchisel/react-native,exponent/react-native,hoangpham95/react-native,pandiaraj44/react-native,exponent/react-native,hoangpham95/react-native,hoangpham95/react-native,myntra/react-native,facebook/react-native,javache/react-native,pandiaraj44/react-native,pandiaraj44/react-native,myntra/react-native,arthuralee/react-native,exponentjs/react-native,exponent/react-native,pandiaraj44/react-native,janicduplessis/react-native,myntra/react-native,myntra/react-native,hammerandchisel/react-native,myntra/react-native,exponentjs/react-native,exponentjs/react-native,hoangpham95/react-native,facebook/react-native,javache/react-native,hammerandchisel/react-native,exponentjs/react-native,pandiaraj44/react-native,facebook/react-native,javache/react-native,janicduplessis/react-native,myntra/react-native,exponentjs/react-native,exponent/react-native,arthuralee/react-native,pandiaraj44/react-native,pandiaraj44/react-native,exponent/react-native,arthuralee/react-native,facebook/react-native,janicduplessis/react-native,myntra/react-native,exponentjs/react-native,javache/react-native,janicduplessis/react-native,javache/react-native,exponent/react-native,facebook/react-native,javache/react-native,janicduplessis/react-native,exponent/react-native,javache/react-native,janicduplessis/react-native,janicduplessis/react-native,facebook/react-native,hammerandchisel/react-native,hammerandchisel/react-native,exponent/react-native,myntra/react-native,facebook/react-native,arthuralee/react-native,hoangpham95/react-native,hammerandchisel/react-native,pandiaraj44/react-native,facebook/react-native,exponentjs/react-native,arthuralee/react-native