As I am developing an App with React Native, I'm trying to make it accessible using VoiceOver/TalkBack.
In my code, I have a boolean value that tracks whether an operation happened or not. Depending on the value of this boolean variable, I show in my view either Text1 or Text2. I want to notify the user when this modification happens.
How can I proceed? I have read the documentation here: https://reactnative.dev/docs/accessibility and don't seem to have a function for that for both iOS/Android.