$ npm install zego-zpns-react-native --save
$ react-native link zego-zpns-react-native
import ZPNs from 'zego-zpns-react-native';
ZPNs.setPushConfig({ enableFCMPush: true });
ZPNs.enableDebug(true);
const zpns = ZPNs.getInstance();
zpns.on('registered', console.log);
zpns.on('notificationArrived', console.log);
zpns.on('notificationClicked', console.log);
zpns.on('throughMessageReceived', console.log);
zpns.applyNotificationPermission();
zpns.registerPush();