How does Obsidian manage Files on the SAF system on Android, while using the react like codebase?

I am amazed by Obsidian and have been using it for some years now.

Some time ago, I started developing a React Native application. All of a sudden, I inspected the source of the Obsidian APK because I was interested in it, especially since it also depends heavily on JavaScript on Windows.

Upon inspecting it, I assume you use at least some kind of framework that shares code with React.

If this is true, I would really like to ask how you handle file management, especially with a large base of files like my database, which uses the SAF on Android.

I would be grateful if you could share some details on how you manage files using SAF or whatever API you’re using.

I’m really interested in this and want to learn how to manage SAF. I don’t want to steal your code, but understanding your approach could help me navigate the confusing world of content:// URLs.

I would be happy to hear from you as a curious, self-educated beginner in the world of coding.

The best case would be if you could send me some code to see what’s happening, but even an explanation of how you access SAF with your React Native instance would be incredibly helpful.