2017-02-01 22:10:41 +00:00
|
|
|
/**
|
2018-09-11 22:27:47 +00:00
|
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
2017-02-01 22:10:41 +00:00
|
|
|
*
|
2018-02-17 02:24:55 +00:00
|
|
|
* This source code is licensed under the MIT license found in the
|
|
|
|
* LICENSE file in the root directory of this source tree.
|
2017-02-01 22:10:41 +00:00
|
|
|
*/
|
|
|
|
|
2018-10-18 07:47:05 +00:00
|
|
|
#include <functional>
|
2017-03-17 13:55:44 +00:00
|
|
|
#include <memory>
|
|
|
|
|
2018-10-18 07:47:05 +00:00
|
|
|
#import <Foundation/Foundation.h>
|
2017-02-01 22:10:41 +00:00
|
|
|
|
2017-03-17 13:55:44 +00:00
|
|
|
@class RCTBridge;
|
|
|
|
@class RCTModuleData;
|
|
|
|
|
2017-02-15 14:12:46 +00:00
|
|
|
namespace facebook {
|
|
|
|
namespace react {
|
|
|
|
|
2017-03-17 13:55:44 +00:00
|
|
|
class Instance;
|
2018-10-18 07:47:05 +00:00
|
|
|
class NativeModule;
|
2017-03-17 13:55:44 +00:00
|
|
|
|
2017-04-07 16:27:05 +00:00
|
|
|
std::vector<std::unique_ptr<NativeModule>> createNativeModules(NSArray<RCTModuleData *> *modules, RCTBridge *bridge, const std::shared_ptr<Instance> &instance);
|
2017-03-17 13:55:44 +00:00
|
|
|
|
2017-02-15 14:12:46 +00:00
|
|
|
NSError *tryAndReturnError(const std::function<void()>& func);
|
2017-06-14 21:06:26 +00:00
|
|
|
NSString *deriveSourceURL(NSURL *url);
|
2017-02-15 14:12:46 +00:00
|
|
|
|
|
|
|
} }
|