-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.js
67 lines (57 loc) · 1.62 KB
/
index.js
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
import React, { Component } from 'react';
import { YellowBox, AppRegistry } from 'react-native';
import { createStackNavigator } from 'react-navigation';
import SdkManager from './src/manager/SdkManager';
import WelcomeScreen from './src/WelcomeScreen';
import LoginScreen from './src/LoginScreen';
import HomeScreen from './src/HomeScreen';
import MessageBrowserScreen from './src/MessageBrowserScreen';
import MessageScreen from './src/MessageScreen';
// TODO: remove this when react navigation fixes this issue!
YellowBox.ignoreWarnings(['Warning: isMounted(...) is deprecated', 'Module RCTImageLoader']);
const RootStack = createStackNavigator({
Welcome: {
screen: WelcomeScreen
},
Login: {
screen: LoginScreen
},
Home: {
screen: HomeScreen
},
MessageBrowser: {
screen: MessageBrowserScreen
},
Message: {
screen: MessageScreen
}
}, {
initialRouteName: 'Welcome',
navigationOptions: {
headerStyle: {
backgroundColor: '#733881',
},
headerTintColor: '#fff',
headerTitleStyle: {
fontWeight: 'bold',
},
}
});
class App extends React.Component {
constructor(props) {
super(props);
const credentials = {
clientName: 'AndroidSdkDemoCross',
clientId: '8p+/4twxtiR5760pfO1Ojvrgaa/0+fAD3tW/OpLlHQI=',
clientSecret: 'Dw1K1tZPLPJhxLXgNPfuaXYzJ58wqMvExLXvrO+/+Hc=',
tenantId: 'triumph',
communityUrl: 'https://triumph.qa.lithium.com/',
instanceId: 'qwerty1234567890'
};
SdkManager.initialize(credentials, {});
}
render() {
return <RootStack />;
}
}
AppRegistry.registerComponent('LiaReactNativeExample', () => App);