react-native 0.66.0-rc.3 → 0.66.2

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.
Files changed (50) hide show
  1. package/Libraries/Core/ReactNativeVersion.js +2 -2
  2. package/Libraries/LogBox/Data/LogBoxData.js +18 -18
  3. package/React/Base/RCTVersion.m +2 -2
  4. package/React/CoreModules/RCTAppearance.mm +3 -1
  5. package/React/CoreModules/RCTLogBox.mm +1 -0
  6. package/React/FBReactNativeSpec/FBReactNativeSpec/FBReactNativeSpec-generated.mm +2096 -0
  7. package/React/FBReactNativeSpec/FBReactNativeSpec/FBReactNativeSpec.h +2554 -0
  8. package/ReactAndroid/gradle.properties +1 -1
  9. package/ReactAndroid/src/main/java/com/facebook/react/ReactActivity.java +7 -0
  10. package/ReactAndroid/src/main/java/com/facebook/react/ReactActivityDelegate.java +7 -0
  11. package/ReactAndroid/src/main/java/com/facebook/react/modules/appearance/AppearanceModule.java +10 -1
  12. package/ReactAndroid/src/main/java/com/facebook/react/modules/systeminfo/ReactNativeVersion.java +2 -2
  13. package/ReactAndroid/src/main/java/com/facebook/react/views/view/ReactViewBackgroundDrawable.java +8 -8
  14. package/ReactCommon/cxxreact/ReactNativeVersion.h +2 -2
  15. package/android/com/facebook/react/react-native/{0.66.0-rc.3/react-native-0.66.0-rc.3.aar → 0.66.2/react-native-0.66.2.aar} +0 -0
  16. package/android/com/facebook/react/react-native/0.66.2/react-native-0.66.2.aar.md5 +1 -0
  17. package/android/com/facebook/react/react-native/0.66.2/react-native-0.66.2.aar.sha1 +1 -0
  18. package/android/com/facebook/react/react-native/0.66.2/react-native-0.66.2.aar.sha256 +1 -0
  19. package/android/com/facebook/react/react-native/0.66.2/react-native-0.66.2.aar.sha512 +1 -0
  20. package/android/com/facebook/react/react-native/{0.66.0-rc.3/react-native-0.66.0-rc.3.module → 0.66.2/react-native-0.66.2.module} +16 -16
  21. package/android/com/facebook/react/react-native/0.66.2/react-native-0.66.2.module.md5 +1 -0
  22. package/android/com/facebook/react/react-native/0.66.2/react-native-0.66.2.module.sha1 +1 -0
  23. package/android/com/facebook/react/react-native/0.66.2/react-native-0.66.2.module.sha256 +1 -0
  24. package/android/com/facebook/react/react-native/0.66.2/react-native-0.66.2.module.sha512 +1 -0
  25. package/android/com/facebook/react/react-native/{0.66.0-rc.3/react-native-0.66.0-rc.3.pom → 0.66.2/react-native-0.66.2.pom} +1 -1
  26. package/android/com/facebook/react/react-native/0.66.2/react-native-0.66.2.pom.md5 +1 -0
  27. package/android/com/facebook/react/react-native/0.66.2/react-native-0.66.2.pom.sha1 +1 -0
  28. package/android/com/facebook/react/react-native/0.66.2/react-native-0.66.2.pom.sha256 +1 -0
  29. package/android/com/facebook/react/react-native/0.66.2/react-native-0.66.2.pom.sha512 +1 -0
  30. package/android/com/facebook/react/react-native/maven-metadata.xml +4 -4
  31. package/android/com/facebook/react/react-native/maven-metadata.xml.md5 +1 -1
  32. package/android/com/facebook/react/react-native/maven-metadata.xml.sha1 +1 -1
  33. package/android/com/facebook/react/react-native/maven-metadata.xml.sha256 +1 -1
  34. package/android/com/facebook/react/react-native/maven-metadata.xml.sha512 +1 -1
  35. package/package.json +1 -1
  36. package/scripts/react-native-xcode.sh +1 -1
  37. package/scripts/react_native_pods.rb +1 -1
  38. package/template/package.json +1 -1
  39. package/android/com/facebook/react/react-native/0.66.0-rc.3/react-native-0.66.0-rc.3.aar.md5 +0 -1
  40. package/android/com/facebook/react/react-native/0.66.0-rc.3/react-native-0.66.0-rc.3.aar.sha1 +0 -1
  41. package/android/com/facebook/react/react-native/0.66.0-rc.3/react-native-0.66.0-rc.3.aar.sha256 +0 -1
  42. package/android/com/facebook/react/react-native/0.66.0-rc.3/react-native-0.66.0-rc.3.aar.sha512 +0 -1
  43. package/android/com/facebook/react/react-native/0.66.0-rc.3/react-native-0.66.0-rc.3.module.md5 +0 -1
  44. package/android/com/facebook/react/react-native/0.66.0-rc.3/react-native-0.66.0-rc.3.module.sha1 +0 -1
  45. package/android/com/facebook/react/react-native/0.66.0-rc.3/react-native-0.66.0-rc.3.module.sha256 +0 -1
  46. package/android/com/facebook/react/react-native/0.66.0-rc.3/react-native-0.66.0-rc.3.module.sha512 +0 -1
  47. package/android/com/facebook/react/react-native/0.66.0-rc.3/react-native-0.66.0-rc.3.pom.md5 +0 -1
  48. package/android/com/facebook/react/react-native/0.66.0-rc.3/react-native-0.66.0-rc.3.pom.sha1 +0 -1
  49. package/android/com/facebook/react/react-native/0.66.0-rc.3/react-native-0.66.0-rc.3.pom.sha256 +0 -1
  50. package/android/com/facebook/react/react-native/0.66.0-rc.3/react-native-0.66.0-rc.3.pom.sha512 +0 -1
