Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
react-native-lightning
Advanced tools
:warning: This is pre-alpha software. Please use as your own risk.
:warning: This is pre-alpha software. Please use as your own risk.
This library hopes to simplify the process of adding Lightning via LND's Neutrino to any React-Native app.
Video Walkthrough: [TODO]
If you have any trouble, please use this commit as a reference to what needs to be changed/added to your project to get everything working.
Install Dependencies:
yarn add react-native-lightning buffer react-native-randombytes react-native-crypto react-native-keychain@4.0.5
yarn add -D rn-nodeify
yarn install
Start the project:
react-native run-android
const lnd = require("react-native-lightning");
lnd.start();
yarn add react-native-lightning buffer react-native-randombytes
Add the following to the end of your postinstall script in yourproject/package.json:
cd node_modules/react-native-lightning && yarn install && ./node_modules/.bin/rn-nodeify --install buffer,stream,assert,events,crypto,vm,process --hack
Copy react-native-lightning/src/lnd.config to the following. (Note: Create the directories if they do not exist):
android/app/src/main/assets/lnd.config
ios/lightning/lnd.config
Copy necessary files over for Android & iOS respectively:
android/app/src/main/java/com/yourproject/
and be sure to replace "com.rnlightning" at the top of each file with the name of your own project.ios/lightning/
.Generate the Lndmobile.aar & Lndmobile.framework files.
Add the Lndmobile.aar & Lndmobile.framework files to the project:
android/Lndmobile
ios/lightning
Add packages.add(new LndNativePackage());
to "getPackages" in MainApplication.java just above return packages
"
For Android you'll need these additional dependencies in YourProject/android/app/build.gradle
:
implementation 'com.google.protobuf:protobuf-java:3.13.0'
implementation 'com.android.support:multidex:1.0.3'
multiDexEnabled true
under defaultConfig
in the same gradle file.react-native run-ios
react-native run-android
FAQs
:warning: This is pre-alpha software. Please use as your own risk.
The npm package react-native-lightning receives a total of 8 weekly downloads. As such, react-native-lightning popularity was classified as not popular.
We found that react-native-lightning demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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 uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.