Coder Social home page Coder Social logo

Comments (5)

artald avatar artald commented on July 18, 2024 1

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.

artald avatar artald commented on July 18, 2024 1

@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.

 avatar commented on July 18, 2024

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.

GioLogist avatar GioLogist commented on July 18, 2024

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.

GioLogist avatar GioLogist commented on July 18, 2024

@artald ADD + ignorance on my behalf lead me to not read the entire message - hah, thanks! ✊

from react-native-autogrow-textinput.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.