Notification
component can be used to enhance the user experience with charming animation when message arrive
.
Notification |
|
import React from 'react';
import { View, StyleSheet } from 'react-native';
import { Notification } from 'react-native-skia-catalog';
const NotificationScreen = () => (
<View style={styles.container}>
<Notification />
</View>
);
const styles = StyleSheet.create({
container: {
flex: 1,
justifyContent: 'center',
alignItems: 'center',
},
});
export default NotificationScreen;
import React from 'react';
import { View, StyleSheet } from 'react-native';
import { Notification } from 'react-native-skia-catalog';
const NotificationScreen = () => (
<View style={styles.container}>
<Notification notificationCount={15} color={'#F84F31'} size={220} />
</View>
);
const styles = StyleSheet.create({
container: {
flex: 1,
justifyContent: 'center',
alignItems: 'center',
},
});
export default NotificationScreen;
Props |
Default |
Type |
Description |
size |
150 |
number |
Size of Image . |
color |
#23C552 |
string |
Color of the notification counter-ball and the animated lines . |
notificationCount |
1 |
number |
Number of notification . If notification number in double digit , the notification number no would be displayed as 9+ . |
Notification