Comments (9)
Even i am facing the same issue and its only for IOS.
from react-native-tag-input.
Which version of RN? >= 0.54?
Dupe of this? #55
from react-native-tag-input.
0.55 on iOS.
from react-native-tag-input.
There is a bug in recent versions of RN where Backspace gets called incorrectly when the TextInput is cleared, so it doesn't return in the 'if' check below and then gets pop'd. And I think another bug where the value wasn't getting set right.
if (this.props.text !== '' || event.nativeEvent.key !== 'Backspace') {
return;
}
const tags = [...this.props.value];
tags.pop();
There are PR's up that fix it, but who knows when it'll make it out to release. Have a branch off of 0.55.4 with the 2 patches applied that fixed the issues for me, if useful to anyone.
https://github.com/nol13/react-native/tree/TextInput-Patch-0.55.4
from react-native-tag-input.
Thanks for researching this bug @nol13! It looks like there are two issues, yeah?
- Backspace issue, fixed by this PR. Am trying to bother the right people to see if we can merge that one.
- Text filtering for Chinese and other languages are broken, fixed by either this PR, or this PR. I would like to get some clarity on which of these should be merged.
from react-native-tag-input.
Ya two issues, need both patches to get normal behavior. Not really sure of/qualified to speak about the relative merit of 19087 vs. 18456, as far as I can tell both work, just need one or the other.
The backspace patch is needed to fix the issue where you can only add one tag. The other fixes a bunch of weird behavior where the js and native values can get out of sync or something after adding a few tags, and events stop firing, backspace will delete tags even if there is still text, etc.
from react-native-tag-input.
@nol13 any workaround for expo users?
from react-native-tag-input.
i think downgrading to expo 25 would do it, if that's a possibility.
(and saw backspace fix merged, thanks for moving that along!)
Edit: is fixed in 0.57 in case anyone comes across this still
from react-native-tag-input.
Expo 25 is deprecated. Still getting this issue in the latest version of expo.
from react-native-tag-input.
Related Issues (20)
- Getting Cannot resolve symbol 'React-Native-Component' HOT 8
- 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! HOT 1
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.