1.0.5 • Published 10 months ago

react-native-attribution-token v1.0.5

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

react-native-attribution-token

React Native module for fetching attribution token on iOS

Requirements

  • AdServices

Installation

npm install react-native-attribution-token

Usage

import { getAttributionToken } from 'react-native-attribution-token';

// ...

const getToken = async () => {
  try {
    const token = await getAttributionToken();
    console.log(token);
  } catch (error) {
    console.log(error);
  }
};

Documentation

getAttributionToken()

Fetches the attribution token from the AdServices framework on iOS. Returns a promise that resolves to the attribution token.

On Android, this method will return a promise that resolves to null.

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.

License

MIT


Made with create-react-native-library

1.0.5

10 months ago

1.0.4

10 months ago

1.0.3

10 months ago

1.0.2

10 months ago

1.0.1

10 months ago

1.0.0

10 months ago