@react-native-community/template 0.88.0-rc.0-45b212d → 0.88.0-rc.2-c821f5d

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-native-community/template",
3
- "version": "0.88.0-rc.0-45b212d",
3
+ "version": "0.88.0-rc.2-c821f5d",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",
@@ -12,7 +12,7 @@
12
12
  "scripts": {
13
13
  "format": "prettier --write .",
14
14
  "test": "jest",
15
- "version": "0.88.0-rc.0"
15
+ "version": "0.88.0-rc.2"
16
16
  },
17
17
  "type": "commonjs",
18
18
  "files": [
@@ -1,48 +1,11 @@
1
1
  import UIKit
2
- import React
3
- import React_RCTAppDelegate
4
- import ReactAppDependencyProvider
5
2
 
6
3
  @main
7
4
  class AppDelegate: UIResponder, UIApplicationDelegate {
8
- var window: UIWindow?
9
-
10
- var reactNativeDelegate: ReactNativeDelegate?
11
- var reactNativeFactory: RCTReactNativeFactory?
12
-
13
5
  func application(
14
6
  _ application: UIApplication,
15
7
  didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]? = nil
16
8
  ) -> Bool {
17
- let delegate = ReactNativeDelegate()
18
- let factory = RCTReactNativeFactory(delegate: delegate)
19
- delegate.dependencyProvider = RCTAppDependencyProvider()
20
-
21
- reactNativeDelegate = delegate
22
- reactNativeFactory = factory
23
-
24
- window = UIWindow(frame: UIScreen.main.bounds)
25
-
26
- factory.startReactNative(
27
- withModuleName: "HelloWorld",
28
- in: window,
29
- launchOptions: launchOptions
30
- )
31
-
32
- return true
33
- }
34
- }
35
-
36
- class ReactNativeDelegate: RCTDefaultReactNativeFactoryDelegate {
37
- override func sourceURL(for bridge: RCTBridge) -> URL? {
38
- self.bundleURL()
39
- }
40
-
41
- override func bundleURL() -> URL? {
42
- #if DEBUG
43
- RCTBundleURLProvider.sharedSettings().jsBundleURL(forBundleRoot: "index")
44
- #else
45
- Bundle.main.url(forResource: "main", withExtension: "jsbundle")
46
- #endif
9
+ true
47
10
  }
48
11
  }
@@ -36,6 +36,25 @@
36
36
  </dict>
37
37
  <key>NSLocationWhenInUseUsageDescription</key>
38
38
  <string></string>
39
+ <key>RCTNewArchEnabled</key>
40
+ <true/>
41
+ <key>UIApplicationSceneManifest</key>
42
+ <dict>
43
+ <key>UIApplicationSupportsMultipleScenes</key>
44
+ <false/>
45
+ <key>UISceneConfigurations</key>
46
+ <dict>
47
+ <key>UIWindowSceneSessionRoleApplication</key>
48
+ <array>
49
+ <dict>
50
+ <key>UISceneConfigurationName</key>
51
+ <string>Default Configuration</string>
52
+ <key>UISceneDelegateClassName</key>
53
+ <string>$(PRODUCT_MODULE_NAME).SceneDelegate</string>
54
+ </dict>
55
+ </array>
56
+ </dict>
57
+ </dict>
39
58
  <key>UILaunchStoryboardName</key>
40
59
  <string>LaunchScreen</string>
41
60
  <key>UIRequiredDeviceCapabilities</key>
@@ -0,0 +1,56 @@
1
+ import React
2
+ import React_RCTAppDelegate
3
+ import ReactAppDependencyProvider
4
+ import UIKit
5
+
6
+ class SceneDelegate: RCTDefaultReactNativeFactoryDelegate, UIWindowSceneDelegate {
7
+ var window: UIWindow?
8
+ var reactNativeFactory: RCTReactNativeFactory?
9
+
10
+ func scene(
11
+ _ scene: UIScene,
12
+ willConnectTo session: UISceneSession,
13
+ options connectionOptions: UIScene.ConnectionOptions
14
+ ) {
15
+ guard let windowScene = scene as? UIWindowScene else {
16
+ return
17
+ }
18
+
19
+ dependencyProvider = RCTAppDependencyProvider()
20
+ reactNativeFactory = RCTReactNativeFactory(delegate: self)
21
+ window = UIWindow(windowScene: windowScene)
22
+
23
+ #if DEBUG
24
+ let devMenuConfiguration = RCTDevMenuConfiguration(
25
+ devMenuEnabled: true,
26
+ shakeGestureEnabled: true,
27
+ keyboardShortcutsEnabled: true
28
+ )
29
+ reactNativeFactory?.devMenuConfiguration = devMenuConfiguration
30
+ #endif
31
+
32
+ reactNativeFactory?.startReactNative(
33
+ withModuleName: "HelloWorld",
34
+ in: window,
35
+ connectionOptions: connectionOptions
36
+ )
37
+
38
+
39
+ }
40
+
41
+ func scene(_ scene: UIScene, openURLContexts URLContexts: Set<UIOpenURLContext>) {
42
+ RCTLinkingManager.scene(scene, openURLContexts: URLContexts)
43
+ }
44
+
45
+ func scene(_ scene: UIScene, continue userActivity: NSUserActivity) {
46
+ RCTLinkingManager.scene(scene, continue: userActivity)
47
+ }
48
+
49
+ override func bundleURL() -> URL? {
50
+ #if DEBUG
51
+ RCTBundleURLProvider.sharedSettings().jsBundleURL(forBundleRoot: "index")
52
+ #else
53
+ Bundle.main.url(forResource: "main", withExtension: "jsbundle")
54
+ #endif
55
+ }
56
+ }
@@ -10,6 +10,7 @@
10
10
  0C80B921A6F3F58F76C31292 /* libPods-HelloWorld.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 5DCACB8F33CDC322A6C60F78 /* libPods-HelloWorld.a */; };
11
11
  13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB51A68108700A75B9A /* Images.xcassets */; };
12
12
  761780ED2CA45674006654EE /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 761780EC2CA45674006654EE /* AppDelegate.swift */; };
13
+ 761780EF2CA45674006654EF /* SceneDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 761780EE2CA45674006654EF /* SceneDelegate.swift */; };
13
14
  81AB9BB82411601600AC10FF /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 81AB9BB72411601600AC10FF /* LaunchScreen.storyboard */; };
14
15
  /* End PBXBuildFile section */
15
16
 
@@ -22,6 +23,7 @@
22
23
  5709B34CF0A7D63546082F79 /* Pods-HelloWorld.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-HelloWorld.release.xcconfig"; path = "Target Support Files/Pods-HelloWorld/Pods-HelloWorld.release.xcconfig"; sourceTree = "<group>"; };
23
24
  5DCACB8F33CDC322A6C60F78 /* libPods-HelloWorld.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-HelloWorld.a"; sourceTree = BUILT_PRODUCTS_DIR; };
24
25
  761780EC2CA45674006654EE /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = AppDelegate.swift; path = HelloWorld/AppDelegate.swift; sourceTree = "<group>"; };
26
+ 761780EE2CA45674006654EF /* SceneDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = SceneDelegate.swift; path = HelloWorld/SceneDelegate.swift; sourceTree = "<group>"; };
25
27
  81AB9BB72411601600AC10FF /* LaunchScreen.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; name = LaunchScreen.storyboard; path = HelloWorld/LaunchScreen.storyboard; sourceTree = "<group>"; };
26
28
  ED297162215061F000B7C4FE /* JavaScriptCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = JavaScriptCore.framework; path = System/Library/Frameworks/JavaScriptCore.framework; sourceTree = SDKROOT; };
27
29
  /* End PBXFileReference section */
@@ -43,6 +45,7 @@
43
45
  children = (
44
46
  13B07FB51A68108700A75B9A /* Images.xcassets */,
45
47
  761780EC2CA45674006654EE /* AppDelegate.swift */,
48
+ 761780EE2CA45674006654EF /* SceneDelegate.swift */,
46
49
  13B07FB61A68108700A75B9A /* Info.plist */,
47
50
  81AB9BB72411601600AC10FF /* LaunchScreen.storyboard */,
48
51
  13B07FB81A68108700A75B9A /* PrivacyInfo.xcprivacy */,
@@ -245,6 +248,7 @@
245
248
  buildActionMask = 2147483647;
246
249
  files = (
247
250
  761780ED2CA45674006654EE /* AppDelegate.swift in Sources */,
251
+ 761780EF2CA45674006654EF /* SceneDelegate.swift in Sources */,
248
252
  );
249
253
  runOnlyForDeploymentPostprocessing = 0;
250
254
  };
@@ -10,9 +10,9 @@
10
10
  "test": "jest"
11
11
  },
12
12
  "dependencies": {
13
- "react": "19.2.3",
14
- "react-native": "0.88.0-rc.0",
15
- "@react-native/new-app-screen": "0.88.0-rc.0",
13
+ "react": "19.3.0",
14
+ "react-native": "0.88.0-rc.2",
15
+ "@react-native/new-app-screen": "0.88.0-rc.2",
16
16
  "react-native-safe-area-context": "^5.5.2"
17
17
  },
18
18
  "devDependencies": {
@@ -22,18 +22,18 @@
22
22
  "@react-native-community/cli": "20.2.0",
23
23
  "@react-native-community/cli-platform-android": "20.2.0",
24
24
  "@react-native-community/cli-platform-ios": "20.2.0",
25
- "@react-native/babel-preset": "0.88.0-rc.0",
26
- "@react-native/eslint-config": "0.88.0-rc.0",
27
- "@react-native/jest-preset": "0.88.0-rc.0",
28
- "@react-native/metro-config": "0.88.0-rc.0",
29
- "@react-native/typescript-config": "0.88.0-rc.0",
25
+ "@react-native/babel-preset": "0.88.0-rc.2",
26
+ "@react-native/eslint-config": "0.88.0-rc.2",
27
+ "@react-native/jest-preset": "0.88.0-rc.2",
28
+ "@react-native/metro-config": "0.88.0-rc.2",
29
+ "@react-native/typescript-config": "0.88.0-rc.2",
30
30
  "@types/jest": "^29.5.13",
31
31
  "@types/react": "^19.2.0",
32
32
  "@types/react-test-renderer": "^19.1.0",
33
33
  "eslint": "^8.19.0",
34
34
  "jest": "^29.6.3",
35
35
  "prettier": "2.8.8",
36
- "react-test-renderer": "19.2.3",
36
+ "react-test-renderer": "19.3.0",
37
37
  "typescript": "^6.0.3"
38
38
  },
39
39
  "engines": {