title: How to grant camera permission in react native expo app (android)
body: <p>My code is :</p>
  <pre><code>import React, { useEffect } from &quot;react&quot;;
  import * as ImagePicker from &quot;expo-image-picker&quot;;
  
  import Screen from &quot;./app/components/Screen&quot;;
  
  export default function App() {
    async function permisionFunction() {
      const result = await ImagePicker.getCameraPermissionsAsync();
      if (!result.granted) {
        console.log(result);
        alert(&quot;need access to gallery for this app to work&quot;);
      }
    }
  
    useEffect(() =&gt; {
      permisionFunction();
    }, []);
  
    return &lt;Screen&gt;&lt;/Screen&gt;;
  }
  </code></pre>
  <p>I denied the permissions for camera when it was promted for the first time.
  Now whenever I opens the app always <code>need access to gallery for this app to work</code> this message is shown up. for android.</p>
  <ul>
  <li>I tried by giving all the permissions to the expo app in settings but still same msg appears.
  How can I solve this.</li>
  </ul>