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