Bottom sheet over map content, similar to google maps UI, in React Native
Asked Answered
C

1

6

I am trying to implement a UI layout similar to google maps "explore" on Android, (see gif) in React Native.

In my UI design I have app navigation tabs at the bottom of the screen, with a full page map background, overlaid with a "bottom sheet" coming from above the tabs, and a search box component at the top. See UI sketch below.

UI Design

I have found various react-native ui components which look useful, but I can't figure out the styling to arrange them in the layout I want.

Several of the bottomsheet components I'm looking at, for example, rn-bottom-drawer show gifs similar to what I'm trying to create, e.g this animation, but I can't find an actual code example of how that UI was created. For example, the same library example just shows the bottom drawer over an empty screen.

What combination of wrapping elements and styles would allow me to create the layout described? I come from a XAML background and this kind of layout is very easy to create, but I can't get my head around how to do it in react native.

Cancroid answered 24/7, 2019 at 6:48 Comment(1)
does anyone have good library reference? I am looking for the sameRingler
W
1

It is halfway possible with the component "react-native-swipe-up-down". The swipe up above the App works, but it is really buggy. Had the same problem as you and couldn't find anything better than swipe-up-down til today.

Whish answered 27/11, 2019 at 22:16 Comment(2)
Did you check this? gorhom.github.io/react-native-bottom-sheetSavonarola
this is one best library bottom sheet from gorhomRingler

© 2022 - 2024 — McMap. All rights reserved.