3.0.12 • Published 5 years ago

react-native-local-notification v3.0.12

Weekly downloads
121
License
MIT
Repository
github
Last release
5 years ago

react-native-local-notification

A package for React Native apps to show in-app notifications. Works for both iOS and Android.

Demo

local_notification

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

NameTypeRequiredDefault
durationnumberYes3500
startHeightnumberYes46
textStyleobjectNo{}
handleStyleobjectNo{}
notificationStyleobjectNo{}
ellipsizeTextStyleobjectNo{}

Available props on notification object

NameTypeRequiredDefault
titlestringNoNULL
textstringYesHello 👋🏼
onPressfuncNoNULL
onHidefuncNoNULL
3.0.12

5 years ago

3.0.11

5 years ago

3.0.10

5 years ago

3.0.9

6 years ago

3.0.8

6 years ago

3.0.7

6 years ago

3.0.6

6 years ago

3.0.3

7 years ago

3.0.5

7 years ago

3.0.4

7 years ago

3.0.2

7 years ago

3.0.0

7 years ago

2.0.2

7 years ago

2.0.1

7 years ago

2.0.0

7 years ago

1.1.1

7 years ago

1.1.0

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago