
Security News
Feross on the 10 Minutes or Less Podcast: Nobody Reads the Code
Socket CEO Feross Aboukhadijeh joins 10 Minutes or Less, a podcast by Ali Rohde, to discuss the recent surge in open source supply chain attacks.
sift-react-native
Advanced tools
React Native wrapper for Sift iOS and Android SDKs
# Using npm
npm install sift-react-native
# OR using Yarn
yarn add sift-react-native
Add the Sift pod to your ios/Podfile:
pod 'Sift'
Then install CocoaPods dependencies:
cd ios
pod install
cd ..
No additional setup required. The Android SDK will be automatically linked.
import React, { useEffect } from 'react';
import SiftReactNative from 'sift-react-native';
const App = () => {
useEffect(() => {
// Initialize Sift when app starts
SiftReactNative.setSiftConfig(
'your-account-id',
'your-beacon-key',
false, // Allow location collection
'https://api3.siftscience.com/v3/accounts/%s/mobile_events'
);
}, []);
const handleUserLogin = (userId: string) => {
SiftReactNative.setUserId(userId);
SiftReactNative.upload();
};
const handleUserLogout = () => {
SiftReactNative.unsetUserId();
};
return (
// Your app components
);
};
Initializes the Sift SDK with your credentials.
Parameters:
accountId (string): Your Sift account IDbeaconKey (string): Your Sift beacon keydisallowLocationCollection (boolean): Set to true to disable location collectionserverUrlFormat (string): Server URL format (default: 'https://api3.siftscience.com/v3/accounts/%s/mobile_events')Sets the user ID for tracking.
Parameters:
userId (string): The user identifierClears the current user ID. Call this when a user logs out.
Manually uploads collected data to Sift. The SDK automatically uploads data periodically, but you can call this method to force an immediate upload.
To see the SDK in action, check out the example app in the example/ directory. See the example/README.md for setup and running instructions.
MIT License - see LICENSE file for details.
For technical support and questions:
FAQs
A React Native wrapper for Sift iOS and Android SDKs
The npm package sift-react-native receives a total of 7,135 weekly downloads. As such, sift-react-native popularity was classified as popular.
We found that sift-react-native demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 8 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
Socket CEO Feross Aboukhadijeh joins 10 Minutes or Less, a podcast by Ali Rohde, to discuss the recent surge in open source supply chain attacks.

Research
/Security News
Campaign of 108 extensions harvests identities, steals sessions, and adds backdoors to browsers, all tied to the same C2 infrastructure.

Security News
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.