I am working on React Native
in which I want to stop multiline textinput component's scroll inside ScrollView. How we can achieve it? Android Specially!
Asked
Active
Viewed 1,699 times
2

Muhammad Rafeh Atique
- 722
- 5
- 22
-
i didn't understand what do you mean, clarify and try to add your code for a better vision – chikabala Feb 23 '22 at 07:55
1 Answers
1
you can use textinput option scrollEnabled
but this option only use ios
, not work android
scrollEnabled={false}
So I recommend that you set the height and specify the maxLength of letters to prevent scrolling from being seen.
- example
style={{height : 0000}}
maxLength={0000}

hong developer
- 13,291
- 4
- 38
- 68
-
I already know that. But I am voting up because you tried to help. – Muhammad Rafeh Atique Feb 23 '22 at 09:06
-
@MuhammadRafehAtique does this solution not work or what exactly is wrong? – David Scholz Feb 23 '22 at 09:49
-
@DavidScholz I tried this and it works for IOS specially but there is problem related to android! I want react native to stop scroll. Now what I am doing is giving height related to content size but for different fonts it sometime comes in scrolling inside scrollView – Muhammad Rafeh Atique Feb 23 '22 at 09:58
-
@hongdeveloper I'm accepting it as there are no another answers coming. – Muhammad Rafeh Atique Mar 01 '22 at 14:49