react-native-rich-editor icon indicating copy to clipboard operation
react-native-rich-editor copied to clipboard

React Native Pell Rich Editor & iOS QuickType (predictive text)

Open IanLukeFinley opened this issue 1 year ago • 3 comments

Does the React Native Pell Rich Editor support the QuickType (predictive text) bar on iOS? I am using the library in the component below. Works great, except the QuickType bar is missing from the keyboard.

Because the rich editor is using a WebView component, as opposed to any TextInput, is this just a cost of using the Pell Rich Editor library, or is there a prop I haven't found in my reading that will enable the quick type bar?

`
<SafeAreaView>

  <ScrollView style={styles.outerContainer}>
    <RichEditor
      maxLength={maxLength}
      disabled={false}
      editorStyle={styles.richEditor}
      ref={richTextRef}
      placeholder={isNote ? "Add your note..." : "Add an explanation here…"}
      onChange={handleEditorChange}
      initialContentHTML={text}
      multiline
      scrollEnabled
      sentry-label={sentryLabel}
    />
  </ScrollView>

  <RichToolbar
    editor={richTextRef}
    actions={[
      actions.setBold,
      actions.setItalic,
      actions.setUnderline,
      actions.setStrikethrough,
      actions.insertBulletsList,
      actions.insertOrderedList,
      actions.checkboxList,
      actions.indent,
      actions.undo,
    ]}
    style={styles.toolbar}
  />

  <HelperText
    type={showErrorInsteadOfInfo ? "error" : "info"}
    testID={`${testID}-remaining-characters`}
  >
    {text ? maxLength - text?.length : maxLength} characters remaining
  </HelperText>
</SafeAreaView>`

image

IanLukeFinley avatar Dec 11 '23 21:12 IanLukeFinley

also interested in this.

shmkane avatar Dec 22 '23 15:12 shmkane

is autoCorrect={true} what you're looking for?

danlupascu avatar Jan 30 '24 21:01 danlupascu

is autoCorrect={true} what you're looking for?

yea, this is what I wanted, but seems no autoCorrect under RichEditor. Could be somewhere else?

Bob-JZhao avatar May 24 '24 22:05 Bob-JZhao