I am automating a mobile app which is built in react native. In application we have only className and index as attributes. Currently i am writting locators based on index, because that is the only attribute which is unique. But, i cannot rely on index for writting locators. In future there are chances of failing a script if index changes. Can you suggest me the solution for this.