imnapo / react-native-cn-quill

Quill rich-text editor for react-native
MIT License
190 stars 77 forks source link

Allow to remove border from Toolbar Provider #54

Closed ankitjainOfficial closed 3 years ago

ankitjainOfficial commented 3 years ago

In your toolbar/components/selection-bar.tsx, the borders are hardcoded and have no option to be removed or override.

This limits design across project and requirements.

Although, I could be wrong and have missed a detail. Can you please guide if there's a way to what I am referring to. I'll be happy to create a PR, in case you'd want that.

Thanks

imnapo commented 3 years ago

@ankitjainOfficial , I've just updated the package, you may achieve it like below:

<QuillToolbar
          styles={{
            toolbar: {
              provider: (provided) => ({
                ...provided,
                borderTopWidth: 0,
              }),
            },
          }}
/>

There are some other issues related to toolbar and maybe there are a better way too customize the toolbar styles. So Any contribution and PRs are welcome :)

imnapo commented 3 years ago

I'm closing this issue now, Feel free to reopen if the problem still exists.