nuclearpasta / react-native-drax

A drag-and-drop system for React Native
MIT License
554 stars 68 forks source link

Is there a way to make it so when you click on a draggable object it also changes the objects style? #173

Closed AlexanderNocelotl closed 3 months ago

AlexanderNocelotl commented 3 months ago

I want to create a object that when clicked on, it changes color, while also being draggable.

lafiosca commented 3 months ago

Check out the various DraxViewStyleProps in https://github.com/nuclearpasta/react-native-drax/blob/main/src/types.ts as used in the example here: https://github.com/nuclearpasta/react-native-drax-example/blob/main/src/screens/ColorDragDrop.tsx