Search code examples
javascriptreact-nativeandroid-permissions

How to remove one added Permission from React-native project?


In my React-native project, once I added one write external storage permission in the AndroidManifest.xml file like below-

 <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>

And using this permission, I made some build. But later I realized that this permission is not required in my project. So, I wanted to remove this permission. So, I just removed the Permission line in my Manifest file and made one android build.

But the problem is----

in app info, it is still showing that it is taking Storage permission.

So, I need one solution to remove this permission completely.


Solution

  • Try below

    <manifest xmlns:android="http://schemas.android.com/apk/res/android"
        xmlns:tools="http://schemas.android.com/tools"
        package="com.packagename">
      <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" tools:node="remove" />
    </manifest>