Dynamic styling based on a state
问题 I am trying to add some dynamic styling in my React Native project. I am using a React Native Snackbar but at this moment it goes in front of my Floating Action Button. This is not by the design rules of Material design. For that reason I need to move my FAB whenever that snackbar is active. I am keeping this in a state but I need a styling based on that state. At this moment I got the following code: constructor(props){ super(props); this.state = { snackbar: true, } } ../ const styles =