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.
@@ -17,7 +17,7 @@ const version: $ReadOnly<{
17
17
  major: 0,
18
18
  minor: 74,
19
19
  patch: 0,
20
- prerelease: 'rc.0',
20
+ prerelease: 'rc.1',
21
21
  };
22
22
 
23
23
  module.exports = {version};
@@ -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
  */
@@ -24,7 +24,7 @@ NSDictionary* RCTGetReactNativeVersion(void)
24
24
  RCTVersionMajor: @(0),
25
25
  RCTVersionMinor: @(74),
26
26
  RCTVersionPatch: @(0),
27
- RCTVersionPrerelease: @"rc.0",
27
+ RCTVersionPrerelease: @"rc.1",
28
28
  };
29
29
  });
30
30
  return __rnVersion;
@@ -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
- // Not implemented yet: provide pure-C++ NativeModules here.
66
- return nullptr;
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(
@@ -1,4 +1,4 @@
1
- VERSION_NAME=0.74.0-rc.0
1
+ VERSION_NAME=0.74.0-rc.1
2
2
  react.internal.publishingGroup=com.facebook.react
3
3
 
4
4
  android.useAndroidX=true
@@ -18,5 +18,5 @@ public class ReactNativeVersion {
18
18
  "major", 0,
19
19
  "minor", 74,
20
20
  "patch", 0,
21
- "prerelease", "rc.0");
21
+ "prerelease", "rc.1");
22
22
  }
@@ -119,7 +119,7 @@ class BridgelessDevSupportManager extends DevSupportManagerBase {
119
119
 
120
120
  @Override
121
121
  public void onJSBundleLoadedFromServer() {
122
- throw new IllegalStateException("Not implemented for bridgeless mode");
122
+ // Not implemented
123
123
  }
124
124
 
125
125
  @Override
@@ -18,7 +18,7 @@ constexpr struct {
18
18
  int32_t Major = 0;
19
19
  int32_t Minor = 74;
20
20
  int32_t Patch = 0;
21
- std::string_view Prerelease = "rc.0";
21
+ std::string_view Prerelease = "rc.1";
22
22
  } ReactNativeVersion;
23
23
 
24
24
  } // namespace facebook::react
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.0",
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.0",
102
- "@react-native-community/cli-platform-android": "13.6.0",
103
- "@react-native-community/cli-platform-ios": "13.6.0",
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.1",
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
@@ -11,7 +11,7 @@
11
11
  },
12
12
  "dependencies": {
13
13
  "react": "18.2.0",
14
- "react-native": "0.74.0-rc.0"
14
+ "react-native": "0.74.0-rc.1"
15
15
  },
16
16
  "devDependencies": {
17
17
  "@babel/core": "^7.20.0",
Binary file
@@ -1,7 +0,0 @@
1
- distributionBase=GRADLE_USER_HOME
2
- distributionPath=wrapper/dists
3
- distributionUrl=https\://services.gradle.org/distributions/gradle-8.5-all.zip
4
- networkTimeout=10000
5
- validateDistributionUrl=true
6
- zipStoreBase=GRADLE_USER_HOME
7
- zipStorePath=wrapper/dists