Expand and hide center connector #8
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
connectorStyleandcustomConnectorconnectorStylewill receive an object (style object) that will be passed to connector's style array to override the style.customConnectorwill 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