react-native 0.64.2 → 0.64.4
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.
- package/Libraries/Core/ReactNativeVersion.js +1 -1
- package/README.md +1 -1
- package/React/Base/RCTVersion.m +1 -1
- package/React/CoreModules/RCTAppearance.mm +3 -1
- package/ReactAndroid/gradle.properties +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/ReactActivity.java +7 -0
- package/ReactAndroid/src/main/java/com/facebook/react/ReactActivityDelegate.java +7 -0
- package/ReactAndroid/src/main/java/com/facebook/react/modules/appearance/AppearanceModule.java +10 -1
- package/ReactAndroid/src/main/java/com/facebook/react/modules/systeminfo/ReactNativeVersion.java +1 -1
- package/ReactCommon/cxxreact/ReactNativeVersion.h +1 -1
- package/android/com/facebook/react/react-native/{0.64.2/react-native-0.64.2-javadoc.jar → 0.64.4/react-native-0.64.4-javadoc.jar} +0 -0
- package/android/com/facebook/react/react-native/0.64.4/react-native-0.64.4-javadoc.jar.md5 +1 -0
- package/android/com/facebook/react/react-native/0.64.4/react-native-0.64.4-javadoc.jar.sha1 +1 -0
- package/android/com/facebook/react/react-native/{0.64.2/react-native-0.64.2-sources.jar → 0.64.4/react-native-0.64.4-sources.jar} +0 -0
- package/android/com/facebook/react/react-native/0.64.4/react-native-0.64.4-sources.jar.md5 +1 -0
- package/android/com/facebook/react/react-native/0.64.4/react-native-0.64.4-sources.jar.sha1 +1 -0
- package/android/com/facebook/react/react-native/{0.64.2/react-native-0.64.2.aar → 0.64.4/react-native-0.64.4.aar} +0 -0
- package/android/com/facebook/react/react-native/0.64.4/react-native-0.64.4.aar.md5 +1 -0
- package/android/com/facebook/react/react-native/0.64.4/react-native-0.64.4.aar.sha1 +1 -0
- package/android/com/facebook/react/react-native/{0.64.2/react-native-0.64.2.pom → 0.64.4/react-native-0.64.4.pom} +1 -1
- package/android/com/facebook/react/react-native/0.64.4/react-native-0.64.4.pom.md5 +1 -0
- package/android/com/facebook/react/react-native/0.64.4/react-native-0.64.4.pom.sha1 +1 -0
- package/android/com/facebook/react/react-native/maven-metadata.xml +3 -3
- package/android/com/facebook/react/react-native/maven-metadata.xml.md5 +1 -1
- package/android/com/facebook/react/react-native/maven-metadata.xml.sha1 +1 -1
- package/package.json +1 -1
- package/react.gradle +18 -0
- package/template/package.json +1 -1
- package/android/com/facebook/react/react-native/0.64.2/react-native-0.64.2-javadoc.jar.md5 +0 -1
- package/android/com/facebook/react/react-native/0.64.2/react-native-0.64.2-javadoc.jar.sha1 +0 -1
- package/android/com/facebook/react/react-native/0.64.2/react-native-0.64.2-sources.jar.md5 +0 -1
- package/android/com/facebook/react/react-native/0.64.2/react-native-0.64.2-sources.jar.sha1 +0 -1
- package/android/com/facebook/react/react-native/0.64.2/react-native-0.64.2.aar.md5 +0 -1
- package/android/com/facebook/react/react-native/0.64.2/react-native-0.64.2.aar.sha1 +0 -1
- package/android/com/facebook/react/react-native/0.64.2/react-native-0.64.2.pom.md5 +0 -1
- package/android/com/facebook/react/react-native/0.64.2/react-native-0.64.2.pom.sha1 +0 -1
package/README.md
CHANGED
|
@@ -67,7 +67,7 @@ React Native is developed and supported by many companies and individual core co
|
|
|
67
67
|
|
|
68
68
|
## 📋 Requirements
|
|
69
69
|
|
|
70
|
-
React Native apps may target iOS
|
|
70
|
+
React Native apps may target iOS 11.0 and Android 5.0 (API 21) or newer. You may use Windows, macOS, or Linux as your development operating system, though building and running iOS apps is limited to macOS. Tools like [Expo](https://expo.io) can be used to work around this.
|
|
71
71
|
|
|
72
72
|
## 🎉 Building your first React Native app
|
|
73
73
|
|
package/React/Base/RCTVersion.m
CHANGED
|
@@ -89,7 +89,9 @@ RCT_EXPORT_MODULE(Appearance)
|
|
|
89
89
|
|
|
90
90
|
RCT_EXPORT_SYNCHRONOUS_TYPED_METHOD(NSString *, getColorScheme)
|
|
91
91
|
{
|
|
92
|
-
_currentColorScheme
|
|
92
|
+
if (_currentColorScheme == nil) {
|
|
93
|
+
_currentColorScheme = RCTColorSchemePreference(nil);
|
|
94
|
+
}
|
|
93
95
|
return _currentColorScheme;
|
|
94
96
|
}
|
|
95
97
|
|
|
@@ -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;
|
|
@@ -120,6 +121,12 @@ public abstract class ReactActivity extends AppCompatActivity
|
|
|
120
121
|
mDelegate.onWindowFocusChanged(hasFocus);
|
|
121
122
|
}
|
|
122
123
|
|
|
124
|
+
@Override
|
|
125
|
+
public void onConfigurationChanged(Configuration newConfig) {
|
|
126
|
+
super.onConfigurationChanged(newConfig);
|
|
127
|
+
mDelegate.onConfigurationChanged(newConfig);
|
|
128
|
+
}
|
|
129
|
+
|
|
123
130
|
protected final ReactNativeHost getReactNativeHost() {
|
|
124
131
|
return mDelegate.getReactNativeHost();
|
|
125
132
|
}
|
|
@@ -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) {
|
package/ReactAndroid/src/main/java/com/facebook/react/modules/appearance/AppearanceModule.java
CHANGED
|
@@ -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
|
-
|
|
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
|
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
0cf1898704af3a3cd4470758b4bc70b8
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
a1d1abeb460dcb7498ff846e12edb2ce9da6f47f
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
7b69f60dc716b0a2b90d6da4dd760596
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
33a9e5b0ca6d8bd2fa2987a1dfe1e6f424394fbd
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
b28536846176fc65c131909d81a6f2a7
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
29a4490b5c3802a8ce619024d604b16d68c0e369
|
|
@@ -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.
|
|
7
|
+
<version>0.64.4</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
|
+
3195a42e1a5965c0f813251cafe2b1ae
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
8c16192b94310132762c735699d20b791623a3ac
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
<groupId>com.facebook.react</groupId>
|
|
4
4
|
<artifactId>react-native</artifactId>
|
|
5
5
|
<versioning>
|
|
6
|
-
<release>0.64.
|
|
6
|
+
<release>0.64.4</release>
|
|
7
7
|
<versions>
|
|
8
|
-
<version>0.64.
|
|
8
|
+
<version>0.64.4</version>
|
|
9
9
|
</versions>
|
|
10
|
-
<lastUpdated>
|
|
10
|
+
<lastUpdated>20221107001930</lastUpdated>
|
|
11
11
|
</versioning>
|
|
12
12
|
</metadata>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
7d4f1ce08fdc6f6a817c2f5322dfeb98
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
b76e04ae0a91b9324981510ded443521eeef7196
|
package/package.json
CHANGED
package/react.gradle
CHANGED
|
@@ -348,3 +348,21 @@ afterEvaluate {
|
|
|
348
348
|
}
|
|
349
349
|
}
|
|
350
350
|
}
|
|
351
|
+
|
|
352
|
+
// Patch needed for https://github.com/facebook/react-native/issues/35210
|
|
353
|
+
// This is a patch to short-circuit the "+" dependencies inside the
|
|
354
|
+
// users' app/build.gradle file and the various .gradle files of libraries.
|
|
355
|
+
// As using plain "+" dependencies causes Gradle to always download the latest,
|
|
356
|
+
// this logic forces Gradle to use latest release in the minor series.
|
|
357
|
+
project.rootProject.allprojects {
|
|
358
|
+
// This extra afterEvaluate is needed due to how AGP 4.1.x is resolving
|
|
359
|
+
// Gradle configurations.
|
|
360
|
+
afterEvaluate {
|
|
361
|
+
configurations.all {
|
|
362
|
+
resolutionStrategy {
|
|
363
|
+
force "com.facebook.react:react-native:0.64.+"
|
|
364
|
+
force "com.facebook.react:hermes-engine:0.64.+"
|
|
365
|
+
}
|
|
366
|
+
}
|
|
367
|
+
}
|
|
368
|
+
}
|
package/template/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
e8a3a3f036a7a55542771d47423f418a
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
9a9a2a82e3c0ccab2be64811dbcf410daaad0606
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
800c212ea74543460073cf215e14ecc1
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
e7cc76356f65928f018b08474ee2d7531da0c6a7
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
a1f4484c294eb3e3e436da5edee9c0c5
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
01a1fcfa725f135acc21e96ed71ff432b1fc553f
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
389f95f84193a6364d9a78816107b307
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
48fcceb199d9f1fa6010c5e9e54d824cb21ce869
|