File tree 1 file changed +6
-4
lines changed
1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -27,16 +27,17 @@ following:
27
27
If you followed the [ Background Processing] ( https://github.com/agencyenterprise/react-native-health#background-processing )
28
28
step in the README, you can skip this one.
29
29
30
- To setup that in your project, in XCode open your ` ios/AppDelegate.m ` file and uncomment the
31
- lines with a comment ` Uncomment this line to use background observers ` :
30
+ To setup that in your project, in XCode open your ` ios/AppDelegate.m ` file and add the
31
+ following statements :
32
32
33
33
34
34
``` objective-c
35
35
#import " AppDelegate.h"
36
36
37
37
...
38
38
39
- // #import "RCTAppleHealthKit.h" // <-- Uncomment this line to use background observers
39
+ /* Add the library import at the top of AppDelegate.m */
40
+ #import " RCTAppleHealthKit.h"
40
41
41
42
...
42
43
@@ -50,7 +51,8 @@ lines with a comment `Uncomment this line to use background observers`:
50
51
51
52
...
52
53
53
- // [[ RCTAppleHealthKit new] initializeBackgroundObservers: bridge ] ; // <-- Uncomment this line to use background observers
54
+ /* Add Background initializer for HealthKit * /
55
+ [[ RCTAppleHealthKit new] initializeBackgroundObservers: bridge ] ;
54
56
55
57
...
56
58
You can’t perform that action at this time.
0 commit comments