SteffeyDev / react-native-popover-view

A well-tested, adaptable, lightweight <Popover> component for react-native
MIT License
613 stars 92 forks source link

Make style attributes accept an array #65

Closed exotexot closed 4 years ago

exotexot commented 4 years ago

It would be cool if the popoverStyle prop (and all other style props, would accept an array as all other RN elements with style prop do. The background here is to apply different styles through a hook (e.g. react-navigations useTheme hook).

const { colors } = useTheme() <View style={[styles.modal, { backgroundColor: colors.background }]}>

SteffeyDev commented 4 years ago

Oh I agree that would be cool, I'll try to include that in the next release. For now, you can just use popoverStyle={StyleSheet.flatten(<array>)}.

SteffeyDev commented 4 years ago

Ok, this is implemented in the latest release 3.0.0