Skip to content

Commit 0994e37

Browse files
committed
slight modifications
1 parent 6daef14 commit 0994e37

File tree

2 files changed

+11
-7
lines changed

2 files changed

+11
-7
lines changed

packages/react-native/Libraries/Text/TextInput/Multiline/RCTWrappedTextView.h

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
/*
2-
* Copyright (c) Meta Platforms, Inc. and affiliates.
2+
* Copyright (c) Microsoft Corporation.
33
*
44
* This source code is licensed under the MIT license found in the
55
* LICENSE file in the root directory of this source tree.
66
*/
77

8-
#if TARGET_OS_OSX // [macOS
8+
// [macOS]
9+
10+
#if TARGET_OS_OSX
911

1012
#import <React/RCTUIKit.h>
1113

@@ -25,4 +27,4 @@ NS_ASSUME_NONNULL_BEGIN
2527

2628
NS_ASSUME_NONNULL_END
2729

28-
#endif // macOS]
30+
#endif // TARGET_OS_OSX

packages/react-native/Libraries/Text/TextInput/Multiline/RCTWrappedTextView.m

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
/*
2-
* Copyright (c) Meta Platforms, Inc. and affiliates.
2+
* Copyright (c) Microsoft Corporation.
33
*
44
* This source code is licensed under the MIT license found in the
55
* LICENSE file in the root directory of this source tree.
66
*/
77

8-
#if TARGET_OS_OSX // [macOS
8+
// [macOS]
9+
10+
#if TARGET_OS_OSX
911

1012
#import <React/RCTWrappedTextView.h>
1113

@@ -185,10 +187,10 @@ - (void)setAttributedText:(NSAttributedString *)attributedText
185187
// This method is there to match the textContainerInset property on RCTUITextField
186188
- (void)setTextContainerInset:(UIEdgeInsets)textContainerInsets
187189
{
188-
// RCTUITextView has logic in setTextContainerInset[s] to convert th UIEdgeInsets to a valid NSSize struct
190+
// RCTUITextView has logic in setTextContainerInset[s] to convert the UIEdgeInsets to a valid NSSize struct
189191
_forwardingTextView.textContainerInsets = textContainerInsets;
190192
}
191193

192194
@end
193195

194-
#endif // macOS]
196+
#endif // TARGET_OS_OSX

0 commit comments

Comments
 (0)