mirror of
https://github.com/inaturalist/iNaturalistReactNative.git
synced 2025-12-23 22:18:36 -05:00
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:
822
ios/Podfile.lock
822
ios/Podfile.lock
File diff suppressed because it is too large
Load Diff
@@ -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
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user