react-native-tag-input: 一个简单的React Native组件,用于创建标签、电子邮件等的输入。 ( 如需查看英文版本,请 点击这里 ) React Native Tag Input Simple Example import TagInput from 'react-native-tag-input'; ... <TagInput value={this.state.emails} onChange={(emails) => this.setState({ ...
This prop expects a callback function that is called when a new tag is added/removed from the array. An array of the updated tags is passed into the function. Implementation is as shown in the example above. setTags: (tags: string[]) => void (required) initialValue- String (Optional) ...