-
Notifications
You must be signed in to change notification settings - Fork 281
Open
Labels
bugSomething isn't workingSomething isn't working
Description
The current documentation for react-native-health only provides setup instructions for Objective-C AppDelegate files. However, React Native 0.77+ defaults to Swift AppDelegate files, making the current setup instructions incompatible with newer React Native projects.
Current Documentation Issue
The current iOS setup documentation shows:
objc
#import "AppDelegate.h"
/* Add the library import at the top of AppDelegate.m */
#import "RCTAppleHealthKit.h"
@implementation AppDelegate
- (BOOL)application:(UIApplication *)application
didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
/* Add Background initializer for HealthKit */
[[RCTAppleHealthKit new] initializeBackgroundObservers:bridge];
return YES;
}
Expected Solution
The documentation should include Swift AppDelegate setup instructions for React Native 0.77+ projects, which use AppDelegate.swift by default.
Suggested Fix
Add a new section to the iOS setup documentation for Swift AppDelegate
Include both standard RCTAppDelegate and custom AppDelegate scenarios
Update the README with clear instructions for React Native 0.77+ projects
ozcankrks, luizvnegrini, ilialezhnev, rahimn20, shinderohitt and 3 more
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working