# react-native-monkey-tracker

> Monkeys Team ASA Tracker

Latest version **0.2.7** (published 2021-06-28) · MIT license · 0 weekly downloads

## Install

```sh
npm install react-native-monkey-tracker
pnpm add react-native-monkey-tracker
yarn add react-native-monkey-tracker
bun add react-native-monkey-tracker
```

## Health

**Score 30/100 (F)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.2.7 |
| Published | 2021-06-28 |
| First published | 2020-12-28 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 4 |
| Unpacked size | 244.9 KB |
| Known vulnerabilities | 0 (+23 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Monkeys Team |
| Maintainers | aayberk |
| Keywords | react-native, ios, android |

## Links

- npm: https://www.npmjs.com/package/react-native-monkey-tracker
- Repository: https://github.com/Monkeys-Team/Monkeys-Team-ASA-Tracker
- Issues: https://github.com/Monkeys-Team/Monkeys-Team-ASA-Tracker
- npm.io page: https://npm.io/package/react-native-monkey-tracker

## Dependencies (4)

- [axios](https://npm.io/package/axios.md) ^0.21.0
- [react-native-video](https://npm.io/package/react-native-video.md) ^5.1.1
- [react-native-localization](https://npm.io/package/react-native-localization.md) ^2.1.7
- [@react-native-community/clipboard](https://npm.io/package/@react-native-community/clipboard.md) ^1.5.1

## Alternatives

- [@sindresorhus/slugify](https://npm.io/package/@sindresorhus/slugify.md) — 3.7M weekly downloads
- [solid-js](https://npm.io/package/solid-js.md) — 2.7M weekly downloads
- [expo-glass-effect](https://npm.io/package/expo-glass-effect.md) — 2.5M weekly downloads
- [nanoassert](https://npm.io/package/nanoassert.md) — 780.8K weekly downloads
- [@ffmpeg/ffmpeg](https://npm.io/package/@ffmpeg/ffmpeg.md) — 529.5K weekly downloads

## Recent versions

- 0.2.7 (latest) — 2021-06-28
- 0.2.6 — 2021-06-24
- 0.2.5 — 2021-06-24
- 0.2.4 — 2021-06-23
- 0.2.3 — 2021-06-04
- 0.2.2 — 2021-06-04
- 0.2.1 — 2021-06-04
- 0.2.0 — 2021-06-01
- 0.1.7 — 2020-12-29
- 0.1.6 — 2020-12-29
- 0.1.5 — 2020-12-29
- 0.1.4 — 2020-12-28
- 0.1.3 — 2020-12-28
- 0.1.1 — 2020-12-28

## README

# react-native-monkey-tracker

  

  

Monkeys Team ASA Tracker

  

MMP for Apple Search Ads...

  

## Installation

  

  

```sh

npm install react-native-monkey-tracker

  

npx pod-install OR cd ios && pod install

```

  

You should add **Privacy - Tracking Usage Description** info.plist

```sh

<key>NSUserTrackingUsageDescription</key>

<string>App would like to access IDFA for tracking purpose</string>

```

## Usage

```js


import  MonkeyTracker  from  "react-native-monkey-tracker";

  
// You should call init first.

// You can get APP_KEY from monkeysteam.com


MonkeyTracker.init(APP_KEY: string,  appUserId:any,  deviceId:string  ,DEBUG:boolean);

//If device id is null, MT-Tracker will find it self.
  

// Purchase event for each purchase.

MonkeyTracker.purchase(receipt: string,  product_id: string,  price: number,  currency: string);

// Events

MonkeyTracker.sendEvent(event_name: string,  properties: object)

```

This package allows you to track all events and purchases that come from Apple Search Ads.

Monkeys-ASA-Tracker is **alpha** now.

  

**If you want to test it, please contact us.**

## Ads
Rewarded
```sh

import  { Rewarded, ShowRewarded }  from  "react-native-monkey-tracker/Rewarded.js"

await MonkeyTracker.getRewardedAds() //Call this function after init

<Rewarded 
	reward={  async  ()  =>  {
		Alert.alert("REWARD");
		await MonkeyTracker.getRewardedAds()
	}}
	adClose={  async  ()  =>  {
		Alert.alert("AD CLOSE");
		await MonkeyTracker.getRewardedAds()
	}}
/>

```
Intersettial
```sh

import  { Intersettial, ShowIntersettial }  from  "react-native-monkey-tracker/Intersettial.js"

await MonkeyTracker.getInterstitial() //Call this function after init

<Intersettial
	onClose={  async  ()  =>  {
		Alert.alert("Close INter");
		await MonkeyTracker.getInterstitial();
	}}
	onClick={  async  ()  =>  {
		Alert.alert("Click inter");
		await MonkeyTracker.getInterstitial();
	}}
/>
```
Banner
```sh

import  { Banner }  from  "react-native-monkey-tracker/Banner.js"

<Banner  />

```


  

## License

MIT

---
_Source: https://npm.io/package/react-native-monkey-tracker · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
