Installations
npm install react-native-context-execute
Developer Guide
Typescript
No
Module System
CommonJS
Node Version
7.4.0
NPM Version
4.1.1
Score
18.5
Supply Chain
56.2
Quality
62.1
Maintenance
25
Vulnerability
50
License
Releases
Unable to fetch releases
Contributors
Unable to fetch Contributors
Languages
Java (81.5%)
JavaScript (18.5%)
Love this project? Help keep it running — sponsor us today! 🚀
Developer
sreejithr
Download Statistics
Total Downloads
1,959
Last Day
1
Last Week
2
Last Month
19
Last Year
178
GitHub Statistics
3 Stars
9 Commits
2 Watchers
1 Branches
2 Contributors
Updated on Jul 21, 2017
Bundle Size
543.00 B
Minified
323.00 B
Minified + Gzipped
Package Meta Information
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
Total Downloads
Cumulative downloads
Total Downloads
1,959
Last Day
0%
1
Compared to previous day
Last Week
0%
2
Compared to previous week
Last Month
35.7%
19
Compared to previous month
Last Year
20.3%
178
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
Peer Dependencies
1
react-native-context-execute
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.
Getting started
$ npm install react-native-context-execute --save
Mostly automatic installation
$ rnpm link react-native-context-execute
Manual installation
Android
- Open up
android/app/src/main/java/[...]/MainActivity.java
- Add
import com.reactlibrary.RNContextExecutePackage;
to the imports at the top of the file - Add
new RNContextExecutePackage()
to the list returned by thegetPackages()
method
- Append the following lines to
android/settings.gradle
:include ':react-native-context-execute' project(':react-native-context-execute').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-context-execute/android')
- Insert the following lines inside the dependencies block in
android/app/build.gradle
:compile project(':react-native-context-execute')
Usage
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
no SAST tool detected
Details
- Warn: no pull requests merged into dev branch
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
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
- Warn: no security policy file detected
- Warn: no security file to analyze
- Warn: no security file to analyze
- Warn: no security file to analyze
Reason
project is not fuzzed
Details
- Warn: no fuzzer integrations found
Reason
license file not detected
Details
- Warn: project does not have a license file
Reason
branch protection not enabled on development/release branches
Details
- Warn: branch protection not enabled for branch 'master'
Score
2.6
/10
Last Scanned on 2025-02-10
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