react-native 0.64.1 → 0.64.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 (39) hide show
  1. package/Libraries/Components/ScrollView/ScrollViewStickyHeader.js +1 -0
  2. package/Libraries/Core/ReactNativeVersion.js +1 -1
  3. package/React/Base/RCTVersion.m +1 -1
  4. package/React/FBReactNativeSpec/FBReactNativeSpec/FBReactNativeSpec-generated.mm +2075 -0
  5. package/React/FBReactNativeSpec/FBReactNativeSpec/FBReactNativeSpec.h +2543 -0
  6. package/ReactAndroid/gradle.properties +1 -1
  7. package/ReactAndroid/src/main/java/com/facebook/hermes/reactexecutor/OnLoad.cpp +15 -0
  8. package/ReactAndroid/src/main/java/com/facebook/react/ReactRootView.java +1 -0
  9. package/ReactAndroid/src/main/java/com/facebook/react/modules/systeminfo/ReactNativeVersion.java +1 -1
  10. package/ReactAndroid/src/main/java/com/facebook/react/uimanager/UIManagerHelper.java +12 -3
  11. package/ReactAndroid/src/main/java/com/facebook/react/views/textinput/ReactEditText.java +2 -3
  12. package/ReactCommon/cxxreact/ReactNativeVersion.h +1 -1
  13. package/android/com/facebook/react/react-native/{0.64.1/react-native-0.64.1-javadoc.jar → 0.64.2/react-native-0.64.2-javadoc.jar} +0 -0
  14. package/android/com/facebook/react/react-native/0.64.2/react-native-0.64.2-javadoc.jar.md5 +1 -0
  15. package/android/com/facebook/react/react-native/0.64.2/react-native-0.64.2-javadoc.jar.sha1 +1 -0
  16. package/android/com/facebook/react/react-native/{0.64.1/react-native-0.64.1-sources.jar → 0.64.2/react-native-0.64.2-sources.jar} +0 -0
  17. package/android/com/facebook/react/react-native/0.64.2/react-native-0.64.2-sources.jar.md5 +1 -0
  18. package/android/com/facebook/react/react-native/0.64.2/react-native-0.64.2-sources.jar.sha1 +1 -0
  19. package/android/com/facebook/react/react-native/{0.64.1/react-native-0.64.1.aar → 0.64.2/react-native-0.64.2.aar} +0 -0
  20. package/android/com/facebook/react/react-native/0.64.2/react-native-0.64.2.aar.md5 +1 -0
  21. package/android/com/facebook/react/react-native/0.64.2/react-native-0.64.2.aar.sha1 +1 -0
  22. package/android/com/facebook/react/react-native/{0.64.1/react-native-0.64.1.pom → 0.64.2/react-native-0.64.2.pom} +1 -1
  23. package/android/com/facebook/react/react-native/0.64.2/react-native-0.64.2.pom.md5 +1 -0
  24. package/android/com/facebook/react/react-native/0.64.2/react-native-0.64.2.pom.sha1 +1 -0
  25. package/android/com/facebook/react/react-native/maven-metadata.xml +3 -3
  26. package/android/com/facebook/react/react-native/maven-metadata.xml.md5 +1 -1
  27. package/android/com/facebook/react/react-native/maven-metadata.xml.sha1 +1 -1
  28. package/package.json +4 -4
  29. package/react.gradle +3 -9
  30. package/scripts/find-node.sh +7 -1
  31. package/template/package.json +1 -1
  32. package/android/com/facebook/react/react-native/0.64.1/react-native-0.64.1-javadoc.jar.md5 +0 -1
  33. package/android/com/facebook/react/react-native/0.64.1/react-native-0.64.1-javadoc.jar.sha1 +0 -1
  34. package/android/com/facebook/react/react-native/0.64.1/react-native-0.64.1-sources.jar.md5 +0 -1
  35. package/android/com/facebook/react/react-native/0.64.1/react-native-0.64.1-sources.jar.sha1 +0 -1
  36. package/android/com/facebook/react/react-native/0.64.1/react-native-0.64.1.aar.md5 +0 -1
  37. package/android/com/facebook/react/react-native/0.64.1/react-native-0.64.1.aar.sha1 +0 -1
  38. package/android/com/facebook/react/react-native/0.64.1/react-native-0.64.1.pom.md5 +0 -1
  39. package/android/com/facebook/react/react-native/0.64.1/react-native-0.64.1.pom.sha1 +0 -1
@@ -1,4 +1,4 @@
1
- VERSION_NAME=0.64.1
1
+ VERSION_NAME=0.64.2
2
2
  GROUP=com.facebook.react
3
3
 
4
4
  POM_NAME=ReactNative
@@ -7,7 +7,9 @@
7
7
 
8
8
  #include <../instrumentation/HermesMemoryDumper.h>
9
9
  #include <HermesExecutorFactory.h>
10
+ #include <android/log.h>
10
11
  #include <fbjni/fbjni.h>
12
+ #include <glog/logging.h>
11
13
  #include <hermes/Public/GCConfig.h>
12
14
  #include <hermes/Public/RuntimeConfig.h>
13
15
  #include <jni.h>
@@ -21,6 +23,13 @@
21
23
  namespace facebook {
22
24
  namespace react {
23
25
 
26
+ static void hermesFatalHandler(const std::string &reason) {
27
+ LOG(ERROR) << "Hermes Fatal: " << reason << "\n";
28
+ __android_log_assert(nullptr, "Hermes", "%s", reason.c_str());
29
+ }
30
+
31
+ static std::once_flag flag;
32
+
24
33
  static ::hermes::vm::RuntimeConfig makeRuntimeConfig(jlong heapSizeMB) {
25
34
  namespace vm = ::hermes::vm;
26
35
  auto gcConfigBuilder =
@@ -62,6 +71,9 @@ class HermesExecutorHolder
62
71
  jni::alias_ref<jclass>) {
63
72
  JReactMarker::setLogPerfMarkerIfNeeded();
64
73
 
74
+ std::call_once(flag, []() {
75
+ facebook::hermes::HermesRuntime::setFatalHandler(hermesFatalHandler);
76
+ });
65
77
  return makeCxxInstance(
66
78
  std::make_unique<HermesExecutorFactory>(installBindings));
67
79
  }
@@ -71,6 +83,9 @@ class HermesExecutorHolder
71
83
  jlong heapSizeMB) {
72
84
  JReactMarker::setLogPerfMarkerIfNeeded();
73
85
  auto runtimeConfig = makeRuntimeConfig(heapSizeMB);
86
+ std::call_once(flag, []() {
87
+ facebook::hermes::HermesRuntime::setFatalHandler(hermesFatalHandler);
88
+ });
74
89
  return makeCxxInstance(std::make_unique<HermesExecutorFactory>(
75
90
  installBindings, JSIExecutor::defaultTimeoutInvoker, runtimeConfig));
76
91
  }
@@ -756,6 +756,7 @@ public class ReactRootView extends FrameLayout implements RootView, ReactRoot {
756
756
  return;
757
757
  }
758
758
  mDeviceRotation = rotation;
759
+ DisplayMetricsHolder.initDisplayMetrics(getContext().getApplicationContext());
759
760
  emitOrientationChanged(rotation);
760
761
  }
761
762
 
@@ -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", 1,
20
+ "patch", 2,
21
21
  "prerelease", null);
22
22
  }
@@ -86,9 +86,18 @@ public class UIManagerHelper {
86
86
  }
87
87
  }
88
88
  CatalystInstance catalystInstance = context.getCatalystInstance();
