Comments (5)
Going to need more details than "seems to not work", and full sentences please. Is #31 the issue?
from react-native-tag-input.
@Ashoat hey just noticed it there was a word missing. That is not the issue. What I am trying to do here is to add a new tag(when user presses done on keyboard)
from react-native-tag-input.
Take a look at the example: https://github.com/jwohlfert23/react-native-tag-input/blob/master/Example/src/TagInputExample.js
You need to append to this.state.interestsArray
in onChangeText
from react-native-tag-input.
onChangeText doesn't seem to work even after that
<TagInput
value={this.state.interestsArray}
onChangeText={text =>
this.onChangeText()
}
onChange={changedArray => {
this.setState({
interestsArray: changedArray
})
}
}
/>
I have the same function body for onChangeText() as in the example but it doesn't work. onChangeText doesn't catch keyboard pressing. I just need this to make a new tag after user presses done/submit on keyboard
from react-native-tag-input.
You only have 3/5 required props in that code snippet! You're missing the text parameter that sets the text!
Please, read the README (which explicitly lists all five required props), read the examples, read the code, and think through things. I don't mean to be rude, but you have to understand that the folks maintaining open source projects are very busy. I can help you, but only if you take the time to follow instructions and do as much as you can yourself.
I think you'll find that figuring things out yourself is also a lot faster...
from react-native-tag-input.
Related Issues (20)
- Getting Cannot resolve symbol 'React-Native-Component' HOT 8
- onChange gets called with an empty array HOT 9
- fix: componentWillReceiveProps is deprecated since React 16.3.0
- FEATURE REQ: Allow spaces inside the Tags? HOT 2
- Add support for TypeScript HOT 7
- Parse tag on keyboard enter key? HOT 2
- How to modify height? HOT 2
- How to put a border for Tagview HOT 1
- how to hide the start typing ? HOT 1
- Input box not getting emptied in a proper manner HOT 1
- I would like to ask God, there is no content, press the blank space will produce empty Tags how to solve? HOT 3
- Nothing is drawn on Android HOT 3
- Warnings after updating to RN 0.61 HOT 2
- Placeholder not updating HOT 2
- How to hide cursor HOT 1
- Done key not adding a tag HOT 1
- If we do click on Spacebar, It should not produce the empty content. ANY SOLUTION ?? HOT 2
- maxHeight problem
- Archive repository/mark it as unmaintained HOT 1
- ViewPropTypes has been removed from React Native, causing crashes!
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-native-tag-input.