Update react-native to 0.79 (#3051)

* Upgrade helper: package.json

* Upgrade helper: gems

* Upgrade helper: Android

* Update AppDelegate

* Fix error in compiling

* Update package-lock.json

* Update Podfile.lock

* Update package-lock.json

* Update Podfile.lock

* Remove no longer needed mock

* Comment out entire test and not only the expect call

* Most other unit tests use this render helper function that

wraps the component in the entire app.

* Mock react-native exports as esModule

* Update .flowconfig

* Update Gemfile

* Revert "Comment out entire test and not only the expect call"

This reverts commit 8785f81529.
This commit is contained in:
Johannes Klein
2025-10-01 22:44:14 -05:00
committed by GitHub
parent b0e82c73e2
commit 9c90c2e45f
20 changed files with 1300 additions and 1133 deletions

View File

File diff suppressed because it is too large Load Diff

View File

@@ -1,6 +1,10 @@
#import <RCTAppDelegate.h>
#import <RCTDefaultReactNativeFactoryDelegate.h>
#import <RCTReactNativeFactory.h>
#import <UIKit/UIKit.h>
@interface AppDelegate : RCTAppDelegate
@interface AppDelegate : RCTDefaultReactNativeFactoryDelegate <UIApplicationDelegate>
@end
@property (nonatomic, strong, nonnull) UIWindow *window;
@property (nonatomic, strong, nonnull) RCTReactNativeFactory *reactNativeFactory;
@end

View File

@@ -5,6 +5,9 @@
#import <RNShareMenu/ShareMenuManager.h>
#import <React/RCTLinkingManager.h>
@interface AppDelegate ()
@end
@implementation AppDelegate
// https://reactnative.dev/docs/linking#get-the-deep-link
@@ -29,13 +32,17 @@
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
self.moduleName = @"iNaturalistReactNative";
self.reactNativeFactory = [[RCTReactNativeFactory alloc] initWithDelegate:self];
self.dependencyProvider = [RCTAppDependencyProvider new];
// You can add your custom initial props in the dictionary below.
// They will be passed down to the ViewController used by React Native.
self.initialProps = @{};
return [super application:application didFinishLaunchingWithOptions:launchOptions];
self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds];
[self.reactNativeFactory startReactNativeWithModuleName:@"iNaturalistReactNative"
inWindow:self.window
initialProperties:@{}
launchOptions:launchOptions];
return YES;
}
- (NSURL *)sourceURLForBridge:(RCTBridge *)bridge
@@ -46,7 +53,7 @@
- (NSURL *)bundleURL
{
#if DEBUG
return [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index"];
return [RCTBundleURLProvider.sharedSettings jsBundleURLForBundleRoot:@"index"];
#else
return [[NSBundle mainBundle] URLForResource:@"main" withExtension:@"jsbundle"];
#endif