
Research
Security News
Lazarus Strikes npm Again with New Wave of Malicious Packages
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
@appcues/react-native
Advanced tools
Appcues React Native Module allows you to integrate Appcues experiences into your React Native apps for iOS and Android devices.
This native module is a bridge between the native Appcues SDKs in a React Native application which sends user properties and events to the Appcues API and retrieves and renders Appcues content based on those properties and events.
Android - your application's build.gradle
must have a compileSdkVersion
of 33+ and minSdkVersion
of 21+
android {
compileSdkVersion 33
defaultConfig {
minSdkVersion 21
}
}
iOS - your application must target iOS 11+ to install the SDK, and iOS 13+ to render Appcues content. Update the iOS project xcodeproj to set the deployment target, if needed. In the application's Podfile
, include at least this minimum version.
# Podfile
platform :ios, '11.0'
npm install --save @appcues/react-native
# OR
yarn add @appcues/react-native
ios
folder, run
pod install
Note: You do not need to manually update your Podfile to add Appcues.
An instance of the Appcues SDK should be initialized when your app launches.
import * as Appcues from '@appcues/react-native'
Appcues.setup('APPCUES_ACCOUNT_ID', 'APPCUES_APPLICATION_ID')
Initializing the SDK requires you to provide two values, an Appcues account ID, and an Appcues mobile application ID. These values can be obtained from your Appcues settings. Refer to the help documentation on Registering your mobile app in Studio for more information.
Supporting debugging and experience previewing is not required for the Appcues React Native Module to function, but it is necessary for the optimal Appcues builder experience. Refer to the URL Scheme Configuration Guide for details on how to configure.
In order to target content to the right users at the right time, you need to identify users and send Appcues data about them. A user is identified with a unique ID.
// Identify a user
Appcues.identify('my-user-id')
// Identify a user with property
Appcues.identify('my-user-id', {'Company': 'Appcues'})
Events are the “actions” your users take in your application, which can be anything from clicking a certain button to viewing a specific screen. Once you’ve installed and initialized the Appcues React Native Module, you can start tracking screens and events using the following methods:
// Track event
Appcues.track('Sent Message')
// Track event with property
Appcues.track('Deleted Contact', {'ID': 123 })
// Track screen
Appcues.screen('Contact List')
// Track screen with property
Appcues.screen('Contact Details', {'Contact Reference': 'abc'})
More technical documentation about this module (including instruction for usage with Expo Bare and Managed workflow apps) is available in the docs
directory. Full documentation is available at https://docs.appcues.com/
The example
directory in this repository contains full example iOS/Android app to providing references for correct installation and usage of the Appcues API.
See the contributing guide to learn how to get set up for development and how to contribute to the project.
This project is licensed under the MIT License. See LICENSE for more information.
FAQs
Appcues React Native Module for Android and iOS mobile apps
The npm package @appcues/react-native receives a total of 3,371 weekly downloads. As such, @appcues/react-native popularity was classified as popular.
We found that @appcues/react-native 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.
Research
Security News
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
Security News
Socket CEO Feross Aboukhadijeh discusses the open web, open source security, and how Socket tackles software supply chain attacks on The Pair Program podcast.
Security News
Opengrep continues building momentum with the alpha release of its Playground tool, demonstrating the project's rapid evolution just two months after its initial launch.