0.3.1 • Published 4 years ago
@anvilapp/react-native-notifications v0.3.1

Install
using npm
npm install @anvilapp/react-native-notifications --saveor using yarn
yarn add @anvilapp/react-native-notificationsSee the full usage example here.
Usage example
import { NotificationContainer } from '@anvilapp/react-native-notifications';
const notificationsRef = React.createRef();
<NotificationContainer
ref={notificationRef}
/>
// Show notification
notificationRef.current.open({
render={() => (
<View style={styles.notification}>
<Text style={styles.title}>Title</Text>
<Text style={styles.text}>Text</Text>
</View>
)},
});