How to handle and fetch webview hierarchy elements in appium

@Aleksei
Do you know is there any way to automate the webview elements. Since I need to retrieve the body contents but all are individually identified under web view hierarchy. Can u provide suggestions to fetch the body of the mail?

Well it simple. If email app is your app under test -> ask ios dev enable webView debug, enable safari webview debug on phone and during test switch to webView. If it is Apple app -> nothing you can do use as is. E.g. use chain locator by mesage body name (it is actually id) and second one by class name.

Our app is react native application. With that can I do the ways as u mentioned above?

if on screen you send your app -> ask help of your app dev to enable webView debug