0.3.1 • Published 3 years ago

@anvilapp/react-native-notifications v0.3.1

Weekly downloads
1
License
MIT
Repository
github
Last release
3 years ago

preview

Install

using npm

npm install @anvilapp/react-native-notifications --save

or using yarn

yarn add @anvilapp/react-native-notifications

See 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>
    )},
});
0.3.0

3 years ago

0.3.1

3 years ago

0.2.0

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago