Search code examples
react-nativereact-native-scrollviewreact-native-textinput

Stopping multiline textInput component to scroll inside ScrollView


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!


Solution

  • 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}