跳过导航
Galeria 1 is now available – an image viewer for React (+ Native)
0:00 / 0:41

Galeria 1 is now available – an image viewer for React (+ Native)

Fernando Rojo

@fernandorojo1.9万 位关注者

在 X 上查看
542 个赞下载原帖

27,366 次观看

Galeria 1 is now available – an image viewer for React (+ Native) → New Architecture Support → Stable web support → Bring-your-own-image component Automatic support for: solito/image, next/image, expo-image, react-native-fast-image, web <img />

11 条评论

评论来自 X (Twitter) 上的原帖

  • Fernando Rojo 的头像

    @FernandoTheRojo

    Thanks to @hirbod_dev + @nishanbende for adding support for the new architecture. Look at how clean this API is...release notes →

    26 个赞

  • Fernando Rojo 的头像

    @FernandoTheRojo

    Under the hood, Galeria is web-first. If you are making a plain React website, you can use it just like any other library. On iOS and Android, it uses Swift/Kotlin respectively to wrap native image viewers. If you're a library author targeting React Native, consider making your central .tsx file web-first. Even better - remove react-native-web as a dependency to simplify installation.

    8 个赞

  • Christian Esmann 的头像

    @chrisesmann

    I just launched an all-in-one template for cross-platform development, based on the stack I use myself everyday. Expo, NextJS, TypeScript, Tailwind, Firebase, AppsFlyer, Authentication, Analytics, In-App Purchases, Stripe and a lot more, setup by default.

    3,991 个赞

  • Henry Paulino 的头像

    @henrypl_dev

    I’ve been waiting for this!

    2 个赞

  • Ansh Nanda 的头像

    @anshnanda_

    Been looking for something like this for a while!

    1 个赞

  • Levi Williams 的头像

    @_lazerlen

    Beautiful. Might be worth noting in the docs that it doesn’t support bare rn

    1 个赞

  • Romaen 的头像

    @CodeWithRomaen

    Another banger 🙏

    1 个赞

  • Michal 的头像

    @eruveo

    cant wait to try

    1 个赞

  • ℤ 的头像

    @technically_zac

    This looks great

    1 个赞

  • nnft 的头像

    @nnft17

    Web looks a bit glitchy in the video. Especially on the zoom back to grid transition.

  • Fernando Rojo 的头像

    @FernandoTheRojo

    The z-index weirdness on Web here was due to using FlashList’s masonry columns, which adds wrapper views to the items. Here it is fixed by using a plain ScrollView: