How to use scoped storage with android 10+

I am very confused how to understand to requirements from google and expo Media Library.

First google states, that we should avoid using external storage permissions including
READ_EXTERNAL_STORAGE and WRITE_EXTERNAL_STORAGE when we want to work with scoped storage: Access media files from shared storage  |  Android Developers

On the second hand, expo wants these permission to be granted.

And android:requestLegacyExternalStorage=“true” flag should be declared.

What does it mean? Is Expo media library able to handle scoped storage or not?

What should I do if I want to aim for android 11 with scoped storage to take a picture from camera and save it in to DCIM folder?