I have a select dropdown in my react native app, here I want to set autofocus so that if the user goes to next without any selected from the dropdown, it will focus on the select dropdown. How can I do it in react native?
My code:
<RNPickerSelect style={rnPickerStyle} placeholder={{ label: 'Choose Type', value: null, }} onValueChange={(value) => this.setState({ selectedType: value })} Icon={() => (<Icon style={{ color: '#8e8e8e' }} name="angle-down" size={25} />)} items={this.state.type} />
Question and answer is powered by AnsPress.io