nuclearpasta / react-native-drax

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

Allow overriding DraxProvider style. #136

Closed PatrickE94 closed 2 years ago

PatrickE94 commented 2 years ago

For some scenarios, it may be beneficial to override the flex:1 to allow wrapping a dynamic container without eating all possible space. I.e. let the contents decide the size.

To allow configuration of this, we might as well pass through styling to allow even more configurations.


Big thanks for you project! I've only verified these changes in my own project, but it's also a fairly trivial change!

Let me know if you need anything else, or have opinions about the change request.

// Patrick

lafiosca commented 2 years ago

I ended up implementing this slightly differently. It has been released in 0.10.2, but I should mention that Drax 0.10.x has bumped the RN requirement to >=0.65.