-
-
Notifications
You must be signed in to change notification settings - Fork 30
Expand file tree
/
Copy pathapp.ts
More file actions
20 lines (15 loc) · 709 Bytes
/
app.ts
File metadata and controls
20 lines (15 loc) · 709 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import * as React from 'react'
/* Controls react-nativescript log verbosity. true: all logs; false: only error logs. */
Object.defineProperty(global, '__DEV__', { value: false })
/*
In NativeScript, the app.ts file is the entry point to your application.
You can use this file to perform app-level initialization, but the primary
purpose of the file is to pass control to the app’s first module.
*/
import * as ReactNativeScript from 'react-nativescript'
import { mainStackNavigator as AppContainer } from './components/Navigator'
ReactNativeScript.start(React.createElement(AppContainer, {}, null))
/*
Do not place any code after the application has been started as it will not
be executed on iOS.
*/