-
Notifications
You must be signed in to change notification settings - Fork 257
Support React Native 0.79 #2410
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
b625c26
6de1670
06fc1cc
80815df
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -138,7 +138,10 @@ | |
| { | ||
| "pipeline": ".buildkite/basic/react-native-cli-pipeline.yml", | ||
| "block": ".buildkite/block/react-native-cli-pipeline.block.yml", | ||
| "paths": [] | ||
| "paths": [ | ||
| "test/react-native-cli", | ||
| "packages/react-native-cli" | ||
| ] | ||
|
Comment on lines
+141
to
+144
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 👍🏻 |
||
| }, | ||
| { | ||
| "pipeline": ".buildkite/basic/expo-pipeline.yml", | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,51 @@ | ||
| import Bugsnag | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. just to confirm, this is the only change between these versions?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There's also the The reason we need new before/after fixture files is because the whole |
||
| import UIKit | ||
| import React | ||
| import React_RCTAppDelegate | ||
| import ReactAppDependencyProvider | ||
|
|
||
| @main | ||
| class AppDelegate: UIResponder, UIApplicationDelegate { | ||
| var window: UIWindow? | ||
|
|
||
| var reactNativeDelegate: ReactNativeDelegate? | ||
| var reactNativeFactory: RCTReactNativeFactory? | ||
|
|
||
| func application( | ||
| _ application: UIApplication, | ||
| didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]? = nil | ||
| ) -> Bool { | ||
| Bugsnag.start() | ||
|
|
||
| let delegate = ReactNativeDelegate() | ||
| let factory = RCTReactNativeFactory(delegate: delegate) | ||
| delegate.dependencyProvider = RCTAppDependencyProvider() | ||
|
|
||
| reactNativeDelegate = delegate | ||
| reactNativeFactory = factory | ||
|
|
||
| window = UIWindow(frame: UIScreen.main.bounds) | ||
|
|
||
| factory.startReactNative( | ||
| withModuleName: "reactnative", | ||
| in: window, | ||
| launchOptions: launchOptions | ||
| ) | ||
|
|
||
| return true | ||
| } | ||
| } | ||
|
|
||
| class ReactNativeDelegate: RCTDefaultReactNativeFactoryDelegate { | ||
| override func sourceURL(for bridge: RCTBridge) -> URL? { | ||
| self.bundleURL() | ||
| } | ||
|
|
||
| override func bundleURL() -> URL? { | ||
| #if DEBUG | ||
| RCTBundleURLProvider.sharedSettings().jsBundleURL(forBundleRoot: "index") | ||
| #else | ||
| Bundle.main.url(forResource: "main", withExtension: "jsbundle") | ||
| #endif | ||
| } | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,48 @@ | ||
| import UIKit | ||
| import React | ||
| import React_RCTAppDelegate | ||
| import ReactAppDependencyProvider | ||
|
|
||
| @main | ||
| class AppDelegate: UIResponder, UIApplicationDelegate { | ||
| var window: UIWindow? | ||
|
|
||
| var reactNativeDelegate: ReactNativeDelegate? | ||
| var reactNativeFactory: RCTReactNativeFactory? | ||
|
|
||
| func application( | ||
| _ application: UIApplication, | ||
| didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]? = nil | ||
| ) -> Bool { | ||
| let delegate = ReactNativeDelegate() | ||
| let factory = RCTReactNativeFactory(delegate: delegate) | ||
| delegate.dependencyProvider = RCTAppDependencyProvider() | ||
|
|
||
| reactNativeDelegate = delegate | ||
| reactNativeFactory = factory | ||
|
|
||
| window = UIWindow(frame: UIScreen.main.bounds) | ||
|
|
||
| factory.startReactNative( | ||
| withModuleName: "reactnative", | ||
| in: window, | ||
| launchOptions: launchOptions | ||
| ) | ||
|
|
||
| return true | ||
| } | ||
| } | ||
|
|
||
| class ReactNativeDelegate: RCTDefaultReactNativeFactoryDelegate { | ||
| override func sourceURL(for bridge: RCTBridge) -> URL? { | ||
| self.bundleURL() | ||
| } | ||
|
|
||
| override func bundleURL() -> URL? { | ||
| #if DEBUG | ||
| RCTBundleURLProvider.sharedSettings().jsBundleURL(forBundleRoot: "index") | ||
| #else | ||
| Bundle.main.url(forResource: "main", withExtension: "jsbundle") | ||
| #endif | ||
| } | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should we drop 0.72 from the matrix yet? I can't remember what the decision was on the support matrix, but 0.76 is now unsupported by react native.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think we can drop 0.72 - our test matrix policy is the latest 3 versions, plus even versions back to 0.72