Files
react-native/React/CoreModules
Peter Argany 448db78a88 Fix loading from Metro in Bridgeless mode (#29453)
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/29453

Problem Statement: A native module needs to call a function on `ReactInstance` (in this case `loadScript`). Typically, this is handled by the bridge.
Current Bridgeless Solution: Create a new protocol (in this case `RCTJSScriptLoaderModule`) which lets a block be passed in TM init to forward the method call to `ReactInstance`. This is the best thing I could think of right now.

Changelog:[Internal]

Reviewed By: RSNara

Differential Revision: D22512748

fbshipit-source-id: e6559279b6e299e17d1199407129ad3902c41e6b
2020-07-23 17:11:32 -07:00
..
2020-06-08 09:07:42 -07:00
2019-10-16 10:06:34 -07:00
2019-10-16 10:06:34 -07:00
2020-05-12 22:40:29 -07:00
2020-05-12 22:40:29 -07:00
2019-10-16 10:06:34 -07:00
2019-10-16 10:06:34 -07:00
2020-04-07 19:07:19 -07:00