Comments (5)
Hey guys,
We updated the component to work with the latest versions of RN which supports auto growing multi line inputs out of the box - unfortunately, this is only the case for iOS.
This was a major version (4) for this package, for older RN versions you can use the previous version (3).
from react-native-autogrow-textinput.
@GioLogist as i've mentioned in the previous comment, in case you're using an older version of RN, you can use version 3 of this package (i.e. specify "react-native-autogrow-textinput": "^3.0.0"
in your package.json
).
from react-native-autogrow-textinput.
I encountered the same issue. The problem is that the height style property of _renderTextInputIOS()
in the file node_modules/react-native-autogrow-textinput/src/AutoGrowingTextInput.js
is set to 'auto'.
It seems strange that a style property of { height: 'auto' }
would be included in the script when it appears to be causing this problem. The way to prevent this error is to change the property of the height to { height: this.props.initialHeight }
and set the height accordingly as props in <AutoGrowingTextInput ... initialHeight: {100} />
from react-native-autogrow-textinput.
Is there a downfall to simply removing the following in the repo itself?
, {height: 'auto'}
I've had to repeat this step whenever I clean my node_modules, as I am not yet able to upgrade RN on that specific build.
from react-native-autogrow-textinput.
@artald ADD + ignorance on my behalf lead me to not read the entire message - hah, thanks! ✊
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.