Skip to content

Commit 02f33e9

Browse files
duom青源duom青源
authored andcommitted
feat: bugfix
1 parent 14cb2e2 commit 02f33e9

35 files changed

Lines changed: 17532 additions & 78 deletions

android/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ dependencies {
6666
// For > 0.71, this will be replaced by `com.facebook.react:react-android:$version` by react gradle plugin
6767
//noinspection GradleDynamicVersion
6868
implementation "com.facebook.react:react-native:+"
69+
implementation project(path: ':app')
6970
}
7071

7172
if (isNewArchitectureEnabled()) {
58.4 KB
Binary file not shown.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
distributionBase=GRADLE_USER_HOME
2+
distributionPath=wrapper/dists
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4-bin.zip
4+
zipStoreBase=GRADLE_USER_HOME
5+
zipStorePath=wrapper/dists

android/gradlew

Lines changed: 234 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

android/gradlew.bat

Lines changed: 89 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
package com.variabletextinput;
2+
import android.content.Context;
3+
import android.util.AttributeSet;
4+
5+
public class VariableEditText extends androidx.appcompat.widget.AppCompatEditText {
6+
public VariableEditText(Context context) {
7+
super(context);
8+
}
9+
public VariableEditText(Context context, AttributeSet attrs){
10+
super(context,attrs);
11+
}
12+
public VariableEditText(Context context,AttributeSet attrs,int defStyleAttr){
13+
super(context,attrs,defStyleAttr);
14+
}
15+
@Override
16+
public boolean isLayoutRequested() {
17+
// If we are watching and updating container height based on content size
18+
// then we don't want to scroll right away. This isn't perfect -- you might
19+
// want to limit the height the text input can grow to. Possible solution
20+
// is to add another prop that determines whether we should scroll to end
21+
// of text.
22+
return false;
23+
}
24+
}

0 commit comments

Comments
 (0)