ImagePicker not working (after build)

Greetings. the imagepicker module is only working on the expoGo app. But after I build the app the module doesn’t work.

Looks like the const { status } = await ImagePicker.requestMediaLibraryPermissionsAsync(); is always false because everytime I open the component throws the not granted error. Eventhough the files and media permission is granted in the phone.

Any help would be welcomed.

This is where I ask for the permission:

useEffect(() => {
    (async () => {
      if (Platform.OS !== 'web') {
        const { status } = await ImagePicker.requestMediaLibraryPermissionsAsync();
        if (status !== 'granted') {
          alert('Debe aceptar el permiso, para poder enviar archivos ',status);
        }else{
          setPermission(true)
        }
      }
    })();
  }, []);

These are the permissions in my app.js
"permissions": [ "CAMERA", "MEDIA_LIBRARY", "NOTIFICATIONS", "READ_PHONE_STATE", "READ_EXTERNAL_STORAGE" ]

Project SDK: 42