react-native-macos 0.64.18 → 0.64.22

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1193,6 +1193,7 @@ function InternalTextInput(props: Props): React.Node {
1193
1193
  accessibilityState={props.accessibilityState}
1194
1194
  nativeID={props.nativeID}
1195
1195
  testID={props.testID}
1196
+ enableFocusRing={props.enableFocusRing} // TODO(macOS GH#774)
1196
1197
  {...additionalTouchableProps}>
1197
1198
  {textInput}
1198
1199
  </TouchableWithoutFeedback>
@@ -12,6 +12,6 @@
12
12
  exports.version = {
13
13
  major: 0,
14
14
  minor: 64,
15
- patch: 18,
15
+ patch: 22,
16
16
  prerelease: null,
17
17
  };
@@ -87,6 +87,13 @@
87
87
  [self replaceSubview:previousTextField with:_backedTextInputView];
88
88
  }
89
89
  }
90
+
91
+ - (void)setEnableFocusRing:(BOOL)enableFocusRing {
92
+ [super setEnableFocusRing:enableFocusRing];
93
+ if ([_backedTextInputView respondsToSelector:@selector(setEnableFocusRing:)]) {
94
+ [_backedTextInputView setEnableFocusRing:enableFocusRing];
95
+ }
96
+ }
90
97
  #endif // ]TODO(macOS GH#774)
91
98
 
92
99
  @end
@@ -51,6 +51,7 @@ NS_ASSUME_NONNULL_BEGIN
51
51
  @property (nonatomic, assign) NSTextAlignment textAlignment;
52
52
  @property (nonatomic, getter=isAutomaticTextReplacementEnabled) BOOL automaticTextReplacementEnabled;
53
53
  @property (nonatomic, getter=isAutomaticSpellingCorrectionEnabled) BOOL automaticSpellingCorrectionEnabled;
54
+ @property (nonatomic, assign) BOOL enableFocusRing;
54
55
  @property (nonatomic, strong, nullable) RCTUIColor *selectionColor;
55
56
  @property (weak, nullable) id<RCTUITextFieldDelegate> delegate;
56
57
  #endif // ]TODO(macOS GH#774)
@@ -213,6 +213,18 @@
213
213
  return ((RCTUITextFieldCell*)self.cell).font;
214
214
  }
215
215
 
216
+ - (void)setEnableFocusRing:(BOOL)enableFocusRing {
217
+ if (_enableFocusRing != enableFocusRing) {
218
+ _enableFocusRing = enableFocusRing;
219
+ }
220
+
221
+ if (enableFocusRing) {
222
+ [self setFocusRingType:NSFocusRingTypeDefault];
223
+ } else {
224
+ [self setFocusRingType:NSFocusRingTypeNone];
225
+ }
226
+ }
227
+
216
228
  #endif // ]TODO(macOS GH#774)
217
229
 
218
230
  - (void)setPlaceholder:(NSString *)placeholder
@@ -23,7 +23,7 @@ NSDictionary* RCTGetReactNativeVersion(void)
23
23
  __rnVersion = @{
24
24
  RCTVersionMajor: @(0),
25
25
  RCTVersionMinor: @(64),
26
- RCTVersionPatch: @(18),
26
+ RCTVersionPatch: @(22),
27
27
  RCTVersionPrerelease: [NSNull null],
28
28
  };
29
29
  });
@@ -1,5 +1,5 @@
1
1
  # TODO :: ANDROID patch to stay consistant with the npm version.
2
- VERSION_NAME=0.64.18
2
+ VERSION_NAME=0.64.22
3
3
  GROUP=com.facebook.react
4
4
 
5
5
  POM_NAME=ReactNative
@@ -17,6 +17,6 @@ public class ReactNativeVersion {
17
17
  public static final Map<String, Object> VERSION = MapBuilder.<String, Object>of(
18
18
  "major", 0,
19
19
  "minor", 64,
20
- "patch", 18,
20
+ "patch", 22,
21
21
  "prerelease", null);
22
22
  }
@@ -17,7 +17,7 @@ namespace facebook::react {
17
17
  constexpr struct {
18
18
  int32_t Major = 0;
19
19
  int32_t Minor = 64;
20
- int32_t Patch = 18;
20
+ int32_t Patch = 22;
21
21
  std::string_view Prerelease = "";
22
22
  } ReactNativeVersion;
23
23
 
@@ -937,7 +937,9 @@ class JSI_EXPORT Value {
937
937
  std::is_base_of<String, T>::value ||
938
938
  std::is_base_of<Object, T>::value,
939
939
  "Value cannot be implicitly move-constructed from this type");
940
+ #ifndef __clang_analyzer__ // TODO(macOS GH#774) Disable [bugprone-move-forwarding-reference] when running clang static analysis
940
941
  new (&data_.pointer) T(std::move(other));
942
+ #endif // __clang_analyzer__
941
943
  }
942
944
 
943
945
  /// Value("foo") will treat foo as a bool. This makes doing that a
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-macos",
3
- "version": "0.64.18",
3
+ "version": "0.64.22",
4
4
  "bin": "./cli.js",
5
5
  "description": "[Microsoft Fork] A framework for building native apps using React",
6
6
  "license": "MIT",
@@ -11,7 +11,7 @@
11
11
  },
12
12
  "dependencies": {
13
13
  "react": "17.0.1",
14
- "react-native": "0.64.18"
14
+ "react-native": "0.64.22"
15
15
  },
16
16
  "devDependencies": {
17
17
  "@babel/core": "^7.12.9",