Skip to content

Editor Auto scroll when typed anything #409

@bs-dipesh-patel

Description

@bs-dipesh-patel
                <ScrollView ref={scrollRef} style={{ maxHeight: maxHeight }}>
                    <RichEditor
                        autoCorrect={true}
                        autoCapitalize={'sentences'}
                        initialFocus={false}
                        firstFocusEnd={false}
                        disabled={disabled}
                        editorStyle={styles.contentStyle} // default light style
                        ref={richText}
                        style={styles.richEditor}
                        useContainer={true}
                        initialHeight={minHeight}
                        scrollEnabled={false}
                        placeholder={'Type here...'}
                        editorInitializedCallback={editorInitializedCallback}
                        onHeightChange={(h) => {
                            setInputHeight(h)
                        }}
                        onChange={handleChange}
                        onPaste={handlePaste}
                        onTouchStart={(event: GestureResponderEvent) => {
                            handleTouchStart(event)
                        }}
                        onKeyUp={handleKeyUp}
                        onKeyDown={handleKeyDown}
                        onInput={handleInput}
                        onMessage={handleMessage}
                        onFocus={handleFocus}
                        onBlur={handleBlur}
                        onCursorPosition={handleCursorPosition}
                        pasteAsPlainText={true}
                    />
                </ScrollView>

not sure why this happens

Screen_recording_20250903_182559.mp4

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions