Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
IanLukeFinley opened this issue Dec 11, 2023 · 3 comments
Open

Comments

@IanLukeFinley
Copy link

IanLukeFinley commented Dec 11, 2023

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?

`

  <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

@shmkane
Copy link

shmkane commented Dec 22, 2023

also interested in this.

@danlupascu
Copy link

danlupascu commented Jan 30, 2024

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

@Bob-JZhao
Copy link

Bob-JZhao commented May 24, 2024

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

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants