Error: open failed: EACCES (Permission denied) react native
snippet in javascript

Error: open failed: EACCES (Permission denied) react native

user9532

android:requestLegacyExternalStorage="true"

in androidManifeast.xml

<application
 android:name=".MainApplication"
 android:label="@string/app_name"
...
...

android:requestLegacyExternalStorage="true"

/>