Comments (5)
It seems that in the last RN release (version 0.49.1) the autoGrow feature have been merged into the native TextInput core.
-
Feature Request:
https://react-native.canny.io/feature-requests/p/add-support-for-automatically-resizing-multiline-textinput-based-on-content -
Merged in 0.49.1:
facebook/react-native@7abce0b
Now to get this feature working it's just a new attribute to set:
<TextInput autoGrow={true}>
Hello
World
</TextInput>
from react-native-autogrow-textinput.
It seems to be linked to this change in RN 0.48:
facebook/react-native@4ff3e10#diff-223b3f6f8736fab6d3e706f3ebcdd09fR70
For now I just avoid the compile error by commenting-out the buggy line:
if (textView != nil && [self respondsToSelector:@selector(textViewDidChange:)])
{
//dispatch_async(dispatch_get_main_queue(), ^{
// [self textViewDidChange:textView];
//});
}
After some testing it doesn't seem to hurt my autogrow text inputs.
from react-native-autogrow-textinput.
React Native's TextInput autoGrow is android only.
from react-native-autogrow-textinput.
Hey @BricePissard, thanks for reporting about it. This package indeed does not yet support latest RN versions.
The native part which is included in this package has some additional features that you might not even need. In the meantime you can just remove AutoGrowTextInput.xcodeproj
from your project so it can compile.
That said, there are probably other, additional issue with latest RN versions, so i'm not sure if it will work properly when you can get it to run. I think there were some breaking changes along the way that can possibly affect this component.
from react-native-autogrow-textinput.
It's working on 0.55 version of RN.
from react-native-autogrow-textinput.
Related Issues (20)
- undefined is not an object (evaluating '_react.PropTypes.bool') HOT 1
- Double dispatch async to main queue
- please upgrade react version HOT 2
- 引入组件就直接报错了
- Cannot read property 'bool' of undefined HOT 3
- 5.0.0 is not working on android - height is not changing. HOT 7
- "RCTTextView.h" file not found on react-native 0.54.0 HOT 5
- Possible uppercase bug? HOT 6
- .clear() does not clear TextInput
- Different fontSize even with TextInput and AutoGrowingTextInput set to same size?
- Web implementation HOT 2
- :react-native-autogrow-textinput:verifyReleaseResources FAILED AAPT: error: resource android:attr/colorError not found. HOT 3
- 'React/RCTUIManager.h' file not found HOT 2
- Paste option is not working HOT 2
- Not working on Android, which version to use for RN 0.46.4
- Add a podspec HOT 1
- Not working with React Native 0.62.0 HOT 2
- [IOS] keyboard doesn't scroll up accordingly when used inside a 'formSheet' modal ?
- Expo? HOT 2
- editText.setBlurOnSubmit(false); HOT 19
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-autogrow-textinput.