mirror of
https://github.com/status-im/react-native.git
synced 2025-01-09 09:12:02 +00:00
da2ea2601b
Differential Revision: D5850960 fbshipit-source-id: 4d7aa0ed7542181861649a2089d90c3cf98723e9
24 lines
663 B
C++
24 lines
663 B
C++
// Copyright 2004-present Facebook. All Rights Reserved.
|
|
|
|
#pragma once
|
|
|
|
#include <cxxreact/JSBigString.h>
|
|
#include <jschelpers/JavaScriptCore.h>
|
|
#include <jschelpers/Value.h>
|
|
|
|
namespace facebook {
|
|
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);
|
|
|
|
}
|
|
}
|