While using the Expo.writeAsStringAsync() function, I encountered a situation where it took different times to write files of different sizes, which is expected. However, I noticed that there is no way to determine when the writing process has finished because the function does not return anything. This means that if I try to access the file immediately after writing it, it may still be in the process of being written and appear empty.
Is there any method to receive a notification or response indicating that the writing process has been completed, similar to a normal promise-then-catch pattern?
On a side note, I attempted to promisify the function but did not succeed.