Approach to write locators for react native mobile application

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.

Take Accessibility Id from developer without Accessibility Id you can’t automate

Is there any other tool which can be automate React Native apps?

No I think Appium and Cucumber and Calabash can automate ReactNative apps

Yes, check out Detox