@@ -8,40 +8,11 @@ import MessageCenterScreen from './screens/MessageCenterScreen';
8
8
import MessageScreen from './screens/MessageScreen' ;
9
9
import PreferenceCenterScreen from './screens/PreferenceCenterScreen' ;
10
10
import Airship , { EventType } from '@ua/react-native-airship' ;
11
- import { CustomEvent } from '@ua/react-native-airship' ;
12
11
import MaterialIcons from 'react-native-vector-icons/MaterialIcons' ;
13
12
14
13
const Tab = createBottomTabNavigator ( ) ;
15
14
const MessageCenterStack = createStackNavigator ( ) ;
16
15
17
- Airship . takeOff ( {
18
- default : {
19
- appKey : "VWDwdOFjRTKLRxCeXTVP6g" ,
20
- appSecret : "5Ifi5rYgTm2QHey9JkP0WA" ,
21
- logLevel : "verbose"
22
- } ,
23
- site : "us" , // use "eu" for EU cloud projects
24
- urlAllowList : [ "*" ] ,
25
- android : {
26
- notificationConfig : {
27
- icon : "ic_notification" ,
28
- accentColor : "#00ff00"
29
- }
30
- }
31
- } ) ;
32
-
33
- var customEvent = new CustomEvent ( "event_name" , 123.12 ) ;
34
- customEvent . addProperty ( "my_custom_property" , "some custom value" ) ;
35
- customEvent . addProperty ( "is_neat" , true ) ;
36
- customEvent . addProperty ( "any_json" , {
37
- "foo" : "bar"
38
- } ) ;
39
- Airship . analytics . addCustomEvent ( customEvent ) ;
40
-
41
-
42
- var url : string = "ulrich://some-deep-link"
43
- Airship . actions . run ( "deep_link_action" , url ) ;
44
-
45
16
Airship . addListener ( EventType . NotificationResponse , ( event ) => {
46
17
console . log ( 'NotificationResponse:' , JSON . stringify ( event ) ) ;
47
18
} ) ;
0 commit comments