Gathering detailed insights and metrics for react-native-context-execute
Gathering detailed insights and metrics for react-native-context-execute
Gathering detailed insights and metrics for react-native-context-execute
Gathering detailed insights and metrics for react-native-context-execute
npm install react-native-context-execute
Typescript
Module System
Node Version
NPM Version
Java (81.5%)
JavaScript (18.5%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
3 Stars
9 Commits
1 Watchers
1 Branches
2 Contributors
Updated on Jul 21, 2017
Latest Version
1.1.1
Package Id
react-native-context-execute@1.1.1
Size
8.77 kB
NPM Version
4.1.1
Node Version
7.4.0
Published on
Feb 21, 2017
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
1
Execute JS code in React Native's context even when RN is inactive (eg. app in background).
In Android, where background services are indispensable, keeping RN in sync can be hard since RN doesn't stay active in background. Currently, Android-only.
A tiny library which registers a JavascriptModule
in RN's JavascriptModuleRegistry
and makes Catalyst
(Bridge) run it.
Before using this, please note that HeadlessJS is another good way to go.
$ npm install react-native-context-execute --save
$ rnpm link react-native-context-execute
android/app/src/main/java/[...]/MainActivity.java
import com.reactlibrary.RNContextExecutePackage;
to the imports at the top of the filenew RNContextExecutePackage()
to the list returned by the getPackages()
methodandroid/settings.gradle
:
include ':react-native-context-execute'
project(':react-native-context-execute').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-context-execute/android')
android/app/build.gradle
:
compile project(':react-native-context-execute')
In your Java side, grab hold of the ReactApplicationContext
and do,
1WritableMap payload = Arguments.createMap(); 2payload.putString("some_key", "some_value"); 3 4new ReactContextExecutor(reactApplicationContext).execute("some_other_key", payload);
In JS side,
1import { ContextExecute } from 'react-native-context-execute'; 2 3ContextExecute((op, data) => { 4 // Do your thing 5}); 6
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no SAST tool detected
Details
Reason
Found 0/9 approved changesets -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
license file not detected
Details
Reason
branch protection not enabled on development/release branches
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More