D
D
dim5on2019-02-19 23:22:19
JavaScript
dim5on, 2019-02-19 23:22:19

How to make a Bottom Action Sheet in React Native?

Good afternoon !
Tell me how to make such a bottom sheet?
Maybe there are some tutorials? The main thing is that there would be several stages of opening as in the screenshots. I'm interested in the implementation in js (React Native + Animated API), I don't have enough experience to write in java or swift.
5c6c63e393cd5373496670.jpeg
A similar window is implemented in the Yandex Taxi application.
5c6c656d7abb5345513128.jpeg

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
polarlord, 2019-02-20
@dim5on

There are such options (from simple to complex):
1. Use the search in Google. There are a lot of ready-made solutions, you are not the first to need such a tool. As an example, this is what we found in a minute of searching:
one
two
three
2. Write yourself using Modal . This is a native React Native component. To animate the slide up, set the animationType={slide} prop. Everything else - do as a normal component.
3. Write your own using LayoutAnimation or Animated . Create your widget, make it postion: absolute and animate its top property (for Animated) or just change the top and set the animation (for LayoutAnimation).

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question