mirror of
https://github.com/status-im/react-native.git
synced 2025-01-16 04:24:15 +00:00
dd400f842b
Differential Revision: D6030185 fbshipit-source-id: 58d6f9d0d412c7ad0f83af9ae4df01c4dc1178bc
26 lines
625 B
C++
26 lines
625 B
C++
// Copyright 2004-present Facebook. All Rights Reserved.
|
|
|
|
#pragma once
|
|
|
|
#include <cxxreact/RAMBundleRegistry.h>
|
|
|
|
#ifndef RN_EXPORT
|
|
#define RN_EXPORT __attribute__((visibility("default")))
|
|
#endif
|
|
|
|
namespace facebook {
|
|
namespace react {
|
|
|
|
class RN_EXPORT JSIndexedRAMBundleRegistry: public RAMBundleRegistry {
|
|
public:
|
|
JSIndexedRAMBundleRegistry(std::unique_ptr<JSModulesUnbundle> mainBundle, const std::string& baseDirectoryPath);
|
|
|
|
protected:
|
|
virtual std::unique_ptr<JSModulesUnbundle> bundleById(uint32_t index) const override;
|
|
private:
|
|
std::string m_baseDirectoryPath;
|
|
};
|
|
|
|
} // namespace react
|
|
} // namespace facebook
|