Socket
Socket
Sign inDemoInstall

react-native-chartbeat

Package Overview
Dependencies
452
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    react-native-chartbeat

NOT FOR PRODUCTION USE.


Version published
Weekly downloads
1
Maintainers
1
Created
Weekly downloads
 

Readme

Source

react-native-react-native-chartbeat

NOT FOR PRODUCTION USE.

Currently developing for iOS only (WIP).

Getting started

$ npm install react-native-chartbeat --save || yarn add react-native-chartbeat

iOS
  1. In XCode, in the project navigator, right click LibrariesAdd Files to [your project's name]
  2. Go to node_modulesreact-native-react-native-chartbeat and add RNReactNativeChartbeat.xcodeproj
  3. In XCode, in the project navigator, select your project. Add libRNReactNativeChartbeat.a to your project's Build PhasesLink Binary With Libraries
  4. In XCode, in the project navigator, select your project. Look for Framework Search Paths in Build Settings, then add ($PROJECT_DIR) and $(inherited).
  5. Drag Chartbeat.framework from node_modules/react-native-chartbeat/ios/Frameworks to your Frameworks folder in XCode.
  6. Add the following code to AppDelegate.m:
#import <Chartbeat/CBTracker.h>

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
  
  [[CBTracker sharedTracker] setDebugMode:true]; // For debugging purposes
  [[CBTracker sharedTracker] setLogLevel:CBTrackerLogLevelVerbose]; // For debugging purposes
  [[CBTracker sharedTracker] setupTrackerWithAccountId:1111 domain:@"domain.com" ]; // Required
  ...
}
  1. Run your project (Cmd+R)<

Usage

import Chartbeat from 'react-native-react-native-chartbeat';
Chartbeat.trackView('testViewId', 'testTitle');

Keywords

FAQs

Last updated on 28 Jan 2018

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc