
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
@snowplow/react-native-tracker
Advanced tools
A library for tracking Snowplow events in React Native
This project is currently in beta status. It is unknown how dependable it will be for use for production analytics.
We include this disclaimer as we have had limited opportunity to test and QA the tracker for usage in production. We encourage users to try it and report on the outcomes by raising issues, or submitting a thread on our discourse forum to let us know of successful usage, or suggest changes.
$ npm install @snowplow/react-native-tracker --save
$ react-native link @snowplow/react-native-tracker
Libraries
➜ Add Files to [your project's name]
node_modules
➜ @snowplow/react-native-tracker
and add RNSnowplowTracker.xcodeproj
libRNSnowplowTracker.a
to your project's Build Phases
➜ Link Binary With Libraries
Cmd+R
)<android/app/src/main/java/[...]/MainActivity.java
import com.snowplowanalytics.react.tracker.RNSnowplowTrackerPackage;
to the imports at the top of the filenew RNSnowplowTrackerPackage()
to the list returned by the getPackages()
methodandroid/settings.gradle
:
include ':@snowplow_react-native-tracker'
project(':@snowplow_react-native-tracker').projectDir = new File(rootProject.projectDir, '../node_modules/@snowplow/react-native-tracker/android')
android/app/build.gradle
:
compile project(':@snowplow_react-native-tracker')
import {NativeModules} from 'react-native';
let RNSnowplowTracker = NativeModules.RNSnowplowTracker;
RNSnowplowTracker.initialize('test-endpoint-url', 'post', 'https', 'namespace', 'app-id');
RNSnowplowTracker.trackSelfDescribingEvent({'schema': 'iglu:com.acme/event/jsonschema/1-0-0', 'data': {'message': 'hello world'}}, []);
initialize(string endpoint, string method (post or get), string protocol (https or http), string namespace, string appId)
trackSelfDescribingEvent(JSON event, Array<JSON> contexts)
FAQs
React Native tracker for Snowplow
The npm package @snowplow/react-native-tracker receives a total of 10,261 weekly downloads. As such, @snowplow/react-native-tracker popularity was classified as popular.
We found that @snowplow/react-native-tracker demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
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.
Security News
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.