imnapo / react-native-cn-richtext-editor

Richtext editor for react native
MIT License
218 stars 114 forks source link

Can't disable autocorrect #118

Open GummyGod opened 4 years ago

GummyGod commented 4 years ago

I have the following

<CNRichTextEditor
  // other props
  textInputProps={{ autoCorrect: 'false' }}
/>

however, it doesn't disable the autocorrect. I checked the source code and the textInputProps object is there, passed down as a prop but it won't work. Anyone else encountering this issue?

shadow921677 commented 3 years ago

I also had the same problem in version 2.0.0-rc3...

GummyGod commented 3 years ago

@shadow921677 I ended up cloning and fixing it myself. The project is mostly dead.

shadow921677 commented 3 years ago

Okay, thanks, but it's sad that they stopped working on this project, so me too I'm going to clone it and fix it myself.

bkvirendra commented 3 years ago

@GummyGod have you tried passing the autoCorrect arg value as a boolean, like textInputProps={{ autoCorrect: false }}

and not textInputProps={{ autoCorrect: 'false' }} (as you shared in the code above?)