I need to loop over multiple Input elements rendered in my component and verify that they're not empty. As far as I know, there's no "Document.getElementsByClass" in React Native so I don't how to go about grabbing them, see code below...
const CreateAccountFormA = props => { verifyFormIsCompleted = props => { } return ( <Layout style={styles.mainContainer}> <Layout style={styles.inputsContainer}> <Input placeholder="Company" ></Input> <Input placeholder="First Name" ></Input> <Input placeholder="Last Name" ></Input> <Input placeholder="Address" ></Input> <Layout style={styles.parent}> <Input style={styles.child} placeholder="City" ></Input> <Input style={{...styles.child, ...styles.centerChild}} placeholder="State" ></Input> <Input style={styles.child} placeholder="Zip" ></Input> </Layout> </Layout> <Layout style={styles.btnContainer}> <Button onPress={verifyFormIsCompleted} >NEXT </Button> </Layout> </Layout> ) }
Any help would be greatly appreciated, thanks!