pavelbabenko / react-native-awesome-gallery

Performant, native-like, and well-customizable gallery for React Native.
MIT License
468 stars 51 forks source link

[Discussion] Library feedback #7

Closed troZee closed 3 years ago

troZee commented 3 years ago

Hey @pavelbabenko Thank you for a great library. I am happy, that you are maintaining this library and I can use this library in my project. While I was developing, I noticed few things:

And I am not sure if it is a good solution. I was trying to move the below code to the parent component

const [index, setIndex] = useState(initialIndex);

But it did not work very well. Also, It would be nice to have this kind of functionality inside the library

WDYT about my propositions ?

pavelbabenko commented 3 years ago

Hi @troZee

Thanks for you suggestions.

  1. I copied functionality from Telegram messenger, but I'll add a prop to disable transition to next when scale is bigger than 1.
  2. Feel free to create PR with features you'd like to have. I want to build a complex toolkit to cover a lot of cases, so I'm opened to new ideas.
  3. I've added useState to implement maxNumToRender prop. I don't think there is a better place for it.
troZee commented 3 years ago

Hi @troZee

Thanks for you suggestions.

  1. I copied functionality from Telegram messenger, but I'll add a prop to disable transition to next when scale is bigger than 1.
  2. Feel free to create PR with features you'd like to have. I want to build a complex toolkit to cover a lot of cases, so I'm opened to new ideas.
  3. I've added useState to implement maxNumToRender prop. I don't think there is a better place for it.

Ad. 1 What a good news :D ❤️ cant wait Ad.2 I will prepare a pull request with suggested changes (Then we can discuss about it in the PR)

Thank you for discussion. I am closing this topic, bc everything is clear for me.

pavelbabenko commented 3 years ago

@troZee disableTransitionOnScaledImage prop is added in https://github.com/Flair-Dev/react-native-awesome-gallery/releases/tag/v0.0.9

troZee commented 3 years ago

@troZee disableTransitionOnScaledImage prop is added in https://github.com/Flair-Dev/react-native-awesome-gallery/releases/tag/v0.0.9

Wooow you are so fast ❤️ thank you so much. I really appreciate it 🥰