Getting the error with RN push notification #5358
anilkumar2273702
started this conversation in
General
Replies: 1 comment 1 reply
-
So, how did it go when you made sure apiKey was included in your configuration? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
WARN Possible Unhandled Promise Rejection (id: 1):
Error: Missing or invalid FirebaseOptions property 'apiKey'.
// App.js
import React from 'react';
import {StyleSheet, Text, View} from 'react-native';
import PushNotificationIOS from '@react-native-community/push-notification-ios';
import PushNotification from 'react-native-push-notification';
import Firebase from '@react-native-firebase/app';
class App extends React.Component {
constructor(props) {
super(props);
this.state = {};
}
componentDidMount() {
Firebase.initializeApp(this);
}
render() {
return (
<View
style={{
backgroundColor: 'red',
}}>
Main App screen for notification....
);
}
}
const styles = StyleSheet.create({
sectionContainer: {
marginTop: 32,
paddingHorizontal: 24,
},
sectionTitle: {
fontSize: 24,
fontWeight: '600',
},
sectionDescription: {
marginTop: 8,
fontSize: 18,
fontWeight: '400',
},
highlight: {
fontWeight: '700',
},
});
export default App;
Beta Was this translation helpful? Give feedback.
All reactions