react-native-macos 0.71.26 → 0.71.27

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.
@@ -12,6 +12,6 @@
12
12
  exports.version = {
13
13
  major: 0,
14
14
  minor: 71,
15
- patch: 26,
15
+ patch: 27,
16
16
  prerelease: null,
17
17
  };
@@ -108,7 +108,13 @@ const Text: React.AbstractComponent<
108
108
  onLongPress,
109
109
  onPress,
110
110
  onPressIn(event: PressEvent) {
111
- setHighlighted(!suppressHighlighting);
111
+ // Updating isHighlighted causes unnecessary re-renders for platforms that don't use it
112
+ // in the best case, and cause issues with text selection in the worst case. Forcing
113
+ // the isHighlighted prop to false on all platforms except iOS.
114
+ setHighlighted(
115
+ (suppressHighlighting == null || !suppressHighlighting) &&
116
+ Platform.OS === 'ios',
117
+ );
112
118
  onPressIn?.(event);
113
119
  },
114
120
  onPressOut(event: PressEvent) {
@@ -23,7 +23,7 @@ NSDictionary* RCTGetReactNativeVersion(void)
23
23
  __rnVersion = @{
24
24
  RCTVersionMajor: @(0),
25
25
  RCTVersionMinor: @(71),
26
- RCTVersionPatch: @(26),
26
+ RCTVersionPatch: @(27),
27
27
  RCTVersionPrerelease: [NSNull null],
28
28
  };
29
29
  });
@@ -1,4 +1,4 @@
1
- VERSION_NAME=0.71.26
1
+ VERSION_NAME=0.71.27
2
2
  GROUP=com.facebook.react
3
3
 
4
4
  # JVM Versions
@@ -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", 71,
20
- "patch", 26,
20
+ "patch", 27,
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 = 71;
20
- int32_t Patch = 26;
20
+ int32_t Patch = 27;
21
21
  std::string_view Prerelease = "";
22
22
  } ReactNativeVersion;
23
23
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-macos",
3
- "version": "0.71.26",
3
+ "version": "0.71.27",
4
4
  "bin": "./cli.js",
5
5
  "description": "React Native for macOS",
6
6
  "license": "MIT",
@@ -12,7 +12,7 @@
12
12
  },
13
13
  "dependencies": {
14
14
  "react": "18.2.0",
15
- "react-native-macos": "0.71.26"
15
+ "react-native-macos": "0.71.27"
16
16
  },
17
17
  "devDependencies": {
18
18
  "@babel/core": "^7.20.0",