I am following a tutorial, this point didn't get explained and got me confused,
What is it to use !isOpen in style?
Does it mean that if I pass isOpen then styles.buttonPadding will work?
export default function ToggleableTimerForm({ isOpen }) {
return (
<View style={[styles.container, !isOpen && styles.buttonPadding]}>
{isOpen ? <TimerForm /> : <TimerButton title="+" color="black" />}
</View>
);
}
const styles = StyleSheet.create({
container: {
paddingVertical: 10,
},
buttonPadding: {
paddingHorizontal: 15,
},
});