react-native 0.74.0-rc.0 → 0.74.0-rc.1
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/Libraries/Lists/FlatList.js +0 -1
- package/React/Base/RCTVersion.m +1 -1
- package/ReactAndroid/cmake-utils/default-app-setup/OnLoad.cpp +10 -2
- package/ReactAndroid/gradle.properties +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/modules/systeminfo/ReactNativeVersion.java +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/runtime/BridgelessDevSupportManager.java +1 -1
- package/ReactCommon/cxxreact/ReactNativeVersion.h +1 -1
- package/cli.js +13 -0
- package/package.json +5 -5
- package/sdks/hermesc/osx-bin/hermes +0 -0
- package/sdks/hermesc/osx-bin/hermesc +0 -0
- package/sdks/hermesc/win64-bin/hermesc.exe +0 -0
- package/template/package.json +1 -1
- package/template/android/gradle-wrapper.jar +0 -0
- package/template/android/gradle-wrapper.properties +0 -7
|
@@ -308,7 +308,6 @@ export type Props<ItemT> = {
|
|
|
308
308
|
* Also inherits [ScrollView Props](docs/scrollview.html#props), unless it is nested in another FlatList of same orientation.
|
|
309
309
|
*/
|
|
310
310
|
class FlatList<ItemT> extends React.PureComponent<Props<ItemT>, void> {
|
|
311
|
-
props: Props<ItemT>;
|
|
312
311
|
/**
|
|
313
312
|
* Scrolls to the end of the content. May be janky without `getItemLayout` prop.
|
|
314
313
|
*/
|
package/React/Base/RCTVersion.m
CHANGED
|
@@ -62,8 +62,16 @@ void registerComponents(
|
|
|
62
62
|
std::shared_ptr<TurboModule> cxxModuleProvider(
|
|
63
63
|
const std::string& name,
|
|
64
64
|
const std::shared_ptr<CallInvoker>& jsInvoker) {
|
|
65
|
-
//
|
|
66
|
-
|
|
65
|
+
// Here you can provide your CXX Turbo Modules coming from
|
|
66
|
+
// either your application or from external libraries. The approach to follow
|
|
67
|
+
// is similar to the following (for a module called `NativeCxxModuleExample`):
|
|
68
|
+
//
|
|
69
|
+
// if (name == NativeCxxModuleExample::kModuleName) {
|
|
70
|
+
// return std::make_shared<NativeCxxModuleExample>(jsInvoker);
|
|
71
|
+
// }
|
|
72
|
+
|
|
73
|
+
// And we fallback to the CXX module providers autolinked by RN CLI
|
|
74
|
+
return rncli_cxxModuleProvider(name, jsInvoker);
|
|
67
75
|
}
|
|
68
76
|
|
|
69
77
|
std::shared_ptr<TurboModule> javaModuleProvider(
|
package/ReactAndroid/src/main/java/com/facebook/react/runtime/BridgelessDevSupportManager.java
CHANGED
|
@@ -119,7 +119,7 @@ class BridgelessDevSupportManager extends DevSupportManagerBase {
|
|
|
119
119
|
|
|
120
120
|
@Override
|
|
121
121
|
public void onJSBundleLoadedFromServer() {
|
|
122
|
-
|
|
122
|
+
// Not implemented
|
|
123
123
|
}
|
|
124
124
|
|
|
125
125
|
@Override
|
package/cli.js
CHANGED
|
@@ -39,6 +39,16 @@ async function getLatestVersion(registryHost = DEFAULT_REGISTRY_HOST) {
|
|
|
39
39
|
});
|
|
40
40
|
}
|
|
41
41
|
|
|
42
|
+
/**
|
|
43
|
+
* Warn when users are using `npx react-native init`, to raise awareness of the changes from RFC 0759.
|
|
44
|
+
* @see https://github.com/react-native-community/discussions-and-proposals/tree/main/proposals/0759-react-native-frameworks.md
|
|
45
|
+
*/
|
|
46
|
+
function warnWhenRunningInit() {
|
|
47
|
+
if (process.argv[2] === 'init') {
|
|
48
|
+
console.warn('\nRunning: npx @react-native-community/cli init\n');
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
42
52
|
/**
|
|
43
53
|
* npx react-native -> @react-native-community/cli
|
|
44
54
|
*
|
|
@@ -66,6 +76,9 @@ async function main() {
|
|
|
66
76
|
// Ignore errors, since it's a nice to have warning
|
|
67
77
|
}
|
|
68
78
|
}
|
|
79
|
+
|
|
80
|
+
warnWhenRunningInit();
|
|
81
|
+
|
|
69
82
|
return cli.run(name);
|
|
70
83
|
}
|
|
71
84
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-native",
|
|
3
|
-
"version": "0.74.0-rc.
|
|
3
|
+
"version": "0.74.0-rc.1",
|
|
4
4
|
"description": "A framework for building native apps using React",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -98,12 +98,12 @@
|
|
|
98
98
|
},
|
|
99
99
|
"dependencies": {
|
|
100
100
|
"@jest/create-cache-key-function": "^29.6.3",
|
|
101
|
-
"@react-native-community/cli": "13.6.
|
|
102
|
-
"@react-native-community/cli-platform-android": "13.6.
|
|
103
|
-
"@react-native-community/cli-platform-ios": "13.6.
|
|
101
|
+
"@react-native-community/cli": "13.6.1",
|
|
102
|
+
"@react-native-community/cli-platform-android": "13.6.1",
|
|
103
|
+
"@react-native-community/cli-platform-ios": "13.6.1",
|
|
104
104
|
"@react-native/assets-registry": "0.74.0",
|
|
105
105
|
"@react-native/codegen": "0.74.1",
|
|
106
|
-
"@react-native/community-cli-plugin": "0.74.
|
|
106
|
+
"@react-native/community-cli-plugin": "0.74.2",
|
|
107
107
|
"@react-native/gradle-plugin": "0.74.1",
|
|
108
108
|
"@react-native/js-polyfills": "0.74.0",
|
|
109
109
|
"@react-native/normalize-colors": "0.74.1",
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/template/package.json
CHANGED
|
Binary file
|