GithubHelp home page GithubHelp logo

Module seems incompatible with RN > 0.48 : no visible @interface for 'RCTTextView' declares the selector 'textViewDidChange' about react-native-autogrow-textinput HOT 5 OPEN

wix-incubator avatar wix-incubator commented on July 1, 2024 6
Module seems incompatible with RN > 0.48 : no visible @interface for 'RCTTextView' declares the selector 'textViewDidChange'

from react-native-autogrow-textinput.

Comments (5)

BricePissard avatar BricePissard commented on July 1, 2024 6

@artald @rubycon

It seems that in the last RN release (version 0.49.1) the autoGrow feature have been merged into the native TextInput core.

  1. Feature Request:
    https://react-native.canny.io/feature-requests/p/add-support-for-automatically-resizing-multiline-textinput-based-on-content

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

rubycon avatar rubycon commented on July 1, 2024 3

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.

amanthegreatone avatar amanthegreatone commented on July 1, 2024 2

React Native's TextInput autoGrow is android only.

from react-native-autogrow-textinput.

artald avatar artald commented on July 1, 2024

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.

thinklinux avatar thinklinux commented on July 1, 2024

It's working on 0.55 version of RN.

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.