2017-02-01 14:10:41 -08:00
|
|
|
/**
|
2018-09-11 15:27:47 -07:00
|
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
2017-02-01 14:10:41 -08:00
|
|
|
*
|
2018-02-16 18:24:55 -08: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 14:10:41 -08:00
|
|
|
*/
|
|
|
|
|
2018-10-18 00:47:05 -07:00
|
|
|
#include <functional>
|
2017-03-17 06:55:44 -07:00
|
|
|
#include <memory>
|
|
|
|
|
2018-10-18 00:47:05 -07:00
|
|
|
#import <Foundation/Foundation.h>
|
2017-02-01 14:10:41 -08:00
|
|
|
|
2017-03-17 06:55:44 -07:00
|
|
|
@class RCTBridge;
|
|
|
|
@class RCTModuleData;
|
|
|
|
|
2017-02-15 06:12:46 -08:00
|
|
|
namespace facebook {
|
|
|
|
namespace react {
|
|
|
|
|
2017-03-17 06:55:44 -07:00
|
|
|
class Instance;
|
2018-10-18 00:47:05 -07:00
|
|
|
class NativeModule;
|
2017-03-17 06:55:44 -07:00
|
|
|
|
2017-04-07 09:27:05 -07:00
|
|
|
std::vector<std::unique_ptr<NativeModule>> createNativeModules(NSArray<RCTModuleData *> *modules, RCTBridge *bridge, const std::shared_ptr<Instance> &instance);
|
2017-03-17 06:55:44 -07:00
|
|
|
|
2017-02-15 06:12:46 -08:00
|
|
|
NSError *tryAndReturnError(const std::function<void()>& func);
|
2017-06-14 14:06:26 -07:00
|
|
|
NSString *deriveSourceURL(NSURL *url);
|
2017-02-15 06:12:46 -08:00
|
|
|
|
|
|
|
} }
|