Skip to content

Conversation

@GCnomore
Copy link

@GCnomore GCnomore commented Jan 30, 2021

Hello,

I'm a newbie developer and this is my first time submitting a pull request.
Please excuse me if there's something that I'm not following a common practice!

I thought that it would be great to expand the middle connector's size to the size of the object to get better access to drag the object. I've also removed the border and made its background color transparent to make it invisible.
The size of the middle connector covers the whole empty space of inner area of edge connectors.
(It actually overlaps with edge connectors by a little to maximize the touchable area)

Here's how it looks with middle connector visible

And this is final look

Update!!

I saw some people wanted to customize the connectors so I've updated the code to get access to customize the connectors.
Added 2 props connectorStyle and customConnector

connectorStyle will receive an object (style object) that will be passed to connector's style array to override the style.
customConnector will receive components that will go inside of connector. (Connectors are made with View components)

These will only affect the edge connectors. Middle connector will remain invisible

…han the obeject) and removed the border and background to make it transparent
@GCnomore GCnomore mentioned this pull request Jan 30, 2021
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

Successfully merging this pull request may close these issues.

1 participant