@@ -1,4 +1,4 @@
1
- VERSION_NAME=0.66.0-rc.3
1
+ VERSION_NAME=0.66.2
2
2
  GROUP=com.facebook.react
3
3
 
4
4
  POM_NAME=ReactNative
@@ -8,6 +8,7 @@
8
8
  package com.facebook.react;
9
9
 
10
10
  import android.content.Intent;
11
+ import android.content.res.Configuration;
11
12
  import android.os.Bundle;
12
13
  import android.view.KeyEvent;
13
14
  import androidx.annotation.Nullable;
@@ -121,6 +122,12 @@ public abstract class ReactActivity extends AppCompatActivity
121
122
  mDelegate.onWindowFocusChanged(hasFocus);
122
123
  }
123
124
 
125
+ @Override
126
+ public void onConfigurationChanged(Configuration newConfig) {
127
+ super.onConfigurationChanged(newConfig);
128
+ mDelegate.onConfigurationChanged(newConfig);
129
+ }
130
+
124
131
  protected final ReactNativeHost getReactNativeHost() {
125
132
  return mDelegate.getReactNativeHost();
126
133
  }
@@ -11,6 +11,7 @@ import android.annotation.TargetApi;
11
11
  import android.app.Activity;
12
12
  import android.content.Context;
13
13
  import android.content.Intent;
14
+ import android.content.res.Configuration;
14
15
  import android.os.Build;
15
16
  import android.os.Bundle;
16
17
  import android.view.KeyEvent;
@@ -154,6 +155,12 @@ public class ReactActivityDelegate {
154
155
  }
155
156
  }
156
157
 
158
+ public void onConfigurationChanged(Configuration newConfig) {
159
+ if (getReactNativeHost().hasInstance()) {
160
+ getReactInstanceManager().onConfigurationChanged(getContext(), newConfig);
161
+ }
162
+ }
163
+
157
164
  @TargetApi(Build.VERSION_CODES.M)
158
165
  public void requestPermissions(
159
166
  String[] permissions, int requestCode, PermissionListener listener) {
@@ -7,6 +7,7 @@
7
7
 
8
8
  package com.facebook.react.modules.appearance;
9
9
 
10
+ import android.app.Activity;
10
11
  import android.content.Context;
11
12
  import android.content.res.Configuration;
12
13
  import androidx.annotation.Nullable;
@@ -74,7 +75,15 @@ public class AppearanceModule extends NativeAppearanceSpec {
74
75
 
75
76
  @Override
76
77
  public String getColorScheme() {
77
- mColorScheme = colorSchemeForCurrentConfiguration(getReactApplicationContext());
78
+ // Attempt to use the Activity context first in order to get the most up to date
79
+ // scheme. This covers the scenario when AppCompatDelegate.setDefaultNightMode()
80
+ // is called directly (which can occur in Brownfield apps for example).
81
+ Activity activity = getCurrentActivity();
82
+
83
+ mColorScheme =
84
+ colorSchemeForCurrentConfiguration(
85
+ activity != null ? activity : getReactApplicationContext());
86
+
78
87
  return mColorScheme;
79
88
  }
80
89
 
@@ -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", 66,
20
- "patch", 0,
21
- "prerelease", "rc.3");
20
+ "patch", 2,
21
+ "prerelease", null);
22
22
  }
@@ -1106,8 +1106,8 @@ public class ReactViewBackgroundDrawable extends Drawable {
1106
1106
  int width = Math.round(borderWidth.left);
1107
1107
  updatePathEffect(width);
1108
1108
  mPaint.setStrokeWidth(width);
1109
- mPathForSingleBorder.moveTo(left, top - borderWidth.top / 2);
1110
- mPathForSingleBorder.lineTo(left, bottom + borderWidth.bottom / 2);
1109
+ mPathForSingleBorder.moveTo(left + width / 2, top);
1110
+ mPathForSingleBorder.lineTo(left + width / 2, bottom);
1111
1111
  canvas.drawPath(mPathForSingleBorder, mPaint);
1112
1112
  }
1113
1113
  if (borderTop > 0) {
@@ -1115,8 +1115,8 @@ public class ReactViewBackgroundDrawable extends Drawable {
1115
1115
  int width = Math.round(borderWidth.top);
1116
1116
  updatePathEffect(width);
1117
1117
  mPaint.setStrokeWidth(width);
1118
- mPathForSingleBorder.moveTo(left, top);
1119
- mPathForSingleBorder.lineTo(right, top);
1118
+ mPathForSingleBorder.moveTo(left, top + width / 2);
1119
+ mPathForSingleBorder.lineTo(right, top + width / 2);
1120
1120
  canvas.drawPath(mPathForSingleBorder, mPaint);
1121
1121
  }
1122
1122
  if (borderRight > 0) {
@@ -1124,8 +1124,8 @@ public class ReactViewBackgroundDrawable extends Drawable {
1124
1124
  int width = Math.round(borderWidth.right);
1125
1125
  updatePathEffect(width);
1126
1126
  mPaint.setStrokeWidth(width);
1127
- mPathForSingleBorder.moveTo(right, top - borderWidth.top / 2);
1128
- mPathForSingleBorder.lineTo(right, bottom + borderWidth.bottom / 2);
1127
+ mPathForSingleBorder.moveTo(right - width / 2, top);
1128
+ mPathForSingleBorder.lineTo(right - width / 2, bottom);
1129
1129
  canvas.drawPath(mPathForSingleBorder, mPaint);
1130
1130
  }
1131
1131
  if (borderBottom > 0) {
@@ -1133,8 +1133,8 @@ public class ReactViewBackgroundDrawable extends Drawable {
1133
1133
  int width = Math.round(borderWidth.bottom);
1134
1134
  updatePathEffect(width);
1135
1135
  mPaint.setStrokeWidth(width);
1136
- mPathForSingleBorder.moveTo(left, bottom);
1137
- mPathForSingleBorder.lineTo(right, bottom);
1136
+ mPathForSingleBorder.moveTo(left, bottom - width / 2);
1137
+ mPathForSingleBorder.lineTo(right, bottom - width / 2);
1138
1138
  canvas.drawPath(mPathForSingleBorder, mPaint);
1139
1139
  }
1140
1140
  }
@@ -17,8 +17,8 @@ namespace facebook::react {
17
17
  constexpr struct {
18
18
  int32_t Major = 0;
19
19
  int32_t Minor = 66;
20
- int32_t Patch = 0;
21
- std::string_view Prerelease = "rc.3";
20
+ int32_t Patch = 2;
21
+ std::string_view Prerelease = "";
22
22
  } ReactNativeVersion;
23
23
 
24
24
  } // namespace facebook::react
@@ -0,0 +1 @@
1
+ 415c8b2e6145bc56c406b7f9def398b9
@@ -0,0 +1 @@
1
+ 72cf71a9fe00641c2331a33734749bfdc59267c6
@@ -0,0 +1 @@
1
+ f659c22c513bb9151c7b12f047ff9e3e07c5c5f1d6361cf15eceddae65436275
@@ -0,0 +1 @@
1
+ 5db5f669fe0e9917cc28ed0c87f0cf2d8d7f4a76927d6c4c84f00ddd757cf2e7499627bef37cacc3afd85a99131e4edbee4f5ad93646baa9fd6bf7aa606d8a45
@@ -3,7 +3,7 @@
3
3
  "component": {
4
4
  "group": "com.facebook.react",
5
5
  "module": "react-native",
6
- "version": "0.66.0-rc.3",
6
+ "version": "0.66.2",
7
7
  "attributes": {
8
8
  "org.gradle.status": "release"
9
9
  }
@@ -11,7 +11,7 @@
11
11
  "createdBy": {
12
12
  "gradle": {
13
13
  "version": "6.9",
14
- "buildId": "ix4ji7hlhncippxwesc6e2lsci"
14
+ "buildId": "rwmtamy2ebcovnwazbol6pl5rm"
15
15
  }
16
16
  },
17
17
  "variants": [
@@ -132,13 +132,13 @@
132
132
  ],
133
133
  "files": [
134
134
  {
135
- "name": "react-native-0.66.0-rc.3.aar",
136
- "url": "react-native-0.66.0-rc.3.aar",
137
- "size": 17709974,
138
- "sha512": "3679b7031d6fc159f7c7451c9e792ed3c76aefbbf8f098df85ce6c2201657453c73bff200c27c44f08dfe98989e7acb51a9fbf88aaa8c7e67d5e03185ba39597",
139
- "sha256": "db4f643ff7e1997f4c53c8dea0c5a2411d96e32450c0cd8f32c217d89e7aec11",
140
- "sha1": "65cfcf14ae7aa4ab6c007f092b53874c4838395a",
141
- "md5": "a8c8599ffd0a561972cc7da413ab1a0b"
135
+ "name": "react-native-0.66.2.aar",
136
+ "url": "react-native-0.66.2.aar",
137
+ "size": 17710261,
138
+ "sha512": "5db5f669fe0e9917cc28ed0c87f0cf2d8d7f4a76927d6c4c84f00ddd757cf2e7499627bef37cacc3afd85a99131e4edbee4f5ad93646baa9fd6bf7aa606d8a45",
139
+ "sha256": "f659c22c513bb9151c7b12f047ff9e3e07c5c5f1d6361cf15eceddae65436275",
140
+ "sha1": "72cf71a9fe00641c2331a33734749bfdc59267c6",
141
+ "md5": "415c8b2e6145bc56c406b7f9def398b9"
142
142
  }
143
143
  ]
144
144
  },
@@ -259,13 +259,13 @@
259
259
  ],
260
260
  "files": [
261
261
  {
262
- "name": "react-native-0.66.0-rc.3.aar",
263
- "url": "react-native-0.66.0-rc.3.aar",
264
- "size": 17709974,
265
- "sha512": "3679b7031d6fc159f7c7451c9e792ed3c76aefbbf8f098df85ce6c2201657453c73bff200c27c44f08dfe98989e7acb51a9fbf88aaa8c7e67d5e03185ba39597",
266
- "sha256": "db4f643ff7e1997f4c53c8dea0c5a2411d96e32450c0cd8f32c217d89e7aec11",
267
- "sha1": "65cfcf14ae7aa4ab6c007f092b53874c4838395a",
268
- "md5": "a8c8599ffd0a561972cc7da413ab1a0b"
262
+ "name": "react-native-0.66.2.aar",
263
+ "url": "react-native-0.66.2.aar",
264
+ "size": 17710261,
265
+ "sha512": "5db5f669fe0e9917cc28ed0c87f0cf2d8d7f4a76927d6c4c84f00ddd757cf2e7499627bef37cacc3afd85a99131e4edbee4f5ad93646baa9fd6bf7aa606d8a45",
266
+ "sha256": "f659c22c513bb9151c7b12f047ff9e3e07c5c5f1d6361cf15eceddae65436275",
267
+ "sha1": "72cf71a9fe00641c2331a33734749bfdc59267c6",
268
+ "md5": "415c8b2e6145bc56c406b7f9def398b9"
269
269
  }
270
270
  ]
271
271
  }
