-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.js
29 lines (25 loc) · 816 Bytes
/
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
import { Navigation } from 'react-native-navigation';
import { WrappedSearchShows, WrappedTrailerView } from './App';
import { SEARCH_TV_SHOWS_VIEW, TRAILER_VIEW } from "./src/utils/constants";
Navigation.registerComponent(SEARCH_TV_SHOWS_VIEW, () => WrappedSearchShows);
Navigation.registerComponent(TRAILER_VIEW, () => WrappedTrailerView);
Navigation.events().registerAppLaunchedListener(() => {
Navigation.setRoot({
root: {
stack: {
children: [{
component: {
name: SEARCH_TV_SHOWS_VIEW,
options: {
topBar: {
title: {
text: 'Tv Shows Searcher'
}
}
}
}
}]
}
}
});
})