Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
@unimodules/react-native-platform
Advanced tools
This library contains the core Unimodule infrastructure and a collection of Unimodules and interfaces that are commonly depended on by other Unimodules. You will need to install this before using libraries from Foundation, like `expo-camera`, `expo-media-
This library contains the core Unimodule infrastructure and a collection of Unimodules and interfaces that are commonly depended on by other Unimodules.
You will need to install this before using libraries from Foundation, like expo-camera
, expo-media-library
, and others.
The easiest way to do this is to initialize a "custom" project with expo-cli
. If you have an existing app, you can follow these steps instead.
This project requires that you use Cocoapods on iOS, to set iot up see this gist, or relevant parts of the this guide.
npm install @unimodules/react-native-platform
ios
directory and open your Podfile, make your Podfile look like this one.
use_unimodules!(node_modules_path: '../../../node_modules')
pod install
againAppDelegate.h
and AppDelegate.m
according to this diff.apply from: '../node_modules/@unimodules/react-native-platform/settings.gradle'
and then useUnimodules.apply()
to the top of android/settings.gradle
useUnimodules.apply(nodeModulesPath: "../../../node_modules")
apply from: '../../node_modules/@unimodules/react-native-platform/build.gradle'
anywhere in android/app/build.gradle
minSdkVersion
in android/build.gradle
to 21MainApplication.java
to according to this diff.It's possible that you will not have to use any of the code provided by this package directly, it may be used only by other Unimodules that you install.
But it's likely that you will want to use something like FileSystem or Permissions, and to do that you can import the following modules like so:
import {
Asset,
Constants,
FileSystem,
Permissions,
} from '@unimodules/react-native-platform';
You can import them directly from the specific Unimodule packag if you like, but your linter may complain for import a transitive dependency.
import * as Permissions from 'expo-permissions';
FAQs
This library contains the core Unimodule infrastructure and a collection of Unimodules and interfaces that are commonly depended on by other Unimodules. You will need to install this before using libraries from Foundation, like `expo-camera`, `expo-media-
We found that @unimodules/react-native-platform demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 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
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.