Skip navigation
another one for the react native community.
0:00 / 1:49

another one for the react native community.

abipraya;

@rbayuokt6.3K followers

Visit on X
355 likesDownloadOriginal post

16,603 views

another one for the react native community. I just open sourced @rbayuokt/expo-adaptive-glass, adaptive glass UI for Expo / React Native one <GlassSurface> and every phone gets the best glass it can handle, from the newest iPhone to an old Android

61 Comments

Comments from the original post on X (Twitter)

  • abipraya;'s profile picture

    @rbayuokt

    but why? imo, the react native ecosystem has become very "iOS centric". older iOS and android often get what's left. where I m from, most people use older or budget phones because that's what they can afford. they deserve apps that look good and run smooth too.

    8 likes

  • abipraya;'s profile picture

    @rbayuokt

    how it adapts: - iOS 26: Apple's system glass - older iOS: native blur + Metal lens - Android 13+: live blur + AGSL refraction - low-end phones: clean acrylic frames dropping, phone hot, low power mode on? it steps down on its own and climbs back later.

    5 likes

  • abipraya;'s profile picture

    @rbayuokt

    what s inside: - tab bar with a draggable magnifying lens - switch and slider with a glass thumb - button that morphs into a menu - hold-to-magnify lens - glass that melts together - frosted to clear setting - tab bar for React Navigation and Expo Router - etc

    2 likes

  • abipraya;'s profile picture

    @rbayuokt

    all animation and touch run natively. no reanimated or gesture handler needed. and you can expriment with it and tweak it however you want, it s customizable

    2 likes

  • abipraya;'s profile picture

    @rbayuokt

    try now, tell me what you think 🙌 npx expo install @rbayuokt/expo-adaptive-glass npm: dont forget for the ⭐️ thank you!

    6 likes

  • abipraya;'s profile picture

    @rbayuokt

    Tab Bar + Lens Details iOS : Metal Android : AGSL 🤟🏻🤟🏻🤟🏻

    7 likes

  • abipraya;'s profile picture

    @rbayuokt

    and we can easily do this kind of "merge" / "join" effect as well. we just need GlassGroup and GlassSurface, that s it <GlassGroup... > ....<GlassSurface ..../> ....<GlassSurface ..../> < /GlassGroup>

    2 likes

  • abipraya;'s profile picture

    @rbayuokt

    ahh sorry guys I m really not a video editing expert ( capcut ) 😂 looks like exporting the video compressed it so much that the android version barely shows up. you can try it yourself, or check the full version of the video 🙏🏻🙏🏻

    1 like

  • abipraya;'s profile picture

    @rbayuokt

    just pushed a new update v0.2.0 the tabbar is now customizable. I ll add a native header too, with consistent behavior across platform and support for both expo router and react navigation. hopefully soon when I get some free time again

  • abipraya;'s profile picture

    @rbayuokt

    v0.3.0 is out. GlassSurfaces now support shadows that dont darken the glass, custom rim colors and widths, plus stronger edge bending on Android ( thanks @mathdroid for the feedback! ) where supported. menus now have disabled rows, checkmarks, separators, fonts, and scrolling 🙌🏻

    2 likes

  • abipraya;'s profile picture

    @rbayuokt

    v0.3.1 is out. iOS 26 style edge refraction is now on Android too, and it s enabled by default so the glass looks more like "real glass". you can turn it off with edgeRefraction={false} don't worry, I'm keeping Android performance in mind too 🤝🏻

  • odi | mathdroid's profile picture

    @mathdroid

    @expo @reactnative thanks, will try and use this. tried glass without refraction but it looked 🤮

    3 likes

  • abipraya;'s profile picture

    @rbayuokt

    thank you mas odi! sure, give it a try and please let me know how it goes. I really need the feedback 🙏🏻

  • abipraya;'s profile picture

    @rbayuokt

    🤟🏻

    1 like

  • ehsan's profile picture

    @byteab

    @expo @reactnative this is impressive!!

    2 likes

  • abipraya;'s profile picture

    @rbayuokt

    thank you! 🙏🏻

    1 like

  • furi0us's profile picture

    @_antivini_

    @expo @reactnative Very nice

    1 like

  • abipraya;'s profile picture

    @rbayuokt

    thank you!

  • Verse 👾's profile picture

    @AmbroseAbaasa

    @expo @reactnative Nice UI. Beautiful

    1 like

  • abipraya;'s profile picture

    @rbayuokt

    thank you!