Coder Social home page Coder Social logo

Comments (19)

fukemy avatar fukemy commented on August 17, 2024 6

or you can use this solution instead of modify lib code:
https://stackoverflow.com/a/74333788/1308590

from react-native-autogrow-textinput.

banghia112 avatar banghia112 commented on August 17, 2024 2

or you can use this solution instead of modify lib code: https://stackoverflow.com/a/74333788/1308590

@fukemy thanks a lot, this solution fixed it for me (react native 0.63.4)

from react-native-autogrow-textinput.

raldred avatar raldred commented on August 17, 2024 2

For RN 0.71, this will need patching as setBlurOnSubmit has gone.
We're using this patch with RN 0.71.2 which uses the new setSubmitBehavior method.

patches/react-native-autogrow-textinput+5.4.0.patch

diff --git a/node_modules/react-native-autogrow-textinput/android/src/main/java/com/wix/autogrowtextinput/AutoGrowTextInputModule.java b/node_modules/react-native-autogrow-textinput/android/src/main/java/com/wix/autogrowtextinput/AutoGrowTextInputModule.java
index 07c76d6..b2d1549 100644
--- a/node_modules/react-native-autogrow-textinput/android/src/main/java/com/wix/autogrowtextinput/AutoGrowTextInputModule.java
+++ b/node_modules/react-native-autogrow-textinput/android/src/main/java/com/wix/autogrowtextinput/AutoGrowTextInputModule.java
@@ -52,7 +52,7 @@ public class AutoGrowTextInputModule extends ReactContextBaseJavaModule {
                 if (param.hasKey("maxHeight") && !param.isNull("maxHeight")) {
                     mMaxHeight = dpToPx(param.getDouble("maxHeight"));
                 }
-                editText.setBlurOnSubmit(false);
+                editText.setSubmitBehavior("submit");
                 editText.setOnTouchListener(new View.OnTouchListener() {
                     @Override
                     public boolean onTouch(View v, MotionEvent event) {

from react-native-autogrow-textinput.

wiredmatrix avatar wiredmatrix commented on August 17, 2024 1

Any solution to this error, I still experiencing it for weeks and have not been able to find working solution for it.

error: cannot find symbol
editText.setBlurOnSubmit(false);
^
symbol: method setBlurOnSubmit(boolean)
location: variable editText of type ReactEditText

from react-native-autogrow-textinput.

banghia112 avatar banghia112 commented on August 17, 2024

Got this error too pls fix

from react-native-autogrow-textinput.

fukemy avatar fukemy commented on August 17, 2024

any solution please? I did update any sdk like android sdk, target, react + react-native version? Really dont know why

from react-native-autogrow-textinput.

fukemy avatar fukemy commented on August 17, 2024

@banghia112 setBlurOnSubmit now changed to setSubmitBehavior

from react-native-autogrow-textinput.

fukemy avatar fukemy commented on August 17, 2024

reopen for waiting pr fix

from react-native-autogrow-textinput.

banghia112 avatar banghia112 commented on August 17, 2024

@fukemy please elaborate since its a different library, plus i didnt change or update react-native version

from react-native-autogrow-textinput.

fukemy avatar fukemy commented on August 17, 2024

@banghia112 facebook/react-native@1e3cb91

from react-native-autogrow-textinput.

olegmilan avatar olegmilan commented on August 17, 2024

@fukemy provided workaround fixed this issue for me. Hopefully this change doesn't have some side effects, thanks

from react-native-autogrow-textinput.

augustosamame avatar augustosamame commented on August 17, 2024

Unfortunately workaround gave me another error, even after gradlew clean: Execution failed for task ':app:checkReleaseDuplicateClasses'.

I'll try patching the library instead. A new fixed version would be much appreciated though.

from react-native-autogrow-textinput.

augustosamame avatar augustosamame commented on August 17, 2024

This is part of a much larger issue: facebook/react-native#35210

from react-native-autogrow-textinput.

oviedo97fer avatar oviedo97fer commented on August 17, 2024

Any suggestion for an app built with 0.62.2 RN version? I'm stuck on this

from react-native-autogrow-textinput.

raldred avatar raldred commented on August 17, 2024

Any suggestion for an app built with 0.62.2 RN version? I'm stuck on this

I think you best take a look at the notes on this issue
facebook/react-native#35210

from react-native-autogrow-textinput.

lfoliveir4 avatar lfoliveir4 commented on August 17, 2024

or you can use this solution instead of modify lib code: https://stackoverflow.com/a/74333788/1308590

@fukemy thanks a lot, this solution fixed it for me (react native 0.63.4)

Work for me! πŸ†

from react-native-autogrow-textinput.

Doko-Demo-Doa avatar Doko-Demo-Doa commented on August 17, 2024

I have created a package that resolve this issue. It also includes Typescript typings:

https://github.com/Doko-Demo-Doa/react-native-autogrow-textinput-ts

from react-native-autogrow-textinput.

fukemy avatar fukemy commented on August 17, 2024

Any solution to this error, I still experiencing it for weeks and have not been able to find working solution for it.

error: cannot find symbol

            editText.setBlurOnSubmit(false);

                    ^

symbol: method setBlurOnSubmit(boolean)

location: variable editText of type ReactEditText

🀣🀣🀣

from react-native-autogrow-textinput.

fukemy avatar fukemy commented on August 17, 2024

change to setSubmitBehavior("blurAnd Submit")

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.