
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.
@datacamp/react-native-snowplow-tracker
Advanced tools
Please note this currently only binds very basic tracker features.
Install the native Snowplow Tracker in your project by following the official instructions [iOS/Android].
$ npm install @datacamp/react-native-snowplow-tracker --save
$ react-native link @datacamp/react-native-snowplow-tracker
Libraries
➜ Add Files to [your project's name]
node_modules
➜ react-native-snowplow-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.snowplow.RNSnowplowTrackerPackage;
to the imports at the top of the filenew RNSnowplowTrackerPackage()
to the list returned by the getPackages()
methodandroid/settings.gradle
:
include ':@datacamp_react-native-snowplow-tracker'
project(':@datacamp_react-native-snowplow-tracker').projectDir = new File(rootProject.projectDir, '../node_modules/@datacamp/react-native-snowplow-tracker/android')
android/app/build.gradle
:
implementation project(':@datacamp_react-native-snowplow-tracker')
import Snowplow from '@datacamp/react-native-snowplow-tracker';
// Initialize
Snowplow.initialize({
endpoint: 'com.acme.net',
protocol: 'https',
httpMethod: 'POST',
namespace: 'your-namespace',
appId: 'your-app',
})
// Track structured events
Snowplow.trackStructEvent({
category: 'shop',
action: 'add-to-basket',
label: 'Add To Basket',
property: 'pcs',
value: 2.0,
})
FAQs
Snowplow bindings for React Native
The npm package @datacamp/react-native-snowplow-tracker receives a total of 8 weekly downloads. As such, @datacamp/react-native-snowplow-tracker popularity was classified as not popular.
We found that @datacamp/react-native-snowplow-tracker demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 47 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.