FAB.Group Style Change Position with Style
See original GitHub issueCurrent behaviour
I am trying to change the position of FAB.Group button by using style props. I want to place it next to my glass button.
Expected behaviour
The FAB’s position doesnt change at all.
Code sample
<Portal>
<FAB.Group
open={this.state.open}
icon={'menu'}
actions={[
{icon: require('../assets/images/menu.png'), label:'Menu', onPress: () => console.log('Pressed add')}
]}
onStateChange={({ open }) => this.setState({ open })}
onPress={() => {this.setState({open: !this.state.open})}}
style={{position: 'absolute', top: 50, left: 0}}
/>
</Portal>
Screenshots (if applicable)
What have you tried
I tried style prop and change it.
Your Environment
software | version |
---|---|
ios or android | Android |
react-native | |
react-native-paper | |
node | |
npm or yarn | npm |
expo sdk |
Issue Analytics
- State:
- Created 5 years ago
- Comments:5
Top Results From Across the Web
How to change background color of FAB.Group from react ...
Show activity on this post. You almost had it, just change line below style={styles.fab}. for this other one fabStyle={styles.fab}.
Read more >Building a floating action button (FAB) component - web.dev
Start with a .fabs class for CSS to hook into for style, then add role="group" and aria-label so it's not just a generic...
Read more >FAB · React Native Paper
You can change the mode to adjust the the shadow: flat - button without a shadow. elevated - button with a shadow. style....
Read more >How to Create a Floating Action Button with Pure CSS ...
Learn how to use CSS positioning and flexbox. In this article, we are going to create the floating action button(FAB) by using Pure...
Read more >Buttons: floating action button - Material Design
Updated FABs have a boxier style with smaller corner radius, new color mappings, dynamic color compatibility, and a variation for large screens. open_in_new...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
hey, try using padding to reposition it
is it possible to make the FAB expand/open downwards so that i could place the icon to the top of the screen