diff --git a/Examples/simple-fcm-client/app/FirebaseConstants.js b/Examples/simple-fcm-client/app/FirebaseConstants.js new file mode 100644 index 0000000000000000000000000000000000000000..7be52d762fd721d78e15c6229b17caef49d7a144 --- /dev/null +++ b/Examples/simple-fcm-client/app/FirebaseConstants.js @@ -0,0 +1,6 @@ + +const FirebaseConstants = { + KEY: "YOUR_API_KEY" +} + +export default FirebaseConstants; diff --git a/Examples/simple-fcm-client/app/PushController.js b/Examples/simple-fcm-client/app/PushController.js index 5ec919be737ac5ed4e9ae2a665f30041d94fa8c3..e7d52dbf1281d615518b2499ce3263bdd90d1728 100644 --- a/Examples/simple-fcm-client/app/PushController.js +++ b/Examples/simple-fcm-client/app/PushController.js @@ -1,5 +1,7 @@ import React, { Component } from "react"; +import { Platform } from 'react-native'; + import FCM, {FCMEvent, RemoteNotificationResult, WillPresentNotificationResult, NotificationType} from "react-native-fcm"; import firebaseClient from "./FirebaseClient";