2016-11-01 18:38:43 +00:00
|
|
|
// Copyright 2004-present Facebook. All Rights Reserved.
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2017-06-23 23:49:55 +00:00
|
|
|
#include <cxxreact/JSBigString.h>
|
|
|
|
#include <jschelpers/JavaScriptCore.h>
|
2016-11-01 18:38:43 +00:00
|
|
|
#include <jschelpers/Value.h>
|
|
|
|
|
|
|
|
namespace facebook {
|
|
|
|
namespace react {
|
|
|
|
|
2016-11-18 14:25:29 +00:00
|
|
|
String jsStringFromBigString(JSContextRef ctx, const JSBigString& bigstr);
|
2016-11-01 18:38:43 +00:00
|
|
|
|
2017-09-21 15:34:41 +00:00
|
|
|
/**
|
|
|
|
* 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);
|
|
|
|
|
2016-11-01 18:38:43 +00:00
|
|
|
}
|
|
|
|
}
|