fit-utils v1.0.4
npm i ./wearable cd ios pod install
setup Fitbit npm install qs iOS 1.Open ios/your_project_name.xcodeproj 2.In the XCode window. click on your project name in the sidebar and go to the Build Settings tab in the main window. Once there, use the search option and find search. 3.In the Header Search Path section, click once and add the path as follows: $(SRCROOT)/../node_modules/react-native/Libraries 4.Once you have added the path, double-click on the whole link and choose the recursive option from the drop-down. 5.In TARGET, look for the Info tab and click on URL Types, enter app bundle identifier in Identifier, fitbit callback uri in URL Schemas 6.open the iOS folder and find AppDelegate.m file and make some additions // add this #import "RCTLinkingManager.h"
@implementation AppDelegate
// add this
- (BOOL)application:(UIApplication )application openURL:(NSURL )url sourceApplication:(NSString *)sourceApplication annotation:(id)annotation { return RCTLinkingManager application:application openURL:url sourceApplication:sourceApplication annotation:annotation; }
setup Google Fitbit
setup HealthKit