Xpath is not working on react-native 0.57.1 app

I am facing issues with react native 0.57.1 app, all the classpath locators are missing, is there any workaround for that ?

Does it help if we upgrade the react version to 0.57.4 or 0.57.5? Please help me if you have any solution for that.

Please provide more information: Appium version? Espresso driver version(optional)? pageSource portion? logs?