You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 5, 2020. It is now read-only.
`
import { TagSelect } from 'react-native-tag-select';
class TagSelectExtension extends TagSelect {
handleSelectItem = (item) => {
const key = item[this.props.keyAttr] || item
const value = []
const found = this.state.value[key]
value[key] = item
return this.setState({ value }, () => {
if (this.props.onItemPress) {
this.props.onItemPress(item)
}
})
}
}
export default TagSelectExtension
`
Now instead of using TagSelect.js import TagSelectExtension.js and use it. this is safe way. Also notice when extending React.Component extend TagSelect.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
How can I make only one tag selected like radio button?
The text was updated successfully, but these errors were encountered: