mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Fix CQS signal modernize-use-using in xplat/js/react-native-github/packages
Reviewed By: javache Differential Revision: D78403861
This commit is contained in:
committed by
Facebook GitHub Bot
parent
5050d0a89e
commit
22b540652e
@@ -66,7 +66,7 @@
|
||||
|
||||
static NSString *const RCTJSThreadName = @"com.facebook.react.JavaScript";
|
||||
|
||||
typedef void (^RCTPendingCall)();
|
||||
using RCTPendingCall = void (^)();
|
||||
|
||||
using namespace facebook::jsi;
|
||||
using namespace facebook::react;
|
||||
|
||||
@@ -11,11 +11,11 @@
|
||||
|
||||
#import <jsinspector-modern/ReactCdp.h>
|
||||
|
||||
typedef facebook::react::jsinspector_modern::NetworkRequestListener RCTInspectorNetworkListener;
|
||||
using RCTInspectorNetworkListener = facebook::react::jsinspector_modern::NetworkRequestListener;
|
||||
|
||||
typedef facebook::react::jsinspector_modern::ScopedExecutor<RCTInspectorNetworkListener> RCTInspectorNetworkExecutor;
|
||||
using RCTInspectorNetworkExecutor = facebook::react::jsinspector_modern::ScopedExecutor<RCTInspectorNetworkListener>;
|
||||
|
||||
typedef facebook::react::jsinspector_modern::LoadNetworkResourceRequest RCTInspectorLoadNetworkResourceRequest;
|
||||
using RCTInspectorLoadNetworkResourceRequest = facebook::react::jsinspector_modern::LoadNetworkResourceRequest;
|
||||
|
||||
/**
|
||||
* A helper class that wraps around NSURLSession to make network requests.
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
#import "RCTInspectorNetworkHelper.h"
|
||||
#import <React/RCTLog.h>
|
||||
|
||||
typedef void (^ListenerBlock)(RCTInspectorNetworkListener *);
|
||||
using ListenerBlock = void (^)(RCTInspectorNetworkListener *);
|
||||
|
||||
@interface RCTInspectorNetworkHelper () <NSURLSessionDataDelegate>
|
||||
@property (nonatomic, strong) NSURLSession *session;
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
|
||||
#import <React/RCTViewManager.h>
|
||||
|
||||
typedef dispatch_block_t RCTUIManagerMountingBlock;
|
||||
using RCTUIManagerMountingBlock = dispatch_block_t;
|
||||
|
||||
/**
|
||||
* Allows hooking into UIManager internals. This can be used to execute code at
|
||||
|
||||
@@ -205,7 +205,7 @@ RCT_ENUM_CONVERTER(
|
||||
UIFontWeightRegular,
|
||||
doubleValue)
|
||||
|
||||
typedef BOOL RCTFontStyle;
|
||||
using RCTFontStyle = BOOL;
|
||||
RCT_ENUM_CONVERTER(
|
||||
RCTFontStyle,
|
||||
(@{
|
||||
@@ -216,7 +216,7 @@ RCT_ENUM_CONVERTER(
|
||||
NO,
|
||||
boolValue)
|
||||
|
||||
typedef NSDictionary RCTFontVariantDescriptor;
|
||||
using RCTFontVariantDescriptor = NSDictionary;
|
||||
+ (RCTFontVariantDescriptor *)RCTFontVariantDescriptor:(id)json
|
||||
{
|
||||
static NSDictionary *mapping;
|
||||
|
||||
@@ -53,9 +53,9 @@ class CxxModule {
|
||||
class SyncTagType {};
|
||||
|
||||
public:
|
||||
typedef std::function<std::unique_ptr<CxxModule>()> Provider;
|
||||
using Provider = std::function<std::unique_ptr<CxxModule>()>;
|
||||
|
||||
typedef std::function<void(std::vector<folly::dynamic>)> Callback;
|
||||
using Callback = std::function<void(std::vector<folly::dynamic>)>;
|
||||
|
||||
constexpr static AsyncTagType AsyncTag = AsyncTagType();
|
||||
constexpr static SyncTagType SyncTag = SyncTagType();
|
||||
|
||||
@@ -68,8 +68,8 @@ namespace detail {
|
||||
// only for types compatible with folly::dynamic.
|
||||
template <typename T>
|
||||
struct is_dynamic {
|
||||
typedef typename std::
|
||||
enable_if<std::is_assignable<folly::dynamic, T>::value, T>::type type;
|
||||
using type = typename std::
|
||||
enable_if<std::is_assignable<folly::dynamic, T>::value, T>::type;
|
||||
};
|
||||
|
||||
} // end namespace detail
|
||||
|
||||
@@ -14,7 +14,7 @@ enum ReactNativeLogLevel {
|
||||
ReactNativeLogLevelFatal = 4
|
||||
};
|
||||
|
||||
typedef void (*reactnativelogfunctype)(ReactNativeLogLevel, const char*);
|
||||
using reactnativelogfunctype = void (*)(ReactNativeLogLevel, const char*);
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
|
||||
Reference in New Issue
Block a user