Skip to content

Latest commit

 

History

History
83 lines (59 loc) · 2.22 KB

File metadata and controls

83 lines (59 loc) · 2.22 KB

Notification

Notification component can be used to enhance the user experience with charming animation when message arrive.

🎬 Preview


Notification
alt tag

Default Usage


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;

Custom Usage


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;

🎬 Custom Usage Preview


alt tag

Properties

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+.

🎬 Preview Example


Notification