
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
@gennadysx/react-native-background-thread
Advanced tools
This package helps in executing the javascript in a background thread. Time-consuming javascript code is shifted to a native background thread by freeing the main-UI thread, which helps in increasing the efficiency of the application. Thread priority can be handled by passing in the appropriate flags. Currently we support three types of flag as under:
Priority Flags | Description | Android thread value | IOS thread value |
---|---|---|---|
MAX | This sets the thread priority to the maximum available on the corresponding native platform. | 10 | 1.0 |
MIN | This sets the thread priority to the minmimum available on the corresponding native platform. | 1 | 0.1 |
NORMAL | This sets the thread priority to the default or normal on the corresponding native platform. | 5 | 0.5 |
$ yarn add @gennadysx/react-native-background-thread
1. Add pod 'react-native-bg-thread', :path => '../node_modules/@gennadysx/react-native-background-thread/react-native-background-thread.podspec' to your pod file under targets
Run following commands
2. cd ios
3. pod install
No further action needed
with Priority
flag
import {run, BackgroundThreadPriority} from '@gennadysx/react-native-background-thread';
run(() => {
// Your Javascript code here
}, BackgroundThreadPriority.MIN); // Also you can set your priority here BackgroundThreadPriority.MAX or BackgroundThreadPriority.NORMAL
import BackgroundThread from '@gennadysx/react-native-background-thread';
BackgroundThread.run(()=>{
// Your Javascript code here
})
FAQs
Run your code in background thread
We found that @gennadysx/react-native-background-thread 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
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.