Firebase notification issue

is there any sample code for firebase notification integration with react-native.
i enable extension but
CometChat.getAppSettings().then(settings: any => {
var appToken;
if(settings.extensions){
//I got null setting.extensions
settings.extensions.forEach(ext => {
if (ext.id == “push-notification”){
appToken = ext.appToken;
}
});
}