UNPKG

react-native-segment-io

Version:
71 lines (45 loc) 1.72 kB
# react-native-segment-io [![npm](https://img.shields.io/npm/v/react-native-segment-io.svg)](https://www.npmjs.com/package/react-native-segment-io) [![npm](https://img.shields.io/npm/dt/react-native-segment-io.svg)](https://www.npmjs.com/package/react-native-segment-io) [![npm](https://img.shields.io/npm/l/react-native-segment-io.svg)](https://github.com/negativetwelve/react-native-segment-io/blob/master/LICENSE) [![CircleCI branch](https://img.shields.io/circleci/project/github/negativetwelve/react-native-segment-io/master.svg)](https://circleci.com/gh/negativetwelve/react-native-segment-io) React Native wrapper for [Segment](https://segment.com). ## Setup ```bash # Yarn yarn add react-native-segment-io # NPM npm install --save react-native-segment-io ``` ### iOS with Cocoapods Add the following to your Podfile: ```ruby pod "react-native-segment-io", path: "../node_modules/react-native-segment-io" ``` Then run: ```bash pod install ``` You're done! :tada: **NOTE** Your relative path to `node_modules` may differ. ### Android Coming soon, PRs welcome! ## Usage TODO ## Advanced One of the benefits of using Segment is its powerful integrations. This package allows you to seamlessly add integrations. ### iOS To add integrations on the iOS side, just add subspecs: ```ruby pod "react-native-segment-io", path: "../node_modules/react-native-segment-io", subspecs: [ # Make sure to include the Core subspec. "Core", # Each of the services are listed in the podspec. "Amplitude", "GoogleAnalytics", "Mixpanel", ] ``` If there's an integration that's missing that you'd like to have access to via this pod, submit a PR or file an issue :) ### Android Coming soon, PRs welcome!