@@ -0,0 +1 @@
1
+ 583969060ffc1eea8219903390a4a920
@@ -0,0 +1 @@
1
+ 2dfa3d9267c1369fe4c04a33b760842fed5b0ecc
@@ -0,0 +1 @@
1
+ 672ee36f17f3619dff4cb5b1f318be852b42871677eab053a3071bc967e4d784
@@ -0,0 +1 @@
1
+ 3bbcc0e6ed941dbc0f52865db474c2ef6a1187c2bf5958b0c1b7c7feb6ae9bdc8ecbf5f90dc12147281f1185d1d406c4755ce8aadd7b7373aca41ecf22ffdb36
@@ -9,7 +9,7 @@
9
9
  <modelVersion>4.0.0</modelVersion>
10
10
  <groupId>com.facebook.react</groupId>
11
11
  <artifactId>react-native</artifactId>
12
- <version>0.66.0-rc.3</version>
12
+ <version>0.66.2</version>
13
13
  <packaging>aar</packaging>
14
14
  <name>ReactNative</name>
15
15
  <description>A framework for building native apps with React</description>
@@ -0,0 +1 @@
1
+ 2bbd6d04da153511dd2d549faa41ba74
@@ -0,0 +1 @@
1
+ a472302e8fdb47ffc39752363544f447689a8c15
@@ -0,0 +1 @@
1
+ 1ad224ed81206d6d8a1bed34c7c114870e9597363f3607fe6675b19944a1415a
@@ -0,0 +1 @@
1
+ 0afe2553003cd1b7290ab96a569cbe5904d1092fbdea0d9b2dd2f7b27e13a5f85544eac3c7265ec6dd2af205f78ecd4a4ea7f9d087f221347455e770db6f71f8
@@ -3,11 +3,11 @@
3
3
  <groupId>com.facebook.react</groupId>
4
4
  <artifactId>react-native</artifactId>
5
5
  <versioning>
6
- <latest>0.66.0-rc.3</latest>
7
- <release>0.66.0-rc.3</release>
6
+ <latest>0.66.2</latest>
7
+ <release>0.66.2</release>
8
8
  <versions>
9
- <version>0.66.0-rc.3</version>
9
+ <version>0.66.2</version>
10
10
  </versions>
11
- <lastUpdated>20210917064526</lastUpdated>
11
+ <lastUpdated>20211104073910</lastUpdated>
12
12
  </versioning>
13
13
  </metadata>
@@ -1 +1 @@
1
- 7dec849a73b4525207013831be05636f
1
+ d949b89b8c0f1697586a8d05b5510bf4
@@ -1 +1 @@
1
- 245da2fb765e52e4751844bab48c40701b8315d3
1
+ 91d86024909fe02db977fa273154402469ff1040
@@ -1 +1 @@
1
- e12bb2b1fbef448525ec0bd9897901750f31fc5d7afc502f54aebabd92876ec5
1
+ b212a820be75e6538fff1c2548aa988ff7a0b4b55ffc81132b638a78a342dfd9
@@ -1 +1 @@
1
- 587da41500ef9335ed7ecc1c3335ab6f149ea5d6424a9398e17dd6937d15a46439fd603f711db229d008fd2c06501c591c6511084b738492238f205767eddc55
1
+ 1f8f35579657a1168d3f7478eeea8b482c0955899ef1d4280ca8b96b55fd0449f6f31f19a765741f9896cec46716481647426cb290459629f80fe9ca65414e81
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native",
3
- "version": "0.66.0-rc.3",
3
+ "version": "0.66.2",
4
4
  "bin": "./cli.js",
5
5
  "description": "A framework for building native apps using React",
6
6
  "license": "MIT",
@@ -81,7 +81,7 @@ fi
81
81
 
82
82
  # Find path to Node
83
83
  # shellcheck source=/dev/null
84
- source "$RN_DIR/scripts/find-node.sh"
84
+ source "$REACT_NATIVE_DIR/scripts/find-node.sh"
85
85
 
86
86
  # check and assign NODE_BINARY env
87
87
  # shellcheck source=/dev/null
@@ -245,5 +245,5 @@ def __apply_Xcode_12_5_M1_post_install_workaround(installer)
245
245
  # "Time.h:52:17: error: typedef redefinition with different types"
246
246
  # We need to make a patch to RCT-Folly - set `__IPHONE_10_0` to our iOS target + 1.
247
247
  # See https://github.com/facebook/flipper/issues/834 for more details.
248
- `sed -i -e $'s/__IPHONE_10_0/__IPHONE_12_0/' Pods/RCT-Folly/folly/portability/Time.h`
248
+ `sed -i -e $'s/__IPHONE_10_0/__IPHONE_12_0/' #{installer.sandbox.root}/RCT-Folly/folly/portability/Time.h`
249
249
  end
@@ -11,7 +11,7 @@
11
11
  },
12
12
  "dependencies": {
13
13
  "react": "17.0.2",
14
- "react-native": "0.66.0-rc.3"
14
+ "react-native": "0.66.2"
15
15
  },
16
16
  "devDependencies": {
17
17
  "@babel/core": "^7.12.9",
@@ -1 +0,0 @@
1
- a8c8599ffd0a561972cc7da413ab1a0b
@@ -1 +0,0 @@
1
- 65cfcf14ae7aa4ab6c007f092b53874c4838395a
@@ -1 +0,0 @@
1
- db4f643ff7e1997f4c53c8dea0c5a2411d96e32450c0cd8f32c217d89e7aec11
@@ -1 +0,0 @@
1
- 3679b7031d6fc159f7c7451c9e792ed3c76aefbbf8f098df85ce6c2201657453c73bff200c27c44f08dfe98989e7acb51a9fbf88aaa8c7e67d5e03185ba39597
@@ -1 +0,0 @@
1
- a67b61daf01084f395d99800382d3fbdac93e074
@@ -1 +0,0 @@
1
- d93bc762f2582778cb278cc4270191f975483a6f1b49a38e6df6791a25000a18
@@ -1 +0,0 @@
1
- fc744057f43d2d4c6462a3cbfcfc6900410e90575940bca5ae1da049938b8354d006bc013878c28e92701c3c14dbd537080eaef30013d19089d3f8315e662ffc
@@ -1 +0,0 @@
1
- cdece91116aa87f9530b702a53fe7684
@@ -1 +0,0 @@
1
- c837d550c7e135146944e16ab5ce6fb185240573
@@ -1 +0,0 @@
1
- aaef7d6e0c8085e793eb0bb62b0905ef7ad99ab8bf11c191961b9b2e4763be4c
@@ -1 +0,0 @@
1
- 1ef9381ef185c46658971ee98116c0fb305a2ed1b61519ad801fbedff2d5b19fe7a314a3c09645c04e0df75d8bd0bb654505b202a5e17148032f42455e82737b