Source

externalCode/pushNotifications.js

/**
 * @class
 * Push Notifications Hooks.
 * Instance name: pushNotificationApi
  
   You can use this hook to customize the push notifications for your app such as enabling push notification with Amazon AWS by sending device token.
 * @example
 * externalCodeSetup.pushNotificationApi.METHOD_NAME
 */
export class PushNotificationApi {
	awsEnabled = false;

	/**
	 * Enable Push Notifications with Amazon AWS.
	 * You can use it to send device token instead of FCM token.
	 * For more information, refer to {@link https://rnfirebase.io/reference/messaging#getAPNSToken}.
	 * @method
	 * @example
	 * externalCodeSetup.pushNotificationApi.enableAwsPushNotifications()
	 */
	enableAwsPushNotifications = () => {
		this.awsEnabled = true;
	};
}