-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.js
More file actions
33 lines (27 loc) · 967 Bytes
/
index.js
File metadata and controls
33 lines (27 loc) · 967 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/**
* @format
*/
import { AppRegistry } from 'react-native';
import App from './App';
import { name as appName } from './app.json';
import config from './src/config/config';
import { MIRRORFLY_RN } from './src/helpers/constants';
import { mirrorflyInitialize, setAppConfig, setupCallScreen } from './src/uikitMethods';
setAppConfig({ appSchema: MIRRORFLY_RN });
mirrorflyInitialize({
apiBaseUrl: config.API_URL,
licenseKey: config.licenseKey,
isSandbox: false,
});
// messaging().setBackgroundMessageHandler(async remoteMessage => {
// if (Platform.OS === 'android') {
// mirrorflyNotificationHandler(remoteMessage);
// }
// });
// messaging().onMessage(async remoteMessage => {
// if (remoteMessage?.data.type === 'mediacall' || (isPipModeEnabled() && AppState.currentState === 'background')) {
// mirrorflyNotificationHandler(remoteMessage);
// }
// });
setupCallScreen();
AppRegistry.registerComponent(appName, () => App);