We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The below snippet faces runtime error, while, it works just fine without renderRow prop.
renderRow
<Dropdown disabled = {this.state.isLoadingAgents} options = {["a","b"]} dropdownStyle = {[Styles.agentsDropDown]} adjustFrame = {style => { style.width = this.agentDropdownFrameWidth return style }} renderRow = {this.renderAgentRow.bind(this)} > <View style={Styles.agentSelectionBox} onLayout={(event) => this.agentDropdownFrameWidth = event.nativeEvent.layout.width}> {this.state.isLoadingAgents ? <ActivityIndicator color = '#12125A'/> : <Image style={Styles.compassImage} source = {require('res/Images/Compass/compass.png')}/> } <Text style = {Styles.selectAgentBox_title} > {I18n.t('SelectCity_variantSelection')} </Text> </View> </Dropdown>
The renderer method
renderAgentRow(item, index, selected) { return(<TouchableOpacity> <Text>{item}</Text> </TouchableOpacity>); }
Error
Raw text cannot be used outside of a <Text> tag. Not rendering string: ' '
The text was updated successfully, but these errors were encountered:
Please remove the spaces within the jsx return
return(<TouchableOpacity><Text>{item}</Text></TouchableOpacity>);
Sorry, something went wrong.
No branches or pull requests
Uh oh!
There was an error while loading. Please reload this page.
The below snippet faces runtime error, while, it works just fine without
renderRow
prop.The renderer method
Error
The text was updated successfully, but these errors were encountered: