-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.js
More file actions
29 lines (23 loc) · 779 Bytes
/
index.js
File metadata and controls
29 lines (23 loc) · 779 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
import React from 'react';
import {Metrix, MetrixConfig} from '@metrixorg/react-native-metrix';
import {AppRegistry} from 'react-native';
import {FirstScreen, SecondScreen} from './app/screen';
import {createStackNavigator} from 'react-navigation';
const RootStack = createStackNavigator({
First: {screen: FirstScreen},
Second: {screen: SecondScreen},
});
class MetrixSample extends React.Component {
constructor() {
super();
let metrixConfig = new MetrixConfig('wevudpiqxgzfrcv');
metrixConfig.setFirebaseAppId(
'1:730143097783:android:227c981a44d0492eaa9e32',
);
Metrix.onCreate(metrixConfig);
}
render() {
return <RootStack />;
}
}
AppRegistry.registerComponent('MetrixSample', () => MetrixSample);