Skip to main content

Version

Current React Native SDK Version: 4.7.13

Resources

Requirements

  • iOS Version: 13.0+.
  • Xcode 26 is required.
  • Android Version: 9.0+ (Level 28, P, Pie)

SDK Installation

Install the react-native-spike-sdk package from npm:

iOS Setup Guide

Use pod install and pod update commands from ios/ folder of your app to install/update SpikeSDK.

iOS Signing & Capabilities

To add HealthKit support to your application’s Capabilities.
  • Open the iOS/ folder of your project in Xcode
  • Select the project name in the left sidebar
  • Open the Signing & Capabilities section
  • In the main view select ’+ Capability’ and double-click HealthKit
More details you can find here.

Info.plist

Add HealthKit permissions descriptions to your Info.plist file:

Android Setup Guide

To add the SDK to your project, you have to add the following to your project’s build.gradle file in the repositories block.

Android Permissions

Include the necessary health permissions in your AndroidManifest.xml to fully leverage the Spike SDK and access data from apps integrated with Health Connect. Please refer to this guide for details on the required permissions. Note: Only request permissions essential to your app’s functionality. Requesting unused permissions may lead to app store rejections.
Add an intent filter to your activity definition so that you can request the permissions at runtime.
To handle Android 14, you also need to add activity-alias to your AndroidManifest.xml It is just a wrapper for the activity that requests permissions, so no real activity is necessary.