Member-only story

How to create custom plugin in React Native? That should call native Java code asking for Camera and Recording permissions.

Ankit Maheshwari
7 min readJun 17, 2024

Creating a custom plugin in React Native to call native Java code, specifically for handling camera and recording permissions, involves several steps. You’ll need to set up both the JavaScript and native Android sides to communicate with each other.

My articles are open for everyone; non-member readers can read the article by clicking this Friend link.

Below are the detailed steps for achieving this:

Step-by-Step Guide

1. Setting Up React Native Project

First, ensure you have a React Native project set up. If you don’t have one, you can create a new project using:

sudo npx react-native init MyProject
Run instructions for Android:
• Have an Android emulator running (quickest way to get started), or a device…

--

--

Ankit Maheshwari
Ankit Maheshwari

No responses yet