An alert to notify users about an error or something else
MIT License
Bot releases are visible (Hide)
default
and black
#113 Thanks @raarts//...
import Icon from 'react-native-vector-icons/FontAwesome';
//....
renderImage(props) {
// DropdownAlert props are passed down
return (
<Icon name="rocket" size={30} color="#900" />
);
}
//...
render() {
<DropdownAlert
ref={ref => this.dropdown = ref}
renderImage={(props) => this.renderImage(props)}
/>
}
//....
defaultContainer
and defaultTextContainer
these are inner containers and can be used to override styles for predefined types.For example, paddingTop
:
<DropdownAlert defaultContainer={{flexDirection: 'row', padding: 8, paddingTop: 40}} />