You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When TextInput contains long text, the text can scroll. But when the text scrolls, the Keyboard automatically pops up and scroll to the cursor position.
Expected behaviour
The keyboard only open if user want to edit the text. When the user wants to reread the entered text, do not open the Keyboard to block the view and do not automatically scroll to the cursor position.
How to reproduce?
const[prompt,setPrompt]=useState('a very long text')<TextInputright={<TextInput.Affixtext={`- ${prompt.length}`}textStyle={{fontSize: 12}}/>}mode="flat"clearButtonMode="always"multilineblurOnSubmit={true}value={prompt}style={{flex: 1,backgroundColor: undefined,}}onChangeText={(t)=>{setPrompt(t)}}returnKeyType="done"collapsableoutlineStyle={{borderRadius: 20,borderWidth: 0,borderBottomWidth: 0,backgroundColor: undefined}}contentStyle={{marginTop: 5,borderBottomWidth: 0,}}underlineStyle={{height: 0}}autoFocus={false}focusable={false}// showSoftInputOnFocus={false}placeholder={'Enter your text'}/>
Current behaviour
When
TextInput
contains long text, the text can scroll. But when the text scrolls, the Keyboard automatically pops up and scroll to the cursor position.Expected behaviour
The keyboard only open if user want to edit the text. When the user wants to reread the entered text, do not open the Keyboard to block the view and do not automatically scroll to the cursor position.
How to reproduce?
Preview
video when I try to scroll up, the keyboard open and TextInput scroll down:
https://drive.google.com/file/d/1FRVE6os4xCts-84AXWpzl-_nGNgRSzxM/view?usp=sharing
Your Environment
npx @react-native-community/cli info
The text was updated successfully, but these errors were encountered: