
Product
Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain
Socket Firewall is a free tool that blocks malicious packages at install time, giving developers proactive protection against rising supply chain attacks.
@mxenabled/mobile-widget-sdk
Advanced tools
To get starting using the Widget SDK in your React Native app, you will first need to sign up for the MX API and get your client id and API key from the dashboard. Once you have that information, open a terminal and run the commands below at the root of your project:
npm install @mxenabled/mobile-widget-sdk
npx mx-mobile-widget-sdk-setup
Once you have installed the package and ran the setup script, you will be able
to import widget components from the @mxenabled/mobile-widget-sdk
package and
render them in your app:
import React from "react"
import { ConnectWidget } from "@mxenabled/mobile-widget-sdk"
export default function App() {
return (
<ConnectWidget
clientId="<client id>"
apiKey="<api key>"
userGuid="<user guid>"
environment="<mx environment: production, integration, qa, sand>"
/>
)
}
This package is written in TypeScript, so if you're developing your app in TypeScript you will be able to leverage all of the type definitions that are shipped with the package.
The only dependency to develop this application is Node v16. Once Node is installed, you can install all other dependencies with npm. Below are commands you will find useful while developing this app:
npm install # Install depedencies
npm run build # Run TypeScript compiler
npm run build:dist # Compile and save output to dist directory
npm run test # Run unit tests
npm run test:coverage # Run unit tests and generate code coverage report
npm run open:coverage # Open code coverage report
npm run generate # Run code generators
First, you will need to set up your environment so that you can run React Native apps. See https://reactnative.dev/docs/environment-setup for instructions on how to do that. In addition, you'll need to download and install Android Studio, Xcode, and Node v16.
Once your environment is setup, cd into the example
directory and create a
config.json
file that looks like the one below, but with the appropriate
values (all of which you can get from Batcave):
{
"MX_CLIENT_ID": "...",
"MX_API_KEY": "...",
"MX_USER_GUID": "...",
"MX_ENVIRONMENT": "integration"
}
Next, install dependencies and run the app in an iOS or Android emulator. Here are all of the commands you need to do that:
npm install # Installs dependencies
npm run ios # Installs and runs app in iOS emulator
npm run android # Installs and runs app in Android emulator
FAQs
MX Mobile Widget SDK for React Native
The npm package @mxenabled/mobile-widget-sdk receives a total of 0 weekly downloads. As such, @mxenabled/mobile-widget-sdk popularity was classified as not popular.
We found that @mxenabled/mobile-widget-sdk demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 9 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.
Product
Socket Firewall is a free tool that blocks malicious packages at install time, giving developers proactive protection against rising supply chain attacks.
Research
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Research
A malicious package uses a QR code as steganography in an innovative technique.