89
- return uiManagerType == FABRIC
90
- ? (UIManager) catalystInstance.getJSIModule(JSIModuleType.UIManager)
91
- : catalystInstance.getNativeModule(UIManagerModule.class);
89
+ try {
90
+ return uiManagerType == FABRIC
91
+ ? (UIManager) catalystInstance.getJSIModule(JSIModuleType.UIManager)
92
+ : catalystInstance.getNativeModule(UIManagerModule.class);
93
+ } catch (IllegalArgumentException ex) {
94
+ // TODO T67518514 Clean this up once we migrate everything over to bridgeless mode
95
+ ReactSoftException.logSoftException(
96
+ "UIManagerHelper",
97
+ new ReactNoCrashSoftException(
98
+ "Cannot get UIManager for UIManagerType: " + uiManagerType));
99
+ return catalystInstance.getNativeModule(UIManagerModule.class);
100
+ }
92
101
  }
93
102
 
94
103
  /**
@@ -419,11 +419,10 @@ public class ReactEditText extends AppCompatEditText
419
419
  @Override
420
420
  public void setInputType(int type) {
421
421
  Typeface tf = super.getTypeface();
422
- // Input type password defaults to monospace font, so we need to re-apply the font
423
- super.setTypeface(tf);
424
-
425
422
  super.setInputType(type);
426
423
  mStagedInputType = type;
424
+ // Input type password defaults to monospace font, so we need to re-apply the font
425
+ super.setTypeface(tf);
427
426
 
428
427
  /**
429
428
  * If set forces multiline on input, because of a restriction on Android source that enables
@@ -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 = 1;
20
+ int32_t Patch = 2;
21
21
  std::string_view Prerelease = "";
22
22
  } ReactNativeVersion;
23
23
 
@@ -0,0 +1 @@
1
+ e8a3a3f036a7a55542771d47423f418a
@@ -0,0 +1 @@
1
+ 9a9a2a82e3c0ccab2be64811dbcf410daaad0606
@@ -0,0 +1 @@
1
+ 800c212ea74543460073cf215e14ecc1
@@ -0,0 +1 @@
1
+ e7cc76356f65928f018b08474ee2d7531da0c6a7
@@ -0,0 +1 @@
1
+ a1f4484c294eb3e3e436da5edee9c0c5
@@ -0,0 +1 @@
1
+ 01a1fcfa725f135acc21e96ed71ff432b1fc553f
@@ -4,7 +4,7 @@
4
4
  <modelVersion>4.0.0</modelVersion>
5
5
  <groupId>com.facebook.react</groupId>
6
6
  <artifactId>react-native</artifactId>
7
- <version>0.64.1</version>
7
+ <version>0.64.2</version>
8
8
  <packaging>aar</packaging>
9
9
  <name>ReactNative</name>
10
10
  <description>A framework for building native apps with React</description>
@@ -0,0 +1 @@
1
+ 389f95f84193a6364d9a78816107b307
@@ -0,0 +1 @@
1
+ 48fcceb199d9f1fa6010c5e9e54d824cb21ce869
@@ -3,10 +3,10 @@
3
3
  <groupId>com.facebook.react</groupId>
4
4
  <artifactId>react-native</artifactId>
5
5
  <versioning>
6
- <release>0.64.1</release>
6
+ <release>0.64.2</release>
7
7
  <versions>
8
- <version>0.64.1</version>
8
+ <version>0.64.2</version>
9
9
  </versions>
10
- <lastUpdated>20210505095903</lastUpdated>
10
+ <lastUpdated>20210603172949</lastUpdated>
11
11
  </versioning>
12
12
  </metadata>
@@ -1 +1 @@
1
- b220f201ee32c9fac56cfd1a49df4061
1
+ bbff08476171883317414c491685e186
@@ -1 +1 @@
1
- 245a0beb4b76525aa3bfba0d6698beaa3c9170a8
1
+ 9cd18d3514fed67424012c4c3b34b3e533a63c7a
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native",
3
- "version": "0.64.1",
3
+ "version": "0.64.2",
4
4
  "bin": "./cli.js",
5
5
  "description": "A framework for building native apps using React",
6
6
  "license": "MIT",
@@ -84,9 +84,9 @@
84
84
  },
85
85
  "dependencies": {
86
86
  "@jest/create-cache-key-function": "^26.5.0",
87
- "@react-native-community/cli": "^5.0.1-alpha.0",
88
- "@react-native-community/cli-platform-android": "^5.0.1-alpha.0",
89
- "@react-native-community/cli-platform-ios": "^5.0.1-alpha.0",
87
+ "@react-native-community/cli": "^5.0.1-alpha.1",
88
+ "@react-native-community/cli-platform-android": "^5.0.1-alpha.1",
89
+ "@react-native-community/cli-platform-ios": "^5.0.1-alpha.1",
90
90
  "@react-native/assets": "1.0.0",
91
91
  "@react-native/normalize-color": "1.0.0",
92
92
  "@react-native/polyfills": "1.0.0",
package/react.gradle CHANGED
@@ -28,17 +28,11 @@ def detectCliPath(config) {
28
28
  if (config.cliPath) {
29
29
  return config.cliPath
30
30
  }
31
-
32
- def cliPath = ["node", "-e", "console.log(require('react-native/cli').bin);"].execute([], projectDir).text.trim()
33
-
34
- if (cliPath) {
35
- return cliPath
36
- } else if (new File("${projectDir}/../../node_modules/react-native/cli.js").exists()) {
31
+ if (new File("${projectDir}/../../node_modules/react-native/cli.js").exists()) {
37
32
  return "${projectDir}/../../node_modules/react-native/cli.js"
38
- } else {
39
- throw new Exception("Couldn't determine CLI location. " +
40
- "Please set `project.ext.react.cliPath` to the path of the react-native cli.js");
41
33
  }
34
+ throw new Exception("Couldn't determine CLI location. " +
35
+ "Please set `project.ext.react.cliPath` to the path of the react-native cli.js");
42
36
  }
43
37
 
44
38
  def composeSourceMapsPath = config.composeSourceMapsPath ?: "node_modules/react-native/scripts/compose-source-maps.js"
@@ -28,4 +28,10 @@ if [[ ! -x node && -d ${HOME}/.anyenv/bin ]]; then
28
28
  if [[ "$(anyenv envs | grep -c ndenv )" -eq 1 ]]; then
29
29
  eval "$(anyenv init -)"
30
30
  fi
31
- fi
31
+ fi
32
+
33
+ # Support Homebrew on M1
34
+ HOMEBREW_M1_BIN=/opt/homebrew/bin
35
+ if [[ -d $HOMEBREW_M1_BIN && ! $PATH =~ $HOMEBREW_M1_BIN ]]; then
36
+ export PATH="$HOMEBREW_M1_BIN:$PATH"
37
+ fi
@@ -11,7 +11,7 @@
11
11
  },
12
12
  "dependencies": {
13
13
  "react": "17.0.1",
14
- "react-native": "0.64.1"
14
+ "react-native": "0.64.2"
15
15
  },
16
16
  "devDependencies": {
17
17
  "@babel/core": "^7.12.9",
@@ -1 +0,0 @@
1
- 09d270e4dc650c66c66f21cd3a26cc1d
@@ -1 +0,0 @@
1
- ad000da60d5765563b78d2a9b747d2a23a11ae1f
@@ -1 +0,0 @@
1
- 7bde06a5c470849c45b5bf7d23009102
@@ -1 +0,0 @@
1
- 4c78a72dd3d48bfc8fd0c6d69d6bba63f65d43d4
@@ -1 +0,0 @@
1
- 91e7c6e64abfc89d7efde55e7c0b75c1
@@ -1 +0,0 @@
1
- b7d90735f0ed00dbfabb6d0cd247b1d2231d94fe
@@ -1 +0,0 @@
1
- dfb2a08f9a0114e4c0611554ccf84c07
@@ -1 +0,0 @@
1
- ab1f3f7468abdced9b82330e052bbd804580f57e