3.0.12 • Published 6 years ago
react-native-local-notification v3.0.12
react-native-local-notification
A package for React Native apps to show in-app notifications. Works for both iOS and Android.
Demo

Usage
In root component
</View>
[...]
<LocalNotification ref="localNotification" />
</View>Showing a notification
this.refs.localNotification.showNotification({
title: 'Notification title',
text: 'This is a short notification',
onPress: () => alert('hello short'),
onHide: () => alert('Byeeeee')
});See Example folder for more details.
Available props on
| Name | Type | Required | Default |
|---|---|---|---|
| duration | number | Yes | 3500 |
| startHeight | number | Yes | 46 |
| textStyle | object | No | {} |
| handleStyle | object | No | {} |
| notificationStyle | object | No | {} |
| ellipsizeTextStyle | object | No | {} |
Available props on notification object
| Name | Type | Required | Default |
|---|---|---|---|
| title | string | No | NULL |
| text | string | Yes | Hello 👋🏼 |
| onPress | func | No | NULL |
| onHide | func | No | NULL |
3.0.12
6 years ago
3.0.11
7 years ago
3.0.10
7 years ago
3.0.9
8 years ago
3.0.8
8 years ago
3.0.7
8 years ago
3.0.6
8 years ago
3.0.3
8 years ago
3.0.5
8 years ago
3.0.4
8 years ago
3.0.2
8 years ago
3.0.0
8 years ago
2.0.2
8 years ago
2.0.1
8 years ago
2.0.0
8 years ago
1.1.1
9 years ago
1.1.0
9 years ago
1.0.4
9 years ago
1.0.3
9 years ago
1.0.2
9 years ago
1.0.1
9 years ago
1.0.0
9 years ago