mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
cb719a16cc
Summary: With the upgrade to React Native 0.63, we started running into nullability warnings that were breaking our build. This PR fixes those nullability warnings as well as a few other warnings in React-Core. ## Changelog <!-- Help reviewers and the release process by writing your own changelog entry. For example, see: https://github.com/facebook/react-native/wiki/Changelog --> [iOS] [Fixed] - Fix xcodebuild warnings in React-Core Pull Request resolved: https://github.com/facebook/react-native/pull/29622 Test Plan: - Nullability annotations should only affect compilation, but even though RNTester compiles, I'm not fully convinced that this won't break projects downstream. It would be good to get another opinion on this. - The change in `RCTAllocateRootViewTag` is the only real logic change in this PR. We throw an exception if the root view tag is not in the correct format, so this change seems safe after some basic manual testing in RNTester. Reviewed By: shergin Differential Revision: D23386678 Pulled By: appden fbshipit-source-id: a74875195a4614c3248e8f968aa98602e3ee2de0
31 lines
1.1 KiB
Objective-C
31 lines
1.1 KiB
Objective-C
/*
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*/
|
|
|
|
#import <Foundation/Foundation.h>
|
|
|
|
@interface RCTJSStackFrame : NSObject
|
|
|
|
@property (nonatomic, copy, readonly) NSString *methodName;
|
|
@property (nonatomic, copy, readonly) NSString *file;
|
|
@property (nonatomic, readonly) NSInteger lineNumber;
|
|
@property (nonatomic, readonly) NSInteger column;
|
|
@property (nonatomic, readonly) BOOL collapse;
|
|
|
|
- (instancetype)initWithMethodName:(NSString *)methodName
|
|
file:(NSString *)file
|
|
lineNumber:(NSInteger)lineNumber
|
|
column:(NSInteger)column
|
|
collapse:(BOOL)collapse;
|
|
- (NSDictionary *)toDictionary;
|
|
|
|
+ (instancetype)stackFrameWithLine:(NSString *)line;
|
|
+ (instancetype)stackFrameWithDictionary:(NSDictionary *)dict;
|
|
+ (NSArray<RCTJSStackFrame *> *)stackFramesWithLines:(NSString *)lines;
|
|
+ (NSArray<RCTJSStackFrame *> *)stackFramesWithDictionaries:(NSArray<NSDictionary *> *)dicts;
|
|
|
|
@end
|