rishabhbhatia / react-native-awesome-alerts

Awesome alerts for React Native, works with iOS and Android.
MIT License
520 stars 71 forks source link

index.d.ts #103

Open billnbell opened 2 years ago

billnbell commented 2 years ago

You probably need to add -

cancelButtonTestID?: string; confirmButtonTestID?: string;

To AwesomeAlertProps. Interestingly, after I add them in IOS I don't see them using the Xcode Accessibility tool.

Can you add accessibilityLabel and TestID? Then I can get it to work on both devices as well.

But updating cancelButtonTestID, confirmButtonTestID and testing that is step 1.

rishabhbhatia commented 2 years ago

@billnbell Hey William, IMO testID should work just fine. Feel free to dig deeper and submit a PR. I'll also have a look when I'm able to spare some time.

billnbell commented 2 years ago

TestID does not work on Android devices.

rishabhbhatia commented 2 years ago

TestID does not work on Android devices.

Hey William, I'm confused you're saying testIDs don't show in XCode or they don't show in android? What testing tool are you using? Just had someone run Appium on a React Native app, they could find the testIDs.

Sorry, works been rough. Can you share some specific details so we can resolve this one?