Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/barimehdi77/react-native-user-tracker
https://github.com/barimehdi77/react-native-user-tracker
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/barimehdi77/react-native-user-tracker
- Owner: barimehdi77
- License: mit
- Created: 2023-12-12T14:40:30.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-12-13T10:21:27.000Z (about 1 year ago)
- Last Synced: 2024-11-07T11:13:09.522Z (2 months ago)
- Language: TypeScript
- Size: 1.4 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# react-native-user-tracker
Effortlessly track user interactions in React Native with 'react-native-user-tracker,' sending customizable data to your specified host and endpoint.
## Installation
```sh
npm install react-native-user-tracker
```## Usage
```ts
import Tracker from 'react-native-user-tracker';
import type {
AppTrackerConfiguration,
NetworkConfiguration,
TrackedUserConfiguration,
} from '../../src/types';// ...
export default function App() {
const nework: NetworkConfiguration = {
host: 'localhost:8080/',
endpoint: '/collector',
method: 'post',
};
const appTracker: AppTrackerConfiguration = {
appId: 'example app',
appLanguage: 'en',
devicePlatform: Platform.OS,
};
const trackedUser: TrackedUserConfiguration = {
userId: '77',
};const tracker = new Tracker(nework, appTracker, trackedUser);
return (
Start integration the package with your application
);
}
```## Contributing
See the [contributing guide](CONTRIBUTING.md) to learn how to contribute to the repository and the development workflow.
## License
MIT
---
Made with [create-react-native-library](https://github.com/callstack/react-native-builder-bob)