I am trying to use the pre-launch report offered by the play store to run my app on different devices. My app requires a sign-in and the pre-launch report supports providing sign-in credentials in advance so that the test framework can sign in during the test. It requires me to fill the following form
I don't know how to find the resource name for the text input fields for username and password and sign-in button on the sign-in page. Please let me know if there is a way to either find resource names or specify a resource name for such fields for an Android app built using React Native
For this use case, it would be appropriate to have a component that allows the client to enter text data in your app. This is where React Native’s TextInput component comes in. Apart from strings, we can even customize it to accept passwords and numbers. In this article, you will learn the basics of React Native’s TextInput component.
The following code snippet renders a graphic with the text field: The left property tells React Native to display the desired icon on the left. React Native Paper provides two design modes which help in theming: flat: Creates a flat text input with an underline under the written text.
Consider a situation where you want to retrieve a user’s login credentials. For this use case, it would be appropriate to have a component that allows the client to enter text data in your app. This is where React Native’s TextInput component comes in. Apart from strings, we can even customize it to accept passwords and numbers.
Using checkboxes and radio buttons with React Checkboxes and radio buttons use the checked property to determine their UI state (true or false), with their value being an arbitrary name for that selection. What can be confusing about this is that the checked HTML attribute here was intended to just set which checkbox/radio was set initially.
You can try Layout Inspector in android studio.
Now you can get id of each view. it will be with property name "mID". Check the screenshot below:
EDIT FYI: This is a very old answer which worked initially. It may not work now. So just try this solution. If it doesn't work and you find perfect solution please post a new answer or edit this answer or add link to that answer.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With