
Research
/Security News
9 Malicious NuGet Packages Deliver Time-Delayed Destructive Payloads
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.
@opacity-labs/react-native-opacity
Advanced tools
Opacity Networks library for React Native. Only new architecture is supported.
yarn add @opacity-labs/react-native-opacity
You can automatically configure your app via CNG, add to app.json:
{
...
"plugins": [
...,
"@opacity-labs/react-native-opacity"
]
}
Do a pod install after installing the library
First add the necessary repos to download the dependencies. On your root android/build.gradle add:
allprojects {
repositories {
google()
mavenCentral()
// If you already have allprojects->respositories just make sure you have these two added
maven { url "https://maven.mozilla.org/maven2/" }
maven { url 'https://jitpack.io' }
}
}
On your apps AndroidManifest.xml add an activity:
// Put this on the same level as other activities
<activity
android:name="com.opacitylabs.opacitycore.InAppBrowserActivity"
android:theme="@style/Theme.AppCompat.DayNight"
/>
Independently of Expo or a bare React Native app. You need to make sure react-native.config.js is properly set up for code generation to work:
module.exports = {
project: {
android: {
packageName: 'your.package.name', // must match your android apps package name
},
},
};
Once everything is setup you can call the init method on your JS:
// Create an OpacityInstance.ts file
import {
init,
get,
OpacityEnvironment,
} from '@opacity-labs/react-native-opacity';
try {
init('Your API key', false, OpacityEnvironment.PRODUCTION);
} catch (e) {
console.error(`Could not start opacity SDK: ${e}`);
}
export async function getUberRiderProfile() {
let { response, error } = await get('flow:uber_rider:profile');
if (error) {
// handle the error returned by the library
console.log(error.code, error.message);
} else {
console.log(response);
}
}
FAQs
Opacity Networks library for React Native
The npm package @opacity-labs/react-native-opacity receives a total of 226 weekly downloads. As such, @opacity-labs/react-native-opacity popularity was classified as not popular.
We found that @opacity-labs/react-native-opacity demonstrated a healthy version release cadence and project activity because the last version was released less than 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.

Research
/Security News
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.

Security News
Socket CTO Ahmad Nassri discusses why supply chain attacks now target developer machines and what AI means for the future of enterprise security.

Security News
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.