Skip to content
Advertisement

React-native-action-button : change position of action items

I am actually trying to use action buttons in React-native, but I have problems customizing action buttons position.

Using react-native-action-button (“react-native-action-button”: “^2.8.5”), buttons are positioned vertically, just like that:

Action buttons

But, I would like something where buttons are aligned horizontally, or as a “pyramid”, like the one in the center higher than the two others, aligned. A bit like that (the screen is from the MyFitnessPal app):

Action button MyFitnessPal

What could also be good is having a ‘transparent screen’ where action button are deployed, but that comes after.

Here is the code I am using :

JavaScript

Thank you in advance for your precious help !

Advertisement

Answer

Try using this approach!

JavaScript
User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement