Allow "nativeRequire" to accept "bundleId" and "moduleId" values

Differential Revision: D5850960

fbshipit-source-id: 4d7aa0ed7542181861649a2089d90c3cf98723e9
This commit is contained in:
Alex Dvornikov
2017-09-21 08:34:41 -07:00
committed by Facebook Github Bot
parent b9be9a01a9
commit da2ea2601b
3 changed files with 37 additions and 10 deletions

View File

@@ -11,5 +11,13 @@ namespace react {
String jsStringFromBigString(JSContextRef ctx, const JSBigString& bigstr);
/**
* Parses "nativeRequire" parameters
* and returns pair of "bundle id" & "module id" values
*/
std::pair<uint32_t, uint32_t> parseNativeRequireParameters(const JSGlobalContextRef& context,
const JSValueRef arguments[],
size_t argumentCount);
}
}