React Native Bridge
How To Install yarn install (to install node modules) probably you wont get local.properties so you can create by copy from your another project
if you get unlicensed chaquopy .... , it because because it used restricted version ,you can copy chaquopy.license=free
in local.properties to run fully chaquopy
but it download all python package and make this project bigger , so if you just want to test this library ,no need to install fully chaquopy
-
Install dependencies:
yarn install
This will install the necessary node modules.
-
Set up
local.properties
: If you don’t already have alocal.properties
file, you can create one by copying it from another project. -
Handling Chaquopy licensing issues: If you encounter an "unlicensed Chaquopy" issue, it's due to the project using a restricted version of Chaquopy. To resolve this, add the following to your
local.properties
file:chaquopy.license=free
However, note that fully installing Chaquopy will download all Python packages and significantly increase the project size. If you just want to test the library, there’s no need to fully install Chaquopy.
- Bridge Native Module
- Bridge Native Module (Sending Property to Java Native)
- Bridge Native Module (Sending and Receiving Properties from Java Native)
- Inject Python Script from React Native and Java Native
- Invoke, Run, and Receive Properties from Python
- Running Python Modules (e.g., Numpy, Matplotlib, OpenCV)
- Bridge Native UI Component
- Send and Receive Events (Bridge)
- Bridge Native UI Component with UI Animation on the UI Thread (Java)
- Create Modules to Convert Images to Bitmap and Save Them to the Camera Folder
bridge.mp4
For more detailed information, refer to this article:
React Native and Python: Run Python Script on the Frontend