-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy pathindex.ts
More file actions
23 lines (18 loc) · 933 Bytes
/
Copy pathindex.ts
File metadata and controls
23 lines (18 loc) · 933 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import { registerRootComponent } from 'expo';
import { AppRegistry } from 'react-native';
import App from './App';
import QuickActionApp from './src/QuickActionApp';
import ServiceRestartApp from './src/ServiceRestartApp';
// registerRootComponent calls AppRegistry.registerComponent('main', () => App);
// It also ensures that whether you load the app in Expo Go or in a native build,
// the environment is set up appropriately
registerRootComponent(App);
// Separate entry point for the transparent QuickActionActivity
AppRegistry.registerComponent('quickAction', () => QuickActionApp);
// Separate entry point for the ServiceRestartActivity (service restarted by system)
AppRegistry.registerComponent('serviceRestart', () => ServiceRestartApp);
// Headless JS task for SMS verification code upload (runs without UI)
AppRegistry.registerHeadlessTask(
'SmsUploadTask',
() => require('./src/tasks/SmsUploadTask').default
);