Comments (19)
or you can use this solution instead of modify lib code:
https://stackoverflow.com/a/74333788/1308590
from react-native-autogrow-textinput.
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.
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.
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.
Got this error too pls fix
from react-native-autogrow-textinput.
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.
@banghia112 setBlurOnSubmit now changed to setSubmitBehavior
from react-native-autogrow-textinput.
reopen for waiting pr fix
from react-native-autogrow-textinput.
@fukemy please elaborate since its a different library, plus i didnt change or update react-native version
from react-native-autogrow-textinput.
@banghia112 facebook/react-native@1e3cb91
from react-native-autogrow-textinput.
@fukemy provided workaround fixed this issue for me. Hopefully this change doesn't have some side effects, thanks
from react-native-autogrow-textinput.
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.
This is part of a much larger issue: facebook/react-native#35210
from react-native-autogrow-textinput.
Any suggestion for an app built with 0.62.2 RN version? I'm stuck on this
from react-native-autogrow-textinput.
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.
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.
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.
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.
change to setSubmitBehavior("blurAnd Submit")
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